ch-admin-api-client-typescript 2.4.8 → 2.5.2
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 +2422 -1123
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1855 -12
- package/package.json +1 -1
- package/src/api.ts +2394 -254
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.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.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = 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 = 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.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = 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.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.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = 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 = 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.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = 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
|
|
@@ -8009,7 +8009,7 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
|
|
|
8009
8009
|
},
|
|
8010
8010
|
/**
|
|
8011
8011
|
*
|
|
8012
|
-
* @summary
|
|
8012
|
+
* @summary Reactivate country.
|
|
8013
8013
|
* @param {string} countryId
|
|
8014
8014
|
* @param {*} [options] Override http request option.
|
|
8015
8015
|
* @throws {RequiredError}
|
|
@@ -8401,7 +8401,7 @@ exports.CountriesApiFp = function (configuration) {
|
|
|
8401
8401
|
},
|
|
8402
8402
|
/**
|
|
8403
8403
|
*
|
|
8404
|
-
* @summary
|
|
8404
|
+
* @summary Reactivate country.
|
|
8405
8405
|
* @param {string} countryId
|
|
8406
8406
|
* @param {*} [options] Override http request option.
|
|
8407
8407
|
* @throws {RequiredError}
|
|
@@ -8591,7 +8591,7 @@ exports.CountriesApiFactory = function (configuration, basePath, axios) {
|
|
|
8591
8591
|
},
|
|
8592
8592
|
/**
|
|
8593
8593
|
*
|
|
8594
|
-
* @summary
|
|
8594
|
+
* @summary Reactivate country.
|
|
8595
8595
|
* @param {string} countryId
|
|
8596
8596
|
* @param {*} [options] Override http request option.
|
|
8597
8597
|
* @throws {RequiredError}
|
|
@@ -8761,7 +8761,7 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
8761
8761
|
};
|
|
8762
8762
|
/**
|
|
8763
8763
|
*
|
|
8764
|
-
* @summary
|
|
8764
|
+
* @summary Reactivate country.
|
|
8765
8765
|
* @param {string} countryId
|
|
8766
8766
|
* @param {*} [options] Override http request option.
|
|
8767
8767
|
* @throws {RequiredError}
|
|
@@ -11266,10 +11266,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
11266
11266
|
*
|
|
11267
11267
|
* @summary Get Doctor.
|
|
11268
11268
|
* @param {string} doctorId
|
|
11269
|
+
* @param {string} [languageCode]
|
|
11269
11270
|
* @param {*} [options] Override http request option.
|
|
11270
11271
|
* @throws {RequiredError}
|
|
11271
11272
|
*/
|
|
11272
|
-
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
11273
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
|
|
11273
11274
|
if (options === void 0) { options = {}; }
|
|
11274
11275
|
return __awaiter(_this, void 0, void 0, function () {
|
|
11275
11276
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -11294,6 +11295,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
11294
11295
|
// authentication oauth2 required
|
|
11295
11296
|
// oauth required
|
|
11296
11297
|
_a.sent();
|
|
11298
|
+
if (languageCode !== undefined) {
|
|
11299
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
11300
|
+
}
|
|
11297
11301
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
11298
11302
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
11299
11303
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12651,15 +12655,16 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
12651
12655
|
*
|
|
12652
12656
|
* @summary Get Doctor.
|
|
12653
12657
|
* @param {string} doctorId
|
|
12658
|
+
* @param {string} [languageCode]
|
|
12654
12659
|
* @param {*} [options] Override http request option.
|
|
12655
12660
|
* @throws {RequiredError}
|
|
12656
12661
|
*/
|
|
12657
|
-
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
12662
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
|
|
12658
12663
|
return __awaiter(this, void 0, void 0, function () {
|
|
12659
12664
|
var localVarAxiosArgs;
|
|
12660
12665
|
return __generator(this, function (_a) {
|
|
12661
12666
|
switch (_a.label) {
|
|
12662
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options)];
|
|
12667
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options)];
|
|
12663
12668
|
case 1:
|
|
12664
12669
|
localVarAxiosArgs = _a.sent();
|
|
12665
12670
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -13287,11 +13292,12 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
|
13287
13292
|
*
|
|
13288
13293
|
* @summary Get Doctor.
|
|
13289
13294
|
* @param {string} doctorId
|
|
13295
|
+
* @param {string} [languageCode]
|
|
13290
13296
|
* @param {*} [options] Override http request option.
|
|
13291
13297
|
* @throws {RequiredError}
|
|
13292
13298
|
*/
|
|
13293
|
-
apiV1DoctorsDoctorIdGet: function (doctorId, options) {
|
|
13294
|
-
return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
|
|
13299
|
+
apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
|
|
13300
|
+
return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
13295
13301
|
},
|
|
13296
13302
|
/**
|
|
13297
13303
|
*
|
|
@@ -13757,13 +13763,14 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
13757
13763
|
*
|
|
13758
13764
|
* @summary Get Doctor.
|
|
13759
13765
|
* @param {string} doctorId
|
|
13766
|
+
* @param {string} [languageCode]
|
|
13760
13767
|
* @param {*} [options] Override http request option.
|
|
13761
13768
|
* @throws {RequiredError}
|
|
13762
13769
|
* @memberof DoctorsApi
|
|
13763
13770
|
*/
|
|
13764
|
-
DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, options) {
|
|
13771
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, languageCode, options) {
|
|
13765
13772
|
var _this = this;
|
|
13766
|
-
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13773
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13767
13774
|
};
|
|
13768
13775
|
/**
|
|
13769
13776
|
*
|
|
@@ -14041,6 +14048,1842 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
14041
14048
|
return DoctorsApi;
|
|
14042
14049
|
}(base_1.BaseAPI));
|
|
14043
14050
|
exports.DoctorsApi = DoctorsApi;
|
|
14051
|
+
/**
|
|
14052
|
+
* FaqCategoriesApi - axios parameter creator
|
|
14053
|
+
* @export
|
|
14054
|
+
*/
|
|
14055
|
+
exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
|
|
14056
|
+
var _this = this;
|
|
14057
|
+
return {
|
|
14058
|
+
/**
|
|
14059
|
+
*
|
|
14060
|
+
* @summary Get BreadCrumbs.
|
|
14061
|
+
* @param {string} faqId
|
|
14062
|
+
* @param {string} [languageCode]
|
|
14063
|
+
* @param {*} [options] Override http request option.
|
|
14064
|
+
* @throws {RequiredError}
|
|
14065
|
+
*/
|
|
14066
|
+
apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
14067
|
+
if (options === void 0) { options = {}; }
|
|
14068
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14069
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14070
|
+
return __generator(this, function (_a) {
|
|
14071
|
+
switch (_a.label) {
|
|
14072
|
+
case 0:
|
|
14073
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14074
|
+
common_1.assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
|
|
14075
|
+
localVarPath = "/api/v1/faqcategories/breadcrumbs/{faqId}"
|
|
14076
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
14077
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14078
|
+
if (configuration) {
|
|
14079
|
+
baseOptions = configuration.baseOptions;
|
|
14080
|
+
}
|
|
14081
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14082
|
+
localVarHeaderParameter = {};
|
|
14083
|
+
localVarQueryParameter = {};
|
|
14084
|
+
// authentication oauth2 required
|
|
14085
|
+
// oauth required
|
|
14086
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14087
|
+
case 1:
|
|
14088
|
+
// authentication oauth2 required
|
|
14089
|
+
// oauth required
|
|
14090
|
+
_a.sent();
|
|
14091
|
+
if (languageCode !== undefined) {
|
|
14092
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14093
|
+
}
|
|
14094
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14095
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14096
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14097
|
+
return [2 /*return*/, {
|
|
14098
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14099
|
+
options: localVarRequestOptions,
|
|
14100
|
+
}];
|
|
14101
|
+
}
|
|
14102
|
+
});
|
|
14103
|
+
});
|
|
14104
|
+
},
|
|
14105
|
+
/**
|
|
14106
|
+
*
|
|
14107
|
+
* @summary Delete FaqCategory.
|
|
14108
|
+
* @param {string} faqCategoryId
|
|
14109
|
+
* @param {boolean} [forceDelete]
|
|
14110
|
+
* @param {*} [options] Override http request option.
|
|
14111
|
+
* @throws {RequiredError}
|
|
14112
|
+
*/
|
|
14113
|
+
apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
|
|
14114
|
+
if (options === void 0) { options = {}; }
|
|
14115
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14116
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14117
|
+
return __generator(this, function (_a) {
|
|
14118
|
+
switch (_a.label) {
|
|
14119
|
+
case 0:
|
|
14120
|
+
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14121
|
+
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdDelete', 'faqCategoryId', faqCategoryId);
|
|
14122
|
+
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14123
|
+
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14124
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14125
|
+
if (configuration) {
|
|
14126
|
+
baseOptions = configuration.baseOptions;
|
|
14127
|
+
}
|
|
14128
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14129
|
+
localVarHeaderParameter = {};
|
|
14130
|
+
localVarQueryParameter = {};
|
|
14131
|
+
// authentication oauth2 required
|
|
14132
|
+
// oauth required
|
|
14133
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14134
|
+
case 1:
|
|
14135
|
+
// authentication oauth2 required
|
|
14136
|
+
// oauth required
|
|
14137
|
+
_a.sent();
|
|
14138
|
+
if (forceDelete !== undefined) {
|
|
14139
|
+
localVarQueryParameter['forceDelete'] = forceDelete;
|
|
14140
|
+
}
|
|
14141
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14142
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14143
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14144
|
+
return [2 /*return*/, {
|
|
14145
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14146
|
+
options: localVarRequestOptions,
|
|
14147
|
+
}];
|
|
14148
|
+
}
|
|
14149
|
+
});
|
|
14150
|
+
});
|
|
14151
|
+
},
|
|
14152
|
+
/**
|
|
14153
|
+
*
|
|
14154
|
+
* @summary Get FaqCategory.
|
|
14155
|
+
* @param {string} faqCategoryId
|
|
14156
|
+
* @param {string} [languageCode]
|
|
14157
|
+
* @param {*} [options] Override http request option.
|
|
14158
|
+
* @throws {RequiredError}
|
|
14159
|
+
*/
|
|
14160
|
+
apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
|
|
14161
|
+
if (options === void 0) { options = {}; }
|
|
14162
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14163
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14164
|
+
return __generator(this, function (_a) {
|
|
14165
|
+
switch (_a.label) {
|
|
14166
|
+
case 0:
|
|
14167
|
+
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14168
|
+
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdGet', 'faqCategoryId', faqCategoryId);
|
|
14169
|
+
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14170
|
+
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14171
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14172
|
+
if (configuration) {
|
|
14173
|
+
baseOptions = configuration.baseOptions;
|
|
14174
|
+
}
|
|
14175
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14176
|
+
localVarHeaderParameter = {};
|
|
14177
|
+
localVarQueryParameter = {};
|
|
14178
|
+
// authentication oauth2 required
|
|
14179
|
+
// oauth required
|
|
14180
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14181
|
+
case 1:
|
|
14182
|
+
// authentication oauth2 required
|
|
14183
|
+
// oauth required
|
|
14184
|
+
_a.sent();
|
|
14185
|
+
if (languageCode !== undefined) {
|
|
14186
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14187
|
+
}
|
|
14188
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14189
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14190
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14191
|
+
return [2 /*return*/, {
|
|
14192
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14193
|
+
options: localVarRequestOptions,
|
|
14194
|
+
}];
|
|
14195
|
+
}
|
|
14196
|
+
});
|
|
14197
|
+
});
|
|
14198
|
+
},
|
|
14199
|
+
/**
|
|
14200
|
+
*
|
|
14201
|
+
* @summary Update FaqCategory.
|
|
14202
|
+
* @param {string} faqCategoryId
|
|
14203
|
+
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14204
|
+
* @param {*} [options] Override http request option.
|
|
14205
|
+
* @throws {RequiredError}
|
|
14206
|
+
*/
|
|
14207
|
+
apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
|
|
14208
|
+
if (options === void 0) { options = {}; }
|
|
14209
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14210
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14211
|
+
return __generator(this, function (_a) {
|
|
14212
|
+
switch (_a.label) {
|
|
14213
|
+
case 0:
|
|
14214
|
+
// verify required parameter 'faqCategoryId' is not null or undefined
|
|
14215
|
+
common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdPut', 'faqCategoryId', faqCategoryId);
|
|
14216
|
+
localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
|
|
14217
|
+
.replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
|
|
14218
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14219
|
+
if (configuration) {
|
|
14220
|
+
baseOptions = configuration.baseOptions;
|
|
14221
|
+
}
|
|
14222
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
14223
|
+
localVarHeaderParameter = {};
|
|
14224
|
+
localVarQueryParameter = {};
|
|
14225
|
+
// authentication oauth2 required
|
|
14226
|
+
// oauth required
|
|
14227
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14228
|
+
case 1:
|
|
14229
|
+
// authentication oauth2 required
|
|
14230
|
+
// oauth required
|
|
14231
|
+
_a.sent();
|
|
14232
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14233
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14234
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14235
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14236
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFaqCategoryCommand, localVarRequestOptions, configuration);
|
|
14237
|
+
return [2 /*return*/, {
|
|
14238
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14239
|
+
options: localVarRequestOptions,
|
|
14240
|
+
}];
|
|
14241
|
+
}
|
|
14242
|
+
});
|
|
14243
|
+
});
|
|
14244
|
+
},
|
|
14245
|
+
/**
|
|
14246
|
+
*
|
|
14247
|
+
* @summary Get all FaqCategories.
|
|
14248
|
+
* @param {string} [id]
|
|
14249
|
+
* @param {string} [parentId]
|
|
14250
|
+
* @param {string} [name]
|
|
14251
|
+
* @param {string} [description]
|
|
14252
|
+
* @param {string} [languageCode]
|
|
14253
|
+
* @param {number} [page]
|
|
14254
|
+
* @param {number} [limit]
|
|
14255
|
+
* @param {Date} [lastRetrieved]
|
|
14256
|
+
* @param {*} [options] Override http request option.
|
|
14257
|
+
* @throws {RequiredError}
|
|
14258
|
+
*/
|
|
14259
|
+
apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
|
|
14260
|
+
if (options === void 0) { options = {}; }
|
|
14261
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14262
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14263
|
+
return __generator(this, function (_a) {
|
|
14264
|
+
switch (_a.label) {
|
|
14265
|
+
case 0:
|
|
14266
|
+
localVarPath = "/api/v1/faqcategories";
|
|
14267
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14268
|
+
if (configuration) {
|
|
14269
|
+
baseOptions = configuration.baseOptions;
|
|
14270
|
+
}
|
|
14271
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14272
|
+
localVarHeaderParameter = {};
|
|
14273
|
+
localVarQueryParameter = {};
|
|
14274
|
+
// authentication oauth2 required
|
|
14275
|
+
// oauth required
|
|
14276
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14277
|
+
case 1:
|
|
14278
|
+
// authentication oauth2 required
|
|
14279
|
+
// oauth required
|
|
14280
|
+
_a.sent();
|
|
14281
|
+
if (id !== undefined) {
|
|
14282
|
+
localVarQueryParameter['Id'] = id;
|
|
14283
|
+
}
|
|
14284
|
+
if (parentId !== undefined) {
|
|
14285
|
+
localVarQueryParameter['ParentId'] = parentId;
|
|
14286
|
+
}
|
|
14287
|
+
if (name !== undefined) {
|
|
14288
|
+
localVarQueryParameter['Name'] = name;
|
|
14289
|
+
}
|
|
14290
|
+
if (description !== undefined) {
|
|
14291
|
+
localVarQueryParameter['Description'] = description;
|
|
14292
|
+
}
|
|
14293
|
+
if (languageCode !== undefined) {
|
|
14294
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
14295
|
+
}
|
|
14296
|
+
if (page !== undefined) {
|
|
14297
|
+
localVarQueryParameter['page'] = page;
|
|
14298
|
+
}
|
|
14299
|
+
if (limit !== undefined) {
|
|
14300
|
+
localVarQueryParameter['limit'] = limit;
|
|
14301
|
+
}
|
|
14302
|
+
if (lastRetrieved !== undefined) {
|
|
14303
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14304
|
+
lastRetrieved.toISOString() :
|
|
14305
|
+
lastRetrieved;
|
|
14306
|
+
}
|
|
14307
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14308
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14309
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14310
|
+
return [2 /*return*/, {
|
|
14311
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14312
|
+
options: localVarRequestOptions,
|
|
14313
|
+
}];
|
|
14314
|
+
}
|
|
14315
|
+
});
|
|
14316
|
+
});
|
|
14317
|
+
},
|
|
14318
|
+
/**
|
|
14319
|
+
*
|
|
14320
|
+
* @summary Create a FaqCategory.
|
|
14321
|
+
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14322
|
+
* @param {*} [options] Override http request option.
|
|
14323
|
+
* @throws {RequiredError}
|
|
14324
|
+
*/
|
|
14325
|
+
apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
|
|
14326
|
+
if (options === void 0) { options = {}; }
|
|
14327
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14328
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14329
|
+
return __generator(this, function (_a) {
|
|
14330
|
+
switch (_a.label) {
|
|
14331
|
+
case 0:
|
|
14332
|
+
localVarPath = "/api/v1/faqcategories";
|
|
14333
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14334
|
+
if (configuration) {
|
|
14335
|
+
baseOptions = configuration.baseOptions;
|
|
14336
|
+
}
|
|
14337
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
14338
|
+
localVarHeaderParameter = {};
|
|
14339
|
+
localVarQueryParameter = {};
|
|
14340
|
+
// authentication oauth2 required
|
|
14341
|
+
// oauth required
|
|
14342
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14343
|
+
case 1:
|
|
14344
|
+
// authentication oauth2 required
|
|
14345
|
+
// oauth required
|
|
14346
|
+
_a.sent();
|
|
14347
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14348
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14349
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14350
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14351
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFaqCategoryCommand, localVarRequestOptions, configuration);
|
|
14352
|
+
return [2 /*return*/, {
|
|
14353
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14354
|
+
options: localVarRequestOptions,
|
|
14355
|
+
}];
|
|
14356
|
+
}
|
|
14357
|
+
});
|
|
14358
|
+
});
|
|
14359
|
+
},
|
|
14360
|
+
/**
|
|
14361
|
+
*
|
|
14362
|
+
* @summary Get FaqCategory by slug.
|
|
14363
|
+
* @param {string} slug
|
|
14364
|
+
* @param {string} [languageCode]
|
|
14365
|
+
* @param {*} [options] Override http request option.
|
|
14366
|
+
* @throws {RequiredError}
|
|
14367
|
+
*/
|
|
14368
|
+
apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
|
|
14369
|
+
if (options === void 0) { options = {}; }
|
|
14370
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14371
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14372
|
+
return __generator(this, function (_a) {
|
|
14373
|
+
switch (_a.label) {
|
|
14374
|
+
case 0:
|
|
14375
|
+
// verify required parameter 'slug' is not null or undefined
|
|
14376
|
+
common_1.assertParamExists('apiV1FaqcategoriesSlugGet', 'slug', slug);
|
|
14377
|
+
localVarPath = "/api/v1/faqcategories/{slug}"
|
|
14378
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
14379
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14380
|
+
if (configuration) {
|
|
14381
|
+
baseOptions = configuration.baseOptions;
|
|
14382
|
+
}
|
|
14383
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14384
|
+
localVarHeaderParameter = {};
|
|
14385
|
+
localVarQueryParameter = {};
|
|
14386
|
+
// authentication oauth2 required
|
|
14387
|
+
// oauth required
|
|
14388
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14389
|
+
case 1:
|
|
14390
|
+
// authentication oauth2 required
|
|
14391
|
+
// oauth required
|
|
14392
|
+
_a.sent();
|
|
14393
|
+
if (languageCode !== undefined) {
|
|
14394
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14395
|
+
}
|
|
14396
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14397
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14398
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14399
|
+
return [2 /*return*/, {
|
|
14400
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14401
|
+
options: localVarRequestOptions,
|
|
14402
|
+
}];
|
|
14403
|
+
}
|
|
14404
|
+
});
|
|
14405
|
+
});
|
|
14406
|
+
},
|
|
14407
|
+
};
|
|
14408
|
+
};
|
|
14409
|
+
/**
|
|
14410
|
+
* FaqCategoriesApi - functional programming interface
|
|
14411
|
+
* @export
|
|
14412
|
+
*/
|
|
14413
|
+
exports.FaqCategoriesApiFp = function (configuration) {
|
|
14414
|
+
var localVarAxiosParamCreator = exports.FaqCategoriesApiAxiosParamCreator(configuration);
|
|
14415
|
+
return {
|
|
14416
|
+
/**
|
|
14417
|
+
*
|
|
14418
|
+
* @summary Get BreadCrumbs.
|
|
14419
|
+
* @param {string} faqId
|
|
14420
|
+
* @param {string} [languageCode]
|
|
14421
|
+
* @param {*} [options] Override http request option.
|
|
14422
|
+
* @throws {RequiredError}
|
|
14423
|
+
*/
|
|
14424
|
+
apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
14425
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14426
|
+
var localVarAxiosArgs;
|
|
14427
|
+
return __generator(this, function (_a) {
|
|
14428
|
+
switch (_a.label) {
|
|
14429
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
|
|
14430
|
+
case 1:
|
|
14431
|
+
localVarAxiosArgs = _a.sent();
|
|
14432
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14433
|
+
}
|
|
14434
|
+
});
|
|
14435
|
+
});
|
|
14436
|
+
},
|
|
14437
|
+
/**
|
|
14438
|
+
*
|
|
14439
|
+
* @summary Delete FaqCategory.
|
|
14440
|
+
* @param {string} faqCategoryId
|
|
14441
|
+
* @param {boolean} [forceDelete]
|
|
14442
|
+
* @param {*} [options] Override http request option.
|
|
14443
|
+
* @throws {RequiredError}
|
|
14444
|
+
*/
|
|
14445
|
+
apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
|
|
14446
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14447
|
+
var localVarAxiosArgs;
|
|
14448
|
+
return __generator(this, function (_a) {
|
|
14449
|
+
switch (_a.label) {
|
|
14450
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options)];
|
|
14451
|
+
case 1:
|
|
14452
|
+
localVarAxiosArgs = _a.sent();
|
|
14453
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14454
|
+
}
|
|
14455
|
+
});
|
|
14456
|
+
});
|
|
14457
|
+
},
|
|
14458
|
+
/**
|
|
14459
|
+
*
|
|
14460
|
+
* @summary Get FaqCategory.
|
|
14461
|
+
* @param {string} faqCategoryId
|
|
14462
|
+
* @param {string} [languageCode]
|
|
14463
|
+
* @param {*} [options] Override http request option.
|
|
14464
|
+
* @throws {RequiredError}
|
|
14465
|
+
*/
|
|
14466
|
+
apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
|
|
14467
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14468
|
+
var localVarAxiosArgs;
|
|
14469
|
+
return __generator(this, function (_a) {
|
|
14470
|
+
switch (_a.label) {
|
|
14471
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options)];
|
|
14472
|
+
case 1:
|
|
14473
|
+
localVarAxiosArgs = _a.sent();
|
|
14474
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14475
|
+
}
|
|
14476
|
+
});
|
|
14477
|
+
});
|
|
14478
|
+
},
|
|
14479
|
+
/**
|
|
14480
|
+
*
|
|
14481
|
+
* @summary Update FaqCategory.
|
|
14482
|
+
* @param {string} faqCategoryId
|
|
14483
|
+
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14484
|
+
* @param {*} [options] Override http request option.
|
|
14485
|
+
* @throws {RequiredError}
|
|
14486
|
+
*/
|
|
14487
|
+
apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
|
|
14488
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14489
|
+
var localVarAxiosArgs;
|
|
14490
|
+
return __generator(this, function (_a) {
|
|
14491
|
+
switch (_a.label) {
|
|
14492
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options)];
|
|
14493
|
+
case 1:
|
|
14494
|
+
localVarAxiosArgs = _a.sent();
|
|
14495
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14496
|
+
}
|
|
14497
|
+
});
|
|
14498
|
+
});
|
|
14499
|
+
},
|
|
14500
|
+
/**
|
|
14501
|
+
*
|
|
14502
|
+
* @summary Get all FaqCategories.
|
|
14503
|
+
* @param {string} [id]
|
|
14504
|
+
* @param {string} [parentId]
|
|
14505
|
+
* @param {string} [name]
|
|
14506
|
+
* @param {string} [description]
|
|
14507
|
+
* @param {string} [languageCode]
|
|
14508
|
+
* @param {number} [page]
|
|
14509
|
+
* @param {number} [limit]
|
|
14510
|
+
* @param {Date} [lastRetrieved]
|
|
14511
|
+
* @param {*} [options] Override http request option.
|
|
14512
|
+
* @throws {RequiredError}
|
|
14513
|
+
*/
|
|
14514
|
+
apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
|
|
14515
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14516
|
+
var localVarAxiosArgs;
|
|
14517
|
+
return __generator(this, function (_a) {
|
|
14518
|
+
switch (_a.label) {
|
|
14519
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options)];
|
|
14520
|
+
case 1:
|
|
14521
|
+
localVarAxiosArgs = _a.sent();
|
|
14522
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14523
|
+
}
|
|
14524
|
+
});
|
|
14525
|
+
});
|
|
14526
|
+
},
|
|
14527
|
+
/**
|
|
14528
|
+
*
|
|
14529
|
+
* @summary Create a FaqCategory.
|
|
14530
|
+
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14531
|
+
* @param {*} [options] Override http request option.
|
|
14532
|
+
* @throws {RequiredError}
|
|
14533
|
+
*/
|
|
14534
|
+
apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
|
|
14535
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14536
|
+
var localVarAxiosArgs;
|
|
14537
|
+
return __generator(this, function (_a) {
|
|
14538
|
+
switch (_a.label) {
|
|
14539
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesPost(createFaqCategoryCommand, options)];
|
|
14540
|
+
case 1:
|
|
14541
|
+
localVarAxiosArgs = _a.sent();
|
|
14542
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14543
|
+
}
|
|
14544
|
+
});
|
|
14545
|
+
});
|
|
14546
|
+
},
|
|
14547
|
+
/**
|
|
14548
|
+
*
|
|
14549
|
+
* @summary Get FaqCategory by slug.
|
|
14550
|
+
* @param {string} slug
|
|
14551
|
+
* @param {string} [languageCode]
|
|
14552
|
+
* @param {*} [options] Override http request option.
|
|
14553
|
+
* @throws {RequiredError}
|
|
14554
|
+
*/
|
|
14555
|
+
apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
|
|
14556
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
14557
|
+
var localVarAxiosArgs;
|
|
14558
|
+
return __generator(this, function (_a) {
|
|
14559
|
+
switch (_a.label) {
|
|
14560
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesSlugGet(slug, languageCode, options)];
|
|
14561
|
+
case 1:
|
|
14562
|
+
localVarAxiosArgs = _a.sent();
|
|
14563
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
14564
|
+
}
|
|
14565
|
+
});
|
|
14566
|
+
});
|
|
14567
|
+
},
|
|
14568
|
+
};
|
|
14569
|
+
};
|
|
14570
|
+
/**
|
|
14571
|
+
* FaqCategoriesApi - factory interface
|
|
14572
|
+
* @export
|
|
14573
|
+
*/
|
|
14574
|
+
exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
|
|
14575
|
+
var localVarFp = exports.FaqCategoriesApiFp(configuration);
|
|
14576
|
+
return {
|
|
14577
|
+
/**
|
|
14578
|
+
*
|
|
14579
|
+
* @summary Get BreadCrumbs.
|
|
14580
|
+
* @param {string} faqId
|
|
14581
|
+
* @param {string} [languageCode]
|
|
14582
|
+
* @param {*} [options] Override http request option.
|
|
14583
|
+
* @throws {RequiredError}
|
|
14584
|
+
*/
|
|
14585
|
+
apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
|
|
14586
|
+
return localVarFp.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
14587
|
+
},
|
|
14588
|
+
/**
|
|
14589
|
+
*
|
|
14590
|
+
* @summary Delete FaqCategory.
|
|
14591
|
+
* @param {string} faqCategoryId
|
|
14592
|
+
* @param {boolean} [forceDelete]
|
|
14593
|
+
* @param {*} [options] Override http request option.
|
|
14594
|
+
* @throws {RequiredError}
|
|
14595
|
+
*/
|
|
14596
|
+
apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
|
|
14597
|
+
return localVarFp.apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options).then(function (request) { return request(axios, basePath); });
|
|
14598
|
+
},
|
|
14599
|
+
/**
|
|
14600
|
+
*
|
|
14601
|
+
* @summary Get FaqCategory.
|
|
14602
|
+
* @param {string} faqCategoryId
|
|
14603
|
+
* @param {string} [languageCode]
|
|
14604
|
+
* @param {*} [options] Override http request option.
|
|
14605
|
+
* @throws {RequiredError}
|
|
14606
|
+
*/
|
|
14607
|
+
apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
|
|
14608
|
+
return localVarFp.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
14609
|
+
},
|
|
14610
|
+
/**
|
|
14611
|
+
*
|
|
14612
|
+
* @summary Update FaqCategory.
|
|
14613
|
+
* @param {string} faqCategoryId
|
|
14614
|
+
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14615
|
+
* @param {*} [options] Override http request option.
|
|
14616
|
+
* @throws {RequiredError}
|
|
14617
|
+
*/
|
|
14618
|
+
apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
|
|
14619
|
+
return localVarFp.apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14620
|
+
},
|
|
14621
|
+
/**
|
|
14622
|
+
*
|
|
14623
|
+
* @summary Get all FaqCategories.
|
|
14624
|
+
* @param {string} [id]
|
|
14625
|
+
* @param {string} [parentId]
|
|
14626
|
+
* @param {string} [name]
|
|
14627
|
+
* @param {string} [description]
|
|
14628
|
+
* @param {string} [languageCode]
|
|
14629
|
+
* @param {number} [page]
|
|
14630
|
+
* @param {number} [limit]
|
|
14631
|
+
* @param {Date} [lastRetrieved]
|
|
14632
|
+
* @param {*} [options] Override http request option.
|
|
14633
|
+
* @throws {RequiredError}
|
|
14634
|
+
*/
|
|
14635
|
+
apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
|
|
14636
|
+
return localVarFp.apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
14637
|
+
},
|
|
14638
|
+
/**
|
|
14639
|
+
*
|
|
14640
|
+
* @summary Create a FaqCategory.
|
|
14641
|
+
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14642
|
+
* @param {*} [options] Override http request option.
|
|
14643
|
+
* @throws {RequiredError}
|
|
14644
|
+
*/
|
|
14645
|
+
apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
|
|
14646
|
+
return localVarFp.apiV1FaqcategoriesPost(createFaqCategoryCommand, options).then(function (request) { return request(axios, basePath); });
|
|
14647
|
+
},
|
|
14648
|
+
/**
|
|
14649
|
+
*
|
|
14650
|
+
* @summary Get FaqCategory by slug.
|
|
14651
|
+
* @param {string} slug
|
|
14652
|
+
* @param {string} [languageCode]
|
|
14653
|
+
* @param {*} [options] Override http request option.
|
|
14654
|
+
* @throws {RequiredError}
|
|
14655
|
+
*/
|
|
14656
|
+
apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
|
|
14657
|
+
return localVarFp.apiV1FaqcategoriesSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
14658
|
+
},
|
|
14659
|
+
};
|
|
14660
|
+
};
|
|
14661
|
+
/**
|
|
14662
|
+
* FaqCategoriesApi - object-oriented interface
|
|
14663
|
+
* @export
|
|
14664
|
+
* @class FaqCategoriesApi
|
|
14665
|
+
* @extends {BaseAPI}
|
|
14666
|
+
*/
|
|
14667
|
+
var FaqCategoriesApi = /** @class */ (function (_super) {
|
|
14668
|
+
__extends(FaqCategoriesApi, _super);
|
|
14669
|
+
function FaqCategoriesApi() {
|
|
14670
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
14671
|
+
}
|
|
14672
|
+
/**
|
|
14673
|
+
*
|
|
14674
|
+
* @summary Get BreadCrumbs.
|
|
14675
|
+
* @param {string} faqId
|
|
14676
|
+
* @param {string} [languageCode]
|
|
14677
|
+
* @param {*} [options] Override http request option.
|
|
14678
|
+
* @throws {RequiredError}
|
|
14679
|
+
* @memberof FaqCategoriesApi
|
|
14680
|
+
*/
|
|
14681
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesBreadcrumbsFaqIdGet = function (faqId, languageCode, options) {
|
|
14682
|
+
var _this = this;
|
|
14683
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14684
|
+
};
|
|
14685
|
+
/**
|
|
14686
|
+
*
|
|
14687
|
+
* @summary Delete FaqCategory.
|
|
14688
|
+
* @param {string} faqCategoryId
|
|
14689
|
+
* @param {boolean} [forceDelete]
|
|
14690
|
+
* @param {*} [options] Override http request option.
|
|
14691
|
+
* @throws {RequiredError}
|
|
14692
|
+
* @memberof FaqCategoriesApi
|
|
14693
|
+
*/
|
|
14694
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesFaqCategoryIdDelete = function (faqCategoryId, forceDelete, options) {
|
|
14695
|
+
var _this = this;
|
|
14696
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14697
|
+
};
|
|
14698
|
+
/**
|
|
14699
|
+
*
|
|
14700
|
+
* @summary Get FaqCategory.
|
|
14701
|
+
* @param {string} faqCategoryId
|
|
14702
|
+
* @param {string} [languageCode]
|
|
14703
|
+
* @param {*} [options] Override http request option.
|
|
14704
|
+
* @throws {RequiredError}
|
|
14705
|
+
* @memberof FaqCategoriesApi
|
|
14706
|
+
*/
|
|
14707
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesFaqCategoryIdGet = function (faqCategoryId, languageCode, options) {
|
|
14708
|
+
var _this = this;
|
|
14709
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14710
|
+
};
|
|
14711
|
+
/**
|
|
14712
|
+
*
|
|
14713
|
+
* @summary Update FaqCategory.
|
|
14714
|
+
* @param {string} faqCategoryId
|
|
14715
|
+
* @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
|
|
14716
|
+
* @param {*} [options] Override http request option.
|
|
14717
|
+
* @throws {RequiredError}
|
|
14718
|
+
* @memberof FaqCategoriesApi
|
|
14719
|
+
*/
|
|
14720
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesFaqCategoryIdPut = function (faqCategoryId, updateFaqCategoryCommand, options) {
|
|
14721
|
+
var _this = this;
|
|
14722
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14723
|
+
};
|
|
14724
|
+
/**
|
|
14725
|
+
*
|
|
14726
|
+
* @summary Get all FaqCategories.
|
|
14727
|
+
* @param {string} [id]
|
|
14728
|
+
* @param {string} [parentId]
|
|
14729
|
+
* @param {string} [name]
|
|
14730
|
+
* @param {string} [description]
|
|
14731
|
+
* @param {string} [languageCode]
|
|
14732
|
+
* @param {number} [page]
|
|
14733
|
+
* @param {number} [limit]
|
|
14734
|
+
* @param {Date} [lastRetrieved]
|
|
14735
|
+
* @param {*} [options] Override http request option.
|
|
14736
|
+
* @throws {RequiredError}
|
|
14737
|
+
* @memberof FaqCategoriesApi
|
|
14738
|
+
*/
|
|
14739
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesGet = function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
|
|
14740
|
+
var _this = this;
|
|
14741
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14742
|
+
};
|
|
14743
|
+
/**
|
|
14744
|
+
*
|
|
14745
|
+
* @summary Create a FaqCategory.
|
|
14746
|
+
* @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
|
|
14747
|
+
* @param {*} [options] Override http request option.
|
|
14748
|
+
* @throws {RequiredError}
|
|
14749
|
+
* @memberof FaqCategoriesApi
|
|
14750
|
+
*/
|
|
14751
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesPost = function (createFaqCategoryCommand, options) {
|
|
14752
|
+
var _this = this;
|
|
14753
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesPost(createFaqCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14754
|
+
};
|
|
14755
|
+
/**
|
|
14756
|
+
*
|
|
14757
|
+
* @summary Get FaqCategory by slug.
|
|
14758
|
+
* @param {string} slug
|
|
14759
|
+
* @param {string} [languageCode]
|
|
14760
|
+
* @param {*} [options] Override http request option.
|
|
14761
|
+
* @throws {RequiredError}
|
|
14762
|
+
* @memberof FaqCategoriesApi
|
|
14763
|
+
*/
|
|
14764
|
+
FaqCategoriesApi.prototype.apiV1FaqcategoriesSlugGet = function (slug, languageCode, options) {
|
|
14765
|
+
var _this = this;
|
|
14766
|
+
return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
14767
|
+
};
|
|
14768
|
+
return FaqCategoriesApi;
|
|
14769
|
+
}(base_1.BaseAPI));
|
|
14770
|
+
exports.FaqCategoriesApi = FaqCategoriesApi;
|
|
14771
|
+
/**
|
|
14772
|
+
* FaqsApi - axios parameter creator
|
|
14773
|
+
* @export
|
|
14774
|
+
*/
|
|
14775
|
+
exports.FaqsApiAxiosParamCreator = function (configuration) {
|
|
14776
|
+
var _this = this;
|
|
14777
|
+
return {
|
|
14778
|
+
/**
|
|
14779
|
+
*
|
|
14780
|
+
* @summary Delete faq.
|
|
14781
|
+
* @param {string} faqId
|
|
14782
|
+
* @param {*} [options] Override http request option.
|
|
14783
|
+
* @throws {RequiredError}
|
|
14784
|
+
*/
|
|
14785
|
+
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
14786
|
+
if (options === void 0) { options = {}; }
|
|
14787
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14788
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14789
|
+
return __generator(this, function (_a) {
|
|
14790
|
+
switch (_a.label) {
|
|
14791
|
+
case 0:
|
|
14792
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14793
|
+
common_1.assertParamExists('apiV1FaqsFaqIdDelete', 'faqId', faqId);
|
|
14794
|
+
localVarPath = "/api/v1/faqs/{faqId}"
|
|
14795
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
14796
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14797
|
+
if (configuration) {
|
|
14798
|
+
baseOptions = configuration.baseOptions;
|
|
14799
|
+
}
|
|
14800
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14801
|
+
localVarHeaderParameter = {};
|
|
14802
|
+
localVarQueryParameter = {};
|
|
14803
|
+
// authentication oauth2 required
|
|
14804
|
+
// oauth required
|
|
14805
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14806
|
+
case 1:
|
|
14807
|
+
// authentication oauth2 required
|
|
14808
|
+
// oauth required
|
|
14809
|
+
_a.sent();
|
|
14810
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14811
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14812
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14813
|
+
return [2 /*return*/, {
|
|
14814
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14815
|
+
options: localVarRequestOptions,
|
|
14816
|
+
}];
|
|
14817
|
+
}
|
|
14818
|
+
});
|
|
14819
|
+
});
|
|
14820
|
+
},
|
|
14821
|
+
/**
|
|
14822
|
+
*
|
|
14823
|
+
* @summary Get faq.
|
|
14824
|
+
* @param {string} faqId
|
|
14825
|
+
* @param {string} [languageCode]
|
|
14826
|
+
* @param {*} [options] Override http request option.
|
|
14827
|
+
* @throws {RequiredError}
|
|
14828
|
+
*/
|
|
14829
|
+
apiV1FaqsFaqIdGet: function (faqId, languageCode, options) {
|
|
14830
|
+
if (options === void 0) { options = {}; }
|
|
14831
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14832
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14833
|
+
return __generator(this, function (_a) {
|
|
14834
|
+
switch (_a.label) {
|
|
14835
|
+
case 0:
|
|
14836
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14837
|
+
common_1.assertParamExists('apiV1FaqsFaqIdGet', 'faqId', faqId);
|
|
14838
|
+
localVarPath = "/api/v1/faqs/{faqId}"
|
|
14839
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
14840
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14841
|
+
if (configuration) {
|
|
14842
|
+
baseOptions = configuration.baseOptions;
|
|
14843
|
+
}
|
|
14844
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14845
|
+
localVarHeaderParameter = {};
|
|
14846
|
+
localVarQueryParameter = {};
|
|
14847
|
+
// authentication oauth2 required
|
|
14848
|
+
// oauth required
|
|
14849
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14850
|
+
case 1:
|
|
14851
|
+
// authentication oauth2 required
|
|
14852
|
+
// oauth required
|
|
14853
|
+
_a.sent();
|
|
14854
|
+
if (languageCode !== undefined) {
|
|
14855
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
14856
|
+
}
|
|
14857
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14858
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14859
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14860
|
+
return [2 /*return*/, {
|
|
14861
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14862
|
+
options: localVarRequestOptions,
|
|
14863
|
+
}];
|
|
14864
|
+
}
|
|
14865
|
+
});
|
|
14866
|
+
});
|
|
14867
|
+
},
|
|
14868
|
+
/**
|
|
14869
|
+
*
|
|
14870
|
+
* @summary Get all FaqMedias.
|
|
14871
|
+
* @param {string} faqId
|
|
14872
|
+
* @param {string} [id]
|
|
14873
|
+
* @param {MediaType} [mediaType]
|
|
14874
|
+
* @param {number} [page]
|
|
14875
|
+
* @param {number} [limit]
|
|
14876
|
+
* @param {Date} [lastRetrieved]
|
|
14877
|
+
* @param {*} [options] Override http request option.
|
|
14878
|
+
* @throws {RequiredError}
|
|
14879
|
+
*/
|
|
14880
|
+
apiV1FaqsFaqIdMediasGet: function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
14881
|
+
if (options === void 0) { options = {}; }
|
|
14882
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14883
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14884
|
+
return __generator(this, function (_a) {
|
|
14885
|
+
switch (_a.label) {
|
|
14886
|
+
case 0:
|
|
14887
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14888
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasGet', 'faqId', faqId);
|
|
14889
|
+
localVarPath = "/api/v1/faqs/{faqId}/medias"
|
|
14890
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
14891
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14892
|
+
if (configuration) {
|
|
14893
|
+
baseOptions = configuration.baseOptions;
|
|
14894
|
+
}
|
|
14895
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
14896
|
+
localVarHeaderParameter = {};
|
|
14897
|
+
localVarQueryParameter = {};
|
|
14898
|
+
// authentication oauth2 required
|
|
14899
|
+
// oauth required
|
|
14900
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14901
|
+
case 1:
|
|
14902
|
+
// authentication oauth2 required
|
|
14903
|
+
// oauth required
|
|
14904
|
+
_a.sent();
|
|
14905
|
+
if (id !== undefined) {
|
|
14906
|
+
localVarQueryParameter['Id'] = id;
|
|
14907
|
+
}
|
|
14908
|
+
if (mediaType !== undefined) {
|
|
14909
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
14910
|
+
}
|
|
14911
|
+
if (page !== undefined) {
|
|
14912
|
+
localVarQueryParameter['page'] = page;
|
|
14913
|
+
}
|
|
14914
|
+
if (limit !== undefined) {
|
|
14915
|
+
localVarQueryParameter['limit'] = limit;
|
|
14916
|
+
}
|
|
14917
|
+
if (lastRetrieved !== undefined) {
|
|
14918
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
14919
|
+
lastRetrieved.toISOString() :
|
|
14920
|
+
lastRetrieved;
|
|
14921
|
+
}
|
|
14922
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14923
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14924
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14925
|
+
return [2 /*return*/, {
|
|
14926
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14927
|
+
options: localVarRequestOptions,
|
|
14928
|
+
}];
|
|
14929
|
+
}
|
|
14930
|
+
});
|
|
14931
|
+
});
|
|
14932
|
+
},
|
|
14933
|
+
/**
|
|
14934
|
+
*
|
|
14935
|
+
* @summary Delete FaqMedia
|
|
14936
|
+
* @param {string} faqId
|
|
14937
|
+
* @param {string} mediaId
|
|
14938
|
+
* @param {*} [options] Override http request option.
|
|
14939
|
+
* @throws {RequiredError}
|
|
14940
|
+
*/
|
|
14941
|
+
apiV1FaqsFaqIdMediasMediaIdDelete: function (faqId, mediaId, options) {
|
|
14942
|
+
if (options === void 0) { options = {}; }
|
|
14943
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14944
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14945
|
+
return __generator(this, function (_a) {
|
|
14946
|
+
switch (_a.label) {
|
|
14947
|
+
case 0:
|
|
14948
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14949
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdDelete', 'faqId', faqId);
|
|
14950
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
14951
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
14952
|
+
localVarPath = "/api/v1/faqs/{faqId}/medias/{mediaId}"
|
|
14953
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)))
|
|
14954
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
14955
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
14956
|
+
if (configuration) {
|
|
14957
|
+
baseOptions = configuration.baseOptions;
|
|
14958
|
+
}
|
|
14959
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
14960
|
+
localVarHeaderParameter = {};
|
|
14961
|
+
localVarQueryParameter = {};
|
|
14962
|
+
// authentication oauth2 required
|
|
14963
|
+
// oauth required
|
|
14964
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
14965
|
+
case 1:
|
|
14966
|
+
// authentication oauth2 required
|
|
14967
|
+
// oauth required
|
|
14968
|
+
_a.sent();
|
|
14969
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14970
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14971
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14972
|
+
return [2 /*return*/, {
|
|
14973
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
14974
|
+
options: localVarRequestOptions,
|
|
14975
|
+
}];
|
|
14976
|
+
}
|
|
14977
|
+
});
|
|
14978
|
+
});
|
|
14979
|
+
},
|
|
14980
|
+
/**
|
|
14981
|
+
*
|
|
14982
|
+
* @summary Get FaqMedia.
|
|
14983
|
+
* @param {string} faqId
|
|
14984
|
+
* @param {string} mediaId
|
|
14985
|
+
* @param {*} [options] Override http request option.
|
|
14986
|
+
* @throws {RequiredError}
|
|
14987
|
+
*/
|
|
14988
|
+
apiV1FaqsFaqIdMediasMediaIdGet: function (faqId, mediaId, options) {
|
|
14989
|
+
if (options === void 0) { options = {}; }
|
|
14990
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
14991
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
14992
|
+
return __generator(this, function (_a) {
|
|
14993
|
+
switch (_a.label) {
|
|
14994
|
+
case 0:
|
|
14995
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
14996
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdGet', 'faqId', faqId);
|
|
14997
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
14998
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
14999
|
+
localVarPath = "/api/v1/faqs/{faqId}/medias/{mediaId}"
|
|
15000
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)))
|
|
15001
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
15002
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15003
|
+
if (configuration) {
|
|
15004
|
+
baseOptions = configuration.baseOptions;
|
|
15005
|
+
}
|
|
15006
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15007
|
+
localVarHeaderParameter = {};
|
|
15008
|
+
localVarQueryParameter = {};
|
|
15009
|
+
// authentication oauth2 required
|
|
15010
|
+
// oauth required
|
|
15011
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15012
|
+
case 1:
|
|
15013
|
+
// authentication oauth2 required
|
|
15014
|
+
// oauth required
|
|
15015
|
+
_a.sent();
|
|
15016
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15017
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15018
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15019
|
+
return [2 /*return*/, {
|
|
15020
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15021
|
+
options: localVarRequestOptions,
|
|
15022
|
+
}];
|
|
15023
|
+
}
|
|
15024
|
+
});
|
|
15025
|
+
});
|
|
15026
|
+
},
|
|
15027
|
+
/**
|
|
15028
|
+
*
|
|
15029
|
+
* @summary Update FaqMedia.
|
|
15030
|
+
* @param {string} faqId
|
|
15031
|
+
* @param {string} mediaId
|
|
15032
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
15033
|
+
* @param {*} [options] Override http request option.
|
|
15034
|
+
* @throws {RequiredError}
|
|
15035
|
+
*/
|
|
15036
|
+
apiV1FaqsFaqIdMediasMediaIdPut: function (faqId, mediaId, updateMediaCommand, options) {
|
|
15037
|
+
if (options === void 0) { options = {}; }
|
|
15038
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15039
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15040
|
+
return __generator(this, function (_a) {
|
|
15041
|
+
switch (_a.label) {
|
|
15042
|
+
case 0:
|
|
15043
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
15044
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdPut', 'faqId', faqId);
|
|
15045
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
15046
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
15047
|
+
localVarPath = "/api/v1/faqs/{faqId}/medias/{mediaId}"
|
|
15048
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)))
|
|
15049
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
15050
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15051
|
+
if (configuration) {
|
|
15052
|
+
baseOptions = configuration.baseOptions;
|
|
15053
|
+
}
|
|
15054
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
15055
|
+
localVarHeaderParameter = {};
|
|
15056
|
+
localVarQueryParameter = {};
|
|
15057
|
+
// authentication oauth2 required
|
|
15058
|
+
// oauth required
|
|
15059
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15060
|
+
case 1:
|
|
15061
|
+
// authentication oauth2 required
|
|
15062
|
+
// oauth required
|
|
15063
|
+
_a.sent();
|
|
15064
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15065
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15066
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15067
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15068
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
15069
|
+
return [2 /*return*/, {
|
|
15070
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15071
|
+
options: localVarRequestOptions,
|
|
15072
|
+
}];
|
|
15073
|
+
}
|
|
15074
|
+
});
|
|
15075
|
+
});
|
|
15076
|
+
},
|
|
15077
|
+
/**
|
|
15078
|
+
*
|
|
15079
|
+
* @summary Create FaqMedia.
|
|
15080
|
+
* @param {string} faqId
|
|
15081
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
15082
|
+
* @param {*} [options] Override http request option.
|
|
15083
|
+
* @throws {RequiredError}
|
|
15084
|
+
*/
|
|
15085
|
+
apiV1FaqsFaqIdMediasPost: function (faqId, createMediaCommand, options) {
|
|
15086
|
+
if (options === void 0) { options = {}; }
|
|
15087
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15088
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15089
|
+
return __generator(this, function (_a) {
|
|
15090
|
+
switch (_a.label) {
|
|
15091
|
+
case 0:
|
|
15092
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
15093
|
+
common_1.assertParamExists('apiV1FaqsFaqIdMediasPost', 'faqId', faqId);
|
|
15094
|
+
localVarPath = "/api/v1/faqs/{faqId}/medias"
|
|
15095
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
15096
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15097
|
+
if (configuration) {
|
|
15098
|
+
baseOptions = configuration.baseOptions;
|
|
15099
|
+
}
|
|
15100
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
15101
|
+
localVarHeaderParameter = {};
|
|
15102
|
+
localVarQueryParameter = {};
|
|
15103
|
+
// authentication oauth2 required
|
|
15104
|
+
// oauth required
|
|
15105
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15106
|
+
case 1:
|
|
15107
|
+
// authentication oauth2 required
|
|
15108
|
+
// oauth required
|
|
15109
|
+
_a.sent();
|
|
15110
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15111
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15112
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15113
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15114
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
15115
|
+
return [2 /*return*/, {
|
|
15116
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15117
|
+
options: localVarRequestOptions,
|
|
15118
|
+
}];
|
|
15119
|
+
}
|
|
15120
|
+
});
|
|
15121
|
+
});
|
|
15122
|
+
},
|
|
15123
|
+
/**
|
|
15124
|
+
*
|
|
15125
|
+
* @summary Update faq.
|
|
15126
|
+
* @param {string} faqId
|
|
15127
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
15128
|
+
* @param {*} [options] Override http request option.
|
|
15129
|
+
* @throws {RequiredError}
|
|
15130
|
+
*/
|
|
15131
|
+
apiV1FaqsFaqIdPut: function (faqId, updateFaqCommand, options) {
|
|
15132
|
+
if (options === void 0) { options = {}; }
|
|
15133
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15134
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15135
|
+
return __generator(this, function (_a) {
|
|
15136
|
+
switch (_a.label) {
|
|
15137
|
+
case 0:
|
|
15138
|
+
// verify required parameter 'faqId' is not null or undefined
|
|
15139
|
+
common_1.assertParamExists('apiV1FaqsFaqIdPut', 'faqId', faqId);
|
|
15140
|
+
localVarPath = "/api/v1/faqs/{faqId}"
|
|
15141
|
+
.replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
|
|
15142
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15143
|
+
if (configuration) {
|
|
15144
|
+
baseOptions = configuration.baseOptions;
|
|
15145
|
+
}
|
|
15146
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
15147
|
+
localVarHeaderParameter = {};
|
|
15148
|
+
localVarQueryParameter = {};
|
|
15149
|
+
// authentication oauth2 required
|
|
15150
|
+
// oauth required
|
|
15151
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15152
|
+
case 1:
|
|
15153
|
+
// authentication oauth2 required
|
|
15154
|
+
// oauth required
|
|
15155
|
+
_a.sent();
|
|
15156
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15157
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15158
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15159
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15160
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFaqCommand, localVarRequestOptions, configuration);
|
|
15161
|
+
return [2 /*return*/, {
|
|
15162
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15163
|
+
options: localVarRequestOptions,
|
|
15164
|
+
}];
|
|
15165
|
+
}
|
|
15166
|
+
});
|
|
15167
|
+
});
|
|
15168
|
+
},
|
|
15169
|
+
/**
|
|
15170
|
+
*
|
|
15171
|
+
* @summary Get all Faqs.
|
|
15172
|
+
* @param {string} [id]
|
|
15173
|
+
* @param {string} [title]
|
|
15174
|
+
* @param {string} [content]
|
|
15175
|
+
* @param {string} [categoryId]
|
|
15176
|
+
* @param {string} [languageCode]
|
|
15177
|
+
* @param {number} [page]
|
|
15178
|
+
* @param {number} [limit]
|
|
15179
|
+
* @param {Date} [lastRetrieved]
|
|
15180
|
+
* @param {*} [options] Override http request option.
|
|
15181
|
+
* @throws {RequiredError}
|
|
15182
|
+
*/
|
|
15183
|
+
apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
15184
|
+
if (options === void 0) { options = {}; }
|
|
15185
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15186
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15187
|
+
return __generator(this, function (_a) {
|
|
15188
|
+
switch (_a.label) {
|
|
15189
|
+
case 0:
|
|
15190
|
+
localVarPath = "/api/v1/faqs";
|
|
15191
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15192
|
+
if (configuration) {
|
|
15193
|
+
baseOptions = configuration.baseOptions;
|
|
15194
|
+
}
|
|
15195
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15196
|
+
localVarHeaderParameter = {};
|
|
15197
|
+
localVarQueryParameter = {};
|
|
15198
|
+
// authentication oauth2 required
|
|
15199
|
+
// oauth required
|
|
15200
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15201
|
+
case 1:
|
|
15202
|
+
// authentication oauth2 required
|
|
15203
|
+
// oauth required
|
|
15204
|
+
_a.sent();
|
|
15205
|
+
if (id !== undefined) {
|
|
15206
|
+
localVarQueryParameter['Id'] = id;
|
|
15207
|
+
}
|
|
15208
|
+
if (title !== undefined) {
|
|
15209
|
+
localVarQueryParameter['Title'] = title;
|
|
15210
|
+
}
|
|
15211
|
+
if (content !== undefined) {
|
|
15212
|
+
localVarQueryParameter['Content'] = content;
|
|
15213
|
+
}
|
|
15214
|
+
if (categoryId !== undefined) {
|
|
15215
|
+
localVarQueryParameter['CategoryId'] = categoryId;
|
|
15216
|
+
}
|
|
15217
|
+
if (languageCode !== undefined) {
|
|
15218
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
15219
|
+
}
|
|
15220
|
+
if (page !== undefined) {
|
|
15221
|
+
localVarQueryParameter['page'] = page;
|
|
15222
|
+
}
|
|
15223
|
+
if (limit !== undefined) {
|
|
15224
|
+
localVarQueryParameter['limit'] = limit;
|
|
15225
|
+
}
|
|
15226
|
+
if (lastRetrieved !== undefined) {
|
|
15227
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
15228
|
+
lastRetrieved.toISOString() :
|
|
15229
|
+
lastRetrieved;
|
|
15230
|
+
}
|
|
15231
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15232
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15233
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15234
|
+
return [2 /*return*/, {
|
|
15235
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15236
|
+
options: localVarRequestOptions,
|
|
15237
|
+
}];
|
|
15238
|
+
}
|
|
15239
|
+
});
|
|
15240
|
+
});
|
|
15241
|
+
},
|
|
15242
|
+
/**
|
|
15243
|
+
*
|
|
15244
|
+
* @summary Create a faq.
|
|
15245
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
15246
|
+
* @param {*} [options] Override http request option.
|
|
15247
|
+
* @throws {RequiredError}
|
|
15248
|
+
*/
|
|
15249
|
+
apiV1FaqsPost: function (createFaqCommand, options) {
|
|
15250
|
+
if (options === void 0) { options = {}; }
|
|
15251
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15252
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15253
|
+
return __generator(this, function (_a) {
|
|
15254
|
+
switch (_a.label) {
|
|
15255
|
+
case 0:
|
|
15256
|
+
localVarPath = "/api/v1/faqs";
|
|
15257
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15258
|
+
if (configuration) {
|
|
15259
|
+
baseOptions = configuration.baseOptions;
|
|
15260
|
+
}
|
|
15261
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
15262
|
+
localVarHeaderParameter = {};
|
|
15263
|
+
localVarQueryParameter = {};
|
|
15264
|
+
// authentication oauth2 required
|
|
15265
|
+
// oauth required
|
|
15266
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15267
|
+
case 1:
|
|
15268
|
+
// authentication oauth2 required
|
|
15269
|
+
// oauth required
|
|
15270
|
+
_a.sent();
|
|
15271
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
15272
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15273
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15274
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15275
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFaqCommand, localVarRequestOptions, configuration);
|
|
15276
|
+
return [2 /*return*/, {
|
|
15277
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15278
|
+
options: localVarRequestOptions,
|
|
15279
|
+
}];
|
|
15280
|
+
}
|
|
15281
|
+
});
|
|
15282
|
+
});
|
|
15283
|
+
},
|
|
15284
|
+
/**
|
|
15285
|
+
*
|
|
15286
|
+
* @summary Get faq by slug.
|
|
15287
|
+
* @param {string} slug
|
|
15288
|
+
* @param {string} [languageCode]
|
|
15289
|
+
* @param {*} [options] Override http request option.
|
|
15290
|
+
* @throws {RequiredError}
|
|
15291
|
+
*/
|
|
15292
|
+
apiV1FaqsSlugGet: function (slug, languageCode, options) {
|
|
15293
|
+
if (options === void 0) { options = {}; }
|
|
15294
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15295
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15296
|
+
return __generator(this, function (_a) {
|
|
15297
|
+
switch (_a.label) {
|
|
15298
|
+
case 0:
|
|
15299
|
+
// verify required parameter 'slug' is not null or undefined
|
|
15300
|
+
common_1.assertParamExists('apiV1FaqsSlugGet', 'slug', slug);
|
|
15301
|
+
localVarPath = "/api/v1/faqs/{slug}"
|
|
15302
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
15303
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15304
|
+
if (configuration) {
|
|
15305
|
+
baseOptions = configuration.baseOptions;
|
|
15306
|
+
}
|
|
15307
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
15308
|
+
localVarHeaderParameter = {};
|
|
15309
|
+
localVarQueryParameter = {};
|
|
15310
|
+
// authentication oauth2 required
|
|
15311
|
+
// oauth required
|
|
15312
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
15313
|
+
case 1:
|
|
15314
|
+
// authentication oauth2 required
|
|
15315
|
+
// oauth required
|
|
15316
|
+
_a.sent();
|
|
15317
|
+
if (languageCode !== undefined) {
|
|
15318
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
15319
|
+
}
|
|
15320
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15321
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15322
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15323
|
+
return [2 /*return*/, {
|
|
15324
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
15325
|
+
options: localVarRequestOptions,
|
|
15326
|
+
}];
|
|
15327
|
+
}
|
|
15328
|
+
});
|
|
15329
|
+
});
|
|
15330
|
+
},
|
|
15331
|
+
};
|
|
15332
|
+
};
|
|
15333
|
+
/**
|
|
15334
|
+
* FaqsApi - functional programming interface
|
|
15335
|
+
* @export
|
|
15336
|
+
*/
|
|
15337
|
+
exports.FaqsApiFp = function (configuration) {
|
|
15338
|
+
var localVarAxiosParamCreator = exports.FaqsApiAxiosParamCreator(configuration);
|
|
15339
|
+
return {
|
|
15340
|
+
/**
|
|
15341
|
+
*
|
|
15342
|
+
* @summary Delete faq.
|
|
15343
|
+
* @param {string} faqId
|
|
15344
|
+
* @param {*} [options] Override http request option.
|
|
15345
|
+
* @throws {RequiredError}
|
|
15346
|
+
*/
|
|
15347
|
+
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
15348
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15349
|
+
var localVarAxiosArgs;
|
|
15350
|
+
return __generator(this, function (_a) {
|
|
15351
|
+
switch (_a.label) {
|
|
15352
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options)];
|
|
15353
|
+
case 1:
|
|
15354
|
+
localVarAxiosArgs = _a.sent();
|
|
15355
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15356
|
+
}
|
|
15357
|
+
});
|
|
15358
|
+
});
|
|
15359
|
+
},
|
|
15360
|
+
/**
|
|
15361
|
+
*
|
|
15362
|
+
* @summary Get faq.
|
|
15363
|
+
* @param {string} faqId
|
|
15364
|
+
* @param {string} [languageCode]
|
|
15365
|
+
* @param {*} [options] Override http request option.
|
|
15366
|
+
* @throws {RequiredError}
|
|
15367
|
+
*/
|
|
15368
|
+
apiV1FaqsFaqIdGet: function (faqId, languageCode, options) {
|
|
15369
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15370
|
+
var localVarAxiosArgs;
|
|
15371
|
+
return __generator(this, function (_a) {
|
|
15372
|
+
switch (_a.label) {
|
|
15373
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdGet(faqId, languageCode, options)];
|
|
15374
|
+
case 1:
|
|
15375
|
+
localVarAxiosArgs = _a.sent();
|
|
15376
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15377
|
+
}
|
|
15378
|
+
});
|
|
15379
|
+
});
|
|
15380
|
+
},
|
|
15381
|
+
/**
|
|
15382
|
+
*
|
|
15383
|
+
* @summary Get all FaqMedias.
|
|
15384
|
+
* @param {string} faqId
|
|
15385
|
+
* @param {string} [id]
|
|
15386
|
+
* @param {MediaType} [mediaType]
|
|
15387
|
+
* @param {number} [page]
|
|
15388
|
+
* @param {number} [limit]
|
|
15389
|
+
* @param {Date} [lastRetrieved]
|
|
15390
|
+
* @param {*} [options] Override http request option.
|
|
15391
|
+
* @throws {RequiredError}
|
|
15392
|
+
*/
|
|
15393
|
+
apiV1FaqsFaqIdMediasGet: function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
15394
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15395
|
+
var localVarAxiosArgs;
|
|
15396
|
+
return __generator(this, function (_a) {
|
|
15397
|
+
switch (_a.label) {
|
|
15398
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
15399
|
+
case 1:
|
|
15400
|
+
localVarAxiosArgs = _a.sent();
|
|
15401
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15402
|
+
}
|
|
15403
|
+
});
|
|
15404
|
+
});
|
|
15405
|
+
},
|
|
15406
|
+
/**
|
|
15407
|
+
*
|
|
15408
|
+
* @summary Delete FaqMedia
|
|
15409
|
+
* @param {string} faqId
|
|
15410
|
+
* @param {string} mediaId
|
|
15411
|
+
* @param {*} [options] Override http request option.
|
|
15412
|
+
* @throws {RequiredError}
|
|
15413
|
+
*/
|
|
15414
|
+
apiV1FaqsFaqIdMediasMediaIdDelete: function (faqId, mediaId, options) {
|
|
15415
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15416
|
+
var localVarAxiosArgs;
|
|
15417
|
+
return __generator(this, function (_a) {
|
|
15418
|
+
switch (_a.label) {
|
|
15419
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options)];
|
|
15420
|
+
case 1:
|
|
15421
|
+
localVarAxiosArgs = _a.sent();
|
|
15422
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15423
|
+
}
|
|
15424
|
+
});
|
|
15425
|
+
});
|
|
15426
|
+
},
|
|
15427
|
+
/**
|
|
15428
|
+
*
|
|
15429
|
+
* @summary Get FaqMedia.
|
|
15430
|
+
* @param {string} faqId
|
|
15431
|
+
* @param {string} mediaId
|
|
15432
|
+
* @param {*} [options] Override http request option.
|
|
15433
|
+
* @throws {RequiredError}
|
|
15434
|
+
*/
|
|
15435
|
+
apiV1FaqsFaqIdMediasMediaIdGet: function (faqId, mediaId, options) {
|
|
15436
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15437
|
+
var localVarAxiosArgs;
|
|
15438
|
+
return __generator(this, function (_a) {
|
|
15439
|
+
switch (_a.label) {
|
|
15440
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options)];
|
|
15441
|
+
case 1:
|
|
15442
|
+
localVarAxiosArgs = _a.sent();
|
|
15443
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15444
|
+
}
|
|
15445
|
+
});
|
|
15446
|
+
});
|
|
15447
|
+
},
|
|
15448
|
+
/**
|
|
15449
|
+
*
|
|
15450
|
+
* @summary Update FaqMedia.
|
|
15451
|
+
* @param {string} faqId
|
|
15452
|
+
* @param {string} mediaId
|
|
15453
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
15454
|
+
* @param {*} [options] Override http request option.
|
|
15455
|
+
* @throws {RequiredError}
|
|
15456
|
+
*/
|
|
15457
|
+
apiV1FaqsFaqIdMediasMediaIdPut: function (faqId, mediaId, updateMediaCommand, options) {
|
|
15458
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15459
|
+
var localVarAxiosArgs;
|
|
15460
|
+
return __generator(this, function (_a) {
|
|
15461
|
+
switch (_a.label) {
|
|
15462
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options)];
|
|
15463
|
+
case 1:
|
|
15464
|
+
localVarAxiosArgs = _a.sent();
|
|
15465
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15466
|
+
}
|
|
15467
|
+
});
|
|
15468
|
+
});
|
|
15469
|
+
},
|
|
15470
|
+
/**
|
|
15471
|
+
*
|
|
15472
|
+
* @summary Create FaqMedia.
|
|
15473
|
+
* @param {string} faqId
|
|
15474
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
15475
|
+
* @param {*} [options] Override http request option.
|
|
15476
|
+
* @throws {RequiredError}
|
|
15477
|
+
*/
|
|
15478
|
+
apiV1FaqsFaqIdMediasPost: function (faqId, createMediaCommand, options) {
|
|
15479
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15480
|
+
var localVarAxiosArgs;
|
|
15481
|
+
return __generator(this, function (_a) {
|
|
15482
|
+
switch (_a.label) {
|
|
15483
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options)];
|
|
15484
|
+
case 1:
|
|
15485
|
+
localVarAxiosArgs = _a.sent();
|
|
15486
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15487
|
+
}
|
|
15488
|
+
});
|
|
15489
|
+
});
|
|
15490
|
+
},
|
|
15491
|
+
/**
|
|
15492
|
+
*
|
|
15493
|
+
* @summary Update faq.
|
|
15494
|
+
* @param {string} faqId
|
|
15495
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
15496
|
+
* @param {*} [options] Override http request option.
|
|
15497
|
+
* @throws {RequiredError}
|
|
15498
|
+
*/
|
|
15499
|
+
apiV1FaqsFaqIdPut: function (faqId, updateFaqCommand, options) {
|
|
15500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15501
|
+
var localVarAxiosArgs;
|
|
15502
|
+
return __generator(this, function (_a) {
|
|
15503
|
+
switch (_a.label) {
|
|
15504
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options)];
|
|
15505
|
+
case 1:
|
|
15506
|
+
localVarAxiosArgs = _a.sent();
|
|
15507
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15508
|
+
}
|
|
15509
|
+
});
|
|
15510
|
+
});
|
|
15511
|
+
},
|
|
15512
|
+
/**
|
|
15513
|
+
*
|
|
15514
|
+
* @summary Get all Faqs.
|
|
15515
|
+
* @param {string} [id]
|
|
15516
|
+
* @param {string} [title]
|
|
15517
|
+
* @param {string} [content]
|
|
15518
|
+
* @param {string} [categoryId]
|
|
15519
|
+
* @param {string} [languageCode]
|
|
15520
|
+
* @param {number} [page]
|
|
15521
|
+
* @param {number} [limit]
|
|
15522
|
+
* @param {Date} [lastRetrieved]
|
|
15523
|
+
* @param {*} [options] Override http request option.
|
|
15524
|
+
* @throws {RequiredError}
|
|
15525
|
+
*/
|
|
15526
|
+
apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
15527
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15528
|
+
var localVarAxiosArgs;
|
|
15529
|
+
return __generator(this, function (_a) {
|
|
15530
|
+
switch (_a.label) {
|
|
15531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options)];
|
|
15532
|
+
case 1:
|
|
15533
|
+
localVarAxiosArgs = _a.sent();
|
|
15534
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15535
|
+
}
|
|
15536
|
+
});
|
|
15537
|
+
});
|
|
15538
|
+
},
|
|
15539
|
+
/**
|
|
15540
|
+
*
|
|
15541
|
+
* @summary Create a faq.
|
|
15542
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
15543
|
+
* @param {*} [options] Override http request option.
|
|
15544
|
+
* @throws {RequiredError}
|
|
15545
|
+
*/
|
|
15546
|
+
apiV1FaqsPost: function (createFaqCommand, options) {
|
|
15547
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15548
|
+
var localVarAxiosArgs;
|
|
15549
|
+
return __generator(this, function (_a) {
|
|
15550
|
+
switch (_a.label) {
|
|
15551
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsPost(createFaqCommand, options)];
|
|
15552
|
+
case 1:
|
|
15553
|
+
localVarAxiosArgs = _a.sent();
|
|
15554
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15555
|
+
}
|
|
15556
|
+
});
|
|
15557
|
+
});
|
|
15558
|
+
},
|
|
15559
|
+
/**
|
|
15560
|
+
*
|
|
15561
|
+
* @summary Get faq by slug.
|
|
15562
|
+
* @param {string} slug
|
|
15563
|
+
* @param {string} [languageCode]
|
|
15564
|
+
* @param {*} [options] Override http request option.
|
|
15565
|
+
* @throws {RequiredError}
|
|
15566
|
+
*/
|
|
15567
|
+
apiV1FaqsSlugGet: function (slug, languageCode, options) {
|
|
15568
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
15569
|
+
var localVarAxiosArgs;
|
|
15570
|
+
return __generator(this, function (_a) {
|
|
15571
|
+
switch (_a.label) {
|
|
15572
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsSlugGet(slug, languageCode, options)];
|
|
15573
|
+
case 1:
|
|
15574
|
+
localVarAxiosArgs = _a.sent();
|
|
15575
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
15576
|
+
}
|
|
15577
|
+
});
|
|
15578
|
+
});
|
|
15579
|
+
},
|
|
15580
|
+
};
|
|
15581
|
+
};
|
|
15582
|
+
/**
|
|
15583
|
+
* FaqsApi - factory interface
|
|
15584
|
+
* @export
|
|
15585
|
+
*/
|
|
15586
|
+
exports.FaqsApiFactory = function (configuration, basePath, axios) {
|
|
15587
|
+
var localVarFp = exports.FaqsApiFp(configuration);
|
|
15588
|
+
return {
|
|
15589
|
+
/**
|
|
15590
|
+
*
|
|
15591
|
+
* @summary Delete faq.
|
|
15592
|
+
* @param {string} faqId
|
|
15593
|
+
* @param {*} [options] Override http request option.
|
|
15594
|
+
* @throws {RequiredError}
|
|
15595
|
+
*/
|
|
15596
|
+
apiV1FaqsFaqIdDelete: function (faqId, options) {
|
|
15597
|
+
return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(axios, basePath); });
|
|
15598
|
+
},
|
|
15599
|
+
/**
|
|
15600
|
+
*
|
|
15601
|
+
* @summary Get faq.
|
|
15602
|
+
* @param {string} faqId
|
|
15603
|
+
* @param {string} [languageCode]
|
|
15604
|
+
* @param {*} [options] Override http request option.
|
|
15605
|
+
* @throws {RequiredError}
|
|
15606
|
+
*/
|
|
15607
|
+
apiV1FaqsFaqIdGet: function (faqId, languageCode, options) {
|
|
15608
|
+
return localVarFp.apiV1FaqsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
15609
|
+
},
|
|
15610
|
+
/**
|
|
15611
|
+
*
|
|
15612
|
+
* @summary Get all FaqMedias.
|
|
15613
|
+
* @param {string} faqId
|
|
15614
|
+
* @param {string} [id]
|
|
15615
|
+
* @param {MediaType} [mediaType]
|
|
15616
|
+
* @param {number} [page]
|
|
15617
|
+
* @param {number} [limit]
|
|
15618
|
+
* @param {Date} [lastRetrieved]
|
|
15619
|
+
* @param {*} [options] Override http request option.
|
|
15620
|
+
* @throws {RequiredError}
|
|
15621
|
+
*/
|
|
15622
|
+
apiV1FaqsFaqIdMediasGet: function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
15623
|
+
return localVarFp.apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
15624
|
+
},
|
|
15625
|
+
/**
|
|
15626
|
+
*
|
|
15627
|
+
* @summary Delete FaqMedia
|
|
15628
|
+
* @param {string} faqId
|
|
15629
|
+
* @param {string} mediaId
|
|
15630
|
+
* @param {*} [options] Override http request option.
|
|
15631
|
+
* @throws {RequiredError}
|
|
15632
|
+
*/
|
|
15633
|
+
apiV1FaqsFaqIdMediasMediaIdDelete: function (faqId, mediaId, options) {
|
|
15634
|
+
return localVarFp.apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
15635
|
+
},
|
|
15636
|
+
/**
|
|
15637
|
+
*
|
|
15638
|
+
* @summary Get FaqMedia.
|
|
15639
|
+
* @param {string} faqId
|
|
15640
|
+
* @param {string} mediaId
|
|
15641
|
+
* @param {*} [options] Override http request option.
|
|
15642
|
+
* @throws {RequiredError}
|
|
15643
|
+
*/
|
|
15644
|
+
apiV1FaqsFaqIdMediasMediaIdGet: function (faqId, mediaId, options) {
|
|
15645
|
+
return localVarFp.apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
15646
|
+
},
|
|
15647
|
+
/**
|
|
15648
|
+
*
|
|
15649
|
+
* @summary Update FaqMedia.
|
|
15650
|
+
* @param {string} faqId
|
|
15651
|
+
* @param {string} mediaId
|
|
15652
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
15653
|
+
* @param {*} [options] Override http request option.
|
|
15654
|
+
* @throws {RequiredError}
|
|
15655
|
+
*/
|
|
15656
|
+
apiV1FaqsFaqIdMediasMediaIdPut: function (faqId, mediaId, updateMediaCommand, options) {
|
|
15657
|
+
return localVarFp.apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
15658
|
+
},
|
|
15659
|
+
/**
|
|
15660
|
+
*
|
|
15661
|
+
* @summary Create FaqMedia.
|
|
15662
|
+
* @param {string} faqId
|
|
15663
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
15664
|
+
* @param {*} [options] Override http request option.
|
|
15665
|
+
* @throws {RequiredError}
|
|
15666
|
+
*/
|
|
15667
|
+
apiV1FaqsFaqIdMediasPost: function (faqId, createMediaCommand, options) {
|
|
15668
|
+
return localVarFp.apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
15669
|
+
},
|
|
15670
|
+
/**
|
|
15671
|
+
*
|
|
15672
|
+
* @summary Update faq.
|
|
15673
|
+
* @param {string} faqId
|
|
15674
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
15675
|
+
* @param {*} [options] Override http request option.
|
|
15676
|
+
* @throws {RequiredError}
|
|
15677
|
+
*/
|
|
15678
|
+
apiV1FaqsFaqIdPut: function (faqId, updateFaqCommand, options) {
|
|
15679
|
+
return localVarFp.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then(function (request) { return request(axios, basePath); });
|
|
15680
|
+
},
|
|
15681
|
+
/**
|
|
15682
|
+
*
|
|
15683
|
+
* @summary Get all Faqs.
|
|
15684
|
+
* @param {string} [id]
|
|
15685
|
+
* @param {string} [title]
|
|
15686
|
+
* @param {string} [content]
|
|
15687
|
+
* @param {string} [categoryId]
|
|
15688
|
+
* @param {string} [languageCode]
|
|
15689
|
+
* @param {number} [page]
|
|
15690
|
+
* @param {number} [limit]
|
|
15691
|
+
* @param {Date} [lastRetrieved]
|
|
15692
|
+
* @param {*} [options] Override http request option.
|
|
15693
|
+
* @throws {RequiredError}
|
|
15694
|
+
*/
|
|
15695
|
+
apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
15696
|
+
return localVarFp.apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
15697
|
+
},
|
|
15698
|
+
/**
|
|
15699
|
+
*
|
|
15700
|
+
* @summary Create a faq.
|
|
15701
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
15702
|
+
* @param {*} [options] Override http request option.
|
|
15703
|
+
* @throws {RequiredError}
|
|
15704
|
+
*/
|
|
15705
|
+
apiV1FaqsPost: function (createFaqCommand, options) {
|
|
15706
|
+
return localVarFp.apiV1FaqsPost(createFaqCommand, options).then(function (request) { return request(axios, basePath); });
|
|
15707
|
+
},
|
|
15708
|
+
/**
|
|
15709
|
+
*
|
|
15710
|
+
* @summary Get faq by slug.
|
|
15711
|
+
* @param {string} slug
|
|
15712
|
+
* @param {string} [languageCode]
|
|
15713
|
+
* @param {*} [options] Override http request option.
|
|
15714
|
+
* @throws {RequiredError}
|
|
15715
|
+
*/
|
|
15716
|
+
apiV1FaqsSlugGet: function (slug, languageCode, options) {
|
|
15717
|
+
return localVarFp.apiV1FaqsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
15718
|
+
},
|
|
15719
|
+
};
|
|
15720
|
+
};
|
|
15721
|
+
/**
|
|
15722
|
+
* FaqsApi - object-oriented interface
|
|
15723
|
+
* @export
|
|
15724
|
+
* @class FaqsApi
|
|
15725
|
+
* @extends {BaseAPI}
|
|
15726
|
+
*/
|
|
15727
|
+
var FaqsApi = /** @class */ (function (_super) {
|
|
15728
|
+
__extends(FaqsApi, _super);
|
|
15729
|
+
function FaqsApi() {
|
|
15730
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
15731
|
+
}
|
|
15732
|
+
/**
|
|
15733
|
+
*
|
|
15734
|
+
* @summary Delete faq.
|
|
15735
|
+
* @param {string} faqId
|
|
15736
|
+
* @param {*} [options] Override http request option.
|
|
15737
|
+
* @throws {RequiredError}
|
|
15738
|
+
* @memberof FaqsApi
|
|
15739
|
+
*/
|
|
15740
|
+
FaqsApi.prototype.apiV1FaqsFaqIdDelete = function (faqId, options) {
|
|
15741
|
+
var _this = this;
|
|
15742
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15743
|
+
};
|
|
15744
|
+
/**
|
|
15745
|
+
*
|
|
15746
|
+
* @summary Get faq.
|
|
15747
|
+
* @param {string} faqId
|
|
15748
|
+
* @param {string} [languageCode]
|
|
15749
|
+
* @param {*} [options] Override http request option.
|
|
15750
|
+
* @throws {RequiredError}
|
|
15751
|
+
* @memberof FaqsApi
|
|
15752
|
+
*/
|
|
15753
|
+
FaqsApi.prototype.apiV1FaqsFaqIdGet = function (faqId, languageCode, options) {
|
|
15754
|
+
var _this = this;
|
|
15755
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15756
|
+
};
|
|
15757
|
+
/**
|
|
15758
|
+
*
|
|
15759
|
+
* @summary Get all FaqMedias.
|
|
15760
|
+
* @param {string} faqId
|
|
15761
|
+
* @param {string} [id]
|
|
15762
|
+
* @param {MediaType} [mediaType]
|
|
15763
|
+
* @param {number} [page]
|
|
15764
|
+
* @param {number} [limit]
|
|
15765
|
+
* @param {Date} [lastRetrieved]
|
|
15766
|
+
* @param {*} [options] Override http request option.
|
|
15767
|
+
* @throws {RequiredError}
|
|
15768
|
+
* @memberof FaqsApi
|
|
15769
|
+
*/
|
|
15770
|
+
FaqsApi.prototype.apiV1FaqsFaqIdMediasGet = function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
15771
|
+
var _this = this;
|
|
15772
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15773
|
+
};
|
|
15774
|
+
/**
|
|
15775
|
+
*
|
|
15776
|
+
* @summary Delete FaqMedia
|
|
15777
|
+
* @param {string} faqId
|
|
15778
|
+
* @param {string} mediaId
|
|
15779
|
+
* @param {*} [options] Override http request option.
|
|
15780
|
+
* @throws {RequiredError}
|
|
15781
|
+
* @memberof FaqsApi
|
|
15782
|
+
*/
|
|
15783
|
+
FaqsApi.prototype.apiV1FaqsFaqIdMediasMediaIdDelete = function (faqId, mediaId, options) {
|
|
15784
|
+
var _this = this;
|
|
15785
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15786
|
+
};
|
|
15787
|
+
/**
|
|
15788
|
+
*
|
|
15789
|
+
* @summary Get FaqMedia.
|
|
15790
|
+
* @param {string} faqId
|
|
15791
|
+
* @param {string} mediaId
|
|
15792
|
+
* @param {*} [options] Override http request option.
|
|
15793
|
+
* @throws {RequiredError}
|
|
15794
|
+
* @memberof FaqsApi
|
|
15795
|
+
*/
|
|
15796
|
+
FaqsApi.prototype.apiV1FaqsFaqIdMediasMediaIdGet = function (faqId, mediaId, options) {
|
|
15797
|
+
var _this = this;
|
|
15798
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15799
|
+
};
|
|
15800
|
+
/**
|
|
15801
|
+
*
|
|
15802
|
+
* @summary Update FaqMedia.
|
|
15803
|
+
* @param {string} faqId
|
|
15804
|
+
* @param {string} mediaId
|
|
15805
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
15806
|
+
* @param {*} [options] Override http request option.
|
|
15807
|
+
* @throws {RequiredError}
|
|
15808
|
+
* @memberof FaqsApi
|
|
15809
|
+
*/
|
|
15810
|
+
FaqsApi.prototype.apiV1FaqsFaqIdMediasMediaIdPut = function (faqId, mediaId, updateMediaCommand, options) {
|
|
15811
|
+
var _this = this;
|
|
15812
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15813
|
+
};
|
|
15814
|
+
/**
|
|
15815
|
+
*
|
|
15816
|
+
* @summary Create FaqMedia.
|
|
15817
|
+
* @param {string} faqId
|
|
15818
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
15819
|
+
* @param {*} [options] Override http request option.
|
|
15820
|
+
* @throws {RequiredError}
|
|
15821
|
+
* @memberof FaqsApi
|
|
15822
|
+
*/
|
|
15823
|
+
FaqsApi.prototype.apiV1FaqsFaqIdMediasPost = function (faqId, createMediaCommand, options) {
|
|
15824
|
+
var _this = this;
|
|
15825
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15826
|
+
};
|
|
15827
|
+
/**
|
|
15828
|
+
*
|
|
15829
|
+
* @summary Update faq.
|
|
15830
|
+
* @param {string} faqId
|
|
15831
|
+
* @param {UpdateFaqCommand} [updateFaqCommand]
|
|
15832
|
+
* @param {*} [options] Override http request option.
|
|
15833
|
+
* @throws {RequiredError}
|
|
15834
|
+
* @memberof FaqsApi
|
|
15835
|
+
*/
|
|
15836
|
+
FaqsApi.prototype.apiV1FaqsFaqIdPut = function (faqId, updateFaqCommand, options) {
|
|
15837
|
+
var _this = this;
|
|
15838
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15839
|
+
};
|
|
15840
|
+
/**
|
|
15841
|
+
*
|
|
15842
|
+
* @summary Get all Faqs.
|
|
15843
|
+
* @param {string} [id]
|
|
15844
|
+
* @param {string} [title]
|
|
15845
|
+
* @param {string} [content]
|
|
15846
|
+
* @param {string} [categoryId]
|
|
15847
|
+
* @param {string} [languageCode]
|
|
15848
|
+
* @param {number} [page]
|
|
15849
|
+
* @param {number} [limit]
|
|
15850
|
+
* @param {Date} [lastRetrieved]
|
|
15851
|
+
* @param {*} [options] Override http request option.
|
|
15852
|
+
* @throws {RequiredError}
|
|
15853
|
+
* @memberof FaqsApi
|
|
15854
|
+
*/
|
|
15855
|
+
FaqsApi.prototype.apiV1FaqsGet = function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
|
|
15856
|
+
var _this = this;
|
|
15857
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15858
|
+
};
|
|
15859
|
+
/**
|
|
15860
|
+
*
|
|
15861
|
+
* @summary Create a faq.
|
|
15862
|
+
* @param {CreateFaqCommand} [createFaqCommand]
|
|
15863
|
+
* @param {*} [options] Override http request option.
|
|
15864
|
+
* @throws {RequiredError}
|
|
15865
|
+
* @memberof FaqsApi
|
|
15866
|
+
*/
|
|
15867
|
+
FaqsApi.prototype.apiV1FaqsPost = function (createFaqCommand, options) {
|
|
15868
|
+
var _this = this;
|
|
15869
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsPost(createFaqCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15870
|
+
};
|
|
15871
|
+
/**
|
|
15872
|
+
*
|
|
15873
|
+
* @summary Get faq by slug.
|
|
15874
|
+
* @param {string} slug
|
|
15875
|
+
* @param {string} [languageCode]
|
|
15876
|
+
* @param {*} [options] Override http request option.
|
|
15877
|
+
* @throws {RequiredError}
|
|
15878
|
+
* @memberof FaqsApi
|
|
15879
|
+
*/
|
|
15880
|
+
FaqsApi.prototype.apiV1FaqsSlugGet = function (slug, languageCode, options) {
|
|
15881
|
+
var _this = this;
|
|
15882
|
+
return exports.FaqsApiFp(this.configuration).apiV1FaqsSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
15883
|
+
};
|
|
15884
|
+
return FaqsApi;
|
|
15885
|
+
}(base_1.BaseAPI));
|
|
15886
|
+
exports.FaqsApi = FaqsApi;
|
|
14044
15887
|
/**
|
|
14045
15888
|
* HospitalsApi - axios parameter creator
|
|
14046
15889
|
* @export
|