ch-admin-api-client-typescript 2.5.0 → 2.5.1

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