ch-admin-api-client-typescript 2.4.9 → 2.5.3

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.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = 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
@@ -5077,6 +5077,44 @@ exports.CHManagersApi = CHManagersApi;
5077
5077
  exports.ChatUsersApiAxiosParamCreator = function (configuration) {
5078
5078
  var _this = this;
5079
5079
  return {
5080
+ /**
5081
+ *
5082
+ * @param {*} [options] Override http request option.
5083
+ * @throws {RequiredError}
5084
+ */
5085
+ apiV1ChatusersCurrentGet: function (options) {
5086
+ if (options === void 0) { options = {}; }
5087
+ return __awaiter(_this, void 0, void 0, function () {
5088
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5089
+ return __generator(this, function (_a) {
5090
+ switch (_a.label) {
5091
+ case 0:
5092
+ localVarPath = "/api/v1/chatusers/current";
5093
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5094
+ if (configuration) {
5095
+ baseOptions = configuration.baseOptions;
5096
+ }
5097
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
5098
+ localVarHeaderParameter = {};
5099
+ localVarQueryParameter = {};
5100
+ // authentication oauth2 required
5101
+ // oauth required
5102
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
5103
+ case 1:
5104
+ // authentication oauth2 required
5105
+ // oauth required
5106
+ _a.sent();
5107
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5108
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5109
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5110
+ return [2 /*return*/, {
5111
+ url: common_1.toPathString(localVarUrlObj),
5112
+ options: localVarRequestOptions,
5113
+ }];
5114
+ }
5115
+ });
5116
+ });
5117
+ },
5080
5118
  /**
5081
5119
  *
5082
5120
  * @summary Get all chatUsers.
@@ -5319,6 +5357,24 @@ exports.ChatUsersApiAxiosParamCreator = function (configuration) {
5319
5357
  exports.ChatUsersApiFp = function (configuration) {
5320
5358
  var localVarAxiosParamCreator = exports.ChatUsersApiAxiosParamCreator(configuration);
5321
5359
  return {
5360
+ /**
5361
+ *
5362
+ * @param {*} [options] Override http request option.
5363
+ * @throws {RequiredError}
5364
+ */
5365
+ apiV1ChatusersCurrentGet: function (options) {
5366
+ return __awaiter(this, void 0, void 0, function () {
5367
+ var localVarAxiosArgs;
5368
+ return __generator(this, function (_a) {
5369
+ switch (_a.label) {
5370
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ChatusersCurrentGet(options)];
5371
+ case 1:
5372
+ localVarAxiosArgs = _a.sent();
5373
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5374
+ }
5375
+ });
5376
+ });
5377
+ },
5322
5378
  /**
5323
5379
  *
5324
5380
  * @summary Get all chatUsers.
@@ -5433,6 +5489,14 @@ exports.ChatUsersApiFp = function (configuration) {
5433
5489
  exports.ChatUsersApiFactory = function (configuration, basePath, axios) {
5434
5490
  var localVarFp = exports.ChatUsersApiFp(configuration);
5435
5491
  return {
5492
+ /**
5493
+ *
5494
+ * @param {*} [options] Override http request option.
5495
+ * @throws {RequiredError}
5496
+ */
5497
+ apiV1ChatusersCurrentGet: function (options) {
5498
+ return localVarFp.apiV1ChatusersCurrentGet(options).then(function (request) { return request(axios, basePath); });
5499
+ },
5436
5500
  /**
5437
5501
  *
5438
5502
  * @summary Get all chatUsers.
@@ -5501,6 +5565,16 @@ var ChatUsersApi = /** @class */ (function (_super) {
5501
5565
  function ChatUsersApi() {
5502
5566
  return _super !== null && _super.apply(this, arguments) || this;
5503
5567
  }
5568
+ /**
5569
+ *
5570
+ * @param {*} [options] Override http request option.
5571
+ * @throws {RequiredError}
5572
+ * @memberof ChatUsersApi
5573
+ */
5574
+ ChatUsersApi.prototype.apiV1ChatusersCurrentGet = function (options) {
5575
+ var _this = this;
5576
+ return exports.ChatUsersApiFp(this.configuration).apiV1ChatusersCurrentGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
5577
+ };
5504
5578
  /**
5505
5579
  *
5506
5580
  * @summary Get all chatUsers.
@@ -11266,10 +11340,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
11266
11340
  *
11267
11341
  * @summary Get Doctor.
11268
11342
  * @param {string} doctorId
11343
+ * @param {string} [languageCode]
11269
11344
  * @param {*} [options] Override http request option.
11270
11345
  * @throws {RequiredError}
11271
11346
  */
11272
- apiV1DoctorsDoctorIdGet: function (doctorId, options) {
11347
+ apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
11273
11348
  if (options === void 0) { options = {}; }
11274
11349
  return __awaiter(_this, void 0, void 0, function () {
11275
11350
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -11294,6 +11369,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
11294
11369
  // authentication oauth2 required
11295
11370
  // oauth required
11296
11371
  _a.sent();
11372
+ if (languageCode !== undefined) {
11373
+ localVarQueryParameter['languageCode'] = languageCode;
11374
+ }
11297
11375
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
11298
11376
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
11299
11377
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12651,15 +12729,16 @@ exports.DoctorsApiFp = function (configuration) {
12651
12729
  *
12652
12730
  * @summary Get Doctor.
12653
12731
  * @param {string} doctorId
12732
+ * @param {string} [languageCode]
12654
12733
  * @param {*} [options] Override http request option.
12655
12734
  * @throws {RequiredError}
12656
12735
  */
12657
- apiV1DoctorsDoctorIdGet: function (doctorId, options) {
12736
+ apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
12658
12737
  return __awaiter(this, void 0, void 0, function () {
12659
12738
  var localVarAxiosArgs;
12660
12739
  return __generator(this, function (_a) {
12661
12740
  switch (_a.label) {
12662
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, options)];
12741
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options)];
12663
12742
  case 1:
12664
12743
  localVarAxiosArgs = _a.sent();
12665
12744
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -13287,11 +13366,12 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
13287
13366
  *
13288
13367
  * @summary Get Doctor.
13289
13368
  * @param {string} doctorId
13369
+ * @param {string} [languageCode]
13290
13370
  * @param {*} [options] Override http request option.
13291
13371
  * @throws {RequiredError}
13292
13372
  */
13293
- apiV1DoctorsDoctorIdGet: function (doctorId, options) {
13294
- return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(axios, basePath); });
13373
+ apiV1DoctorsDoctorIdGet: function (doctorId, languageCode, options) {
13374
+ return localVarFp.apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(axios, basePath); });
13295
13375
  },
13296
13376
  /**
13297
13377
  *
@@ -13757,13 +13837,14 @@ var DoctorsApi = /** @class */ (function (_super) {
13757
13837
  *
13758
13838
  * @summary Get Doctor.
13759
13839
  * @param {string} doctorId
13840
+ * @param {string} [languageCode]
13760
13841
  * @param {*} [options] Override http request option.
13761
13842
  * @throws {RequiredError}
13762
13843
  * @memberof DoctorsApi
13763
13844
  */
13764
- DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, options) {
13845
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdGet = function (doctorId, languageCode, options) {
13765
13846
  var _this = this;
13766
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, options).then(function (request) { return request(_this.axios, _this.basePath); });
13847
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdGet(doctorId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
13767
13848
  };
13768
13849
  /**
13769
13850
  *
@@ -14041,6 +14122,2420 @@ var DoctorsApi = /** @class */ (function (_super) {
14041
14122
  return DoctorsApi;
14042
14123
  }(base_1.BaseAPI));
14043
14124
  exports.DoctorsApi = DoctorsApi;
14125
+ /**
14126
+ * EmailMarketingsApi - axios parameter creator
14127
+ * @export
14128
+ */
14129
+ exports.EmailMarketingsApiAxiosParamCreator = function (configuration) {
14130
+ var _this = this;
14131
+ return {
14132
+ /**
14133
+ *
14134
+ * @summary Get all templateVersions.
14135
+ * @param {number} [page]
14136
+ * @param {number} [limit]
14137
+ * @param {Date} [lastRetrieved]
14138
+ * @param {*} [options] Override http request option.
14139
+ * @throws {RequiredError}
14140
+ */
14141
+ apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
14142
+ if (options === void 0) { options = {}; }
14143
+ return __awaiter(_this, void 0, void 0, function () {
14144
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14145
+ return __generator(this, function (_a) {
14146
+ switch (_a.label) {
14147
+ case 0:
14148
+ localVarPath = "/api/v1/emailmarketings/versions";
14149
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14150
+ if (configuration) {
14151
+ baseOptions = configuration.baseOptions;
14152
+ }
14153
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14154
+ localVarHeaderParameter = {};
14155
+ localVarQueryParameter = {};
14156
+ // authentication oauth2 required
14157
+ // oauth required
14158
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14159
+ case 1:
14160
+ // authentication oauth2 required
14161
+ // oauth required
14162
+ _a.sent();
14163
+ if (page !== undefined) {
14164
+ localVarQueryParameter['page'] = page;
14165
+ }
14166
+ if (limit !== undefined) {
14167
+ localVarQueryParameter['limit'] = limit;
14168
+ }
14169
+ if (lastRetrieved !== undefined) {
14170
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14171
+ lastRetrieved.toISOString() :
14172
+ lastRetrieved;
14173
+ }
14174
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14175
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14176
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14177
+ return [2 /*return*/, {
14178
+ url: common_1.toPathString(localVarUrlObj),
14179
+ options: localVarRequestOptions,
14180
+ }];
14181
+ }
14182
+ });
14183
+ });
14184
+ },
14185
+ /**
14186
+ *
14187
+ * @summary Create a templateVersion.
14188
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
14189
+ * @param {*} [options] Override http request option.
14190
+ * @throws {RequiredError}
14191
+ */
14192
+ apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
14193
+ if (options === void 0) { options = {}; }
14194
+ return __awaiter(_this, void 0, void 0, function () {
14195
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14196
+ return __generator(this, function (_a) {
14197
+ switch (_a.label) {
14198
+ case 0:
14199
+ localVarPath = "/api/v1/emailmarketings/versions";
14200
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14201
+ if (configuration) {
14202
+ baseOptions = configuration.baseOptions;
14203
+ }
14204
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14205
+ localVarHeaderParameter = {};
14206
+ localVarQueryParameter = {};
14207
+ // authentication oauth2 required
14208
+ // oauth required
14209
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14210
+ case 1:
14211
+ // authentication oauth2 required
14212
+ // oauth required
14213
+ _a.sent();
14214
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14215
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14216
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14217
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14218
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createTemplateVersionCommand, localVarRequestOptions, configuration);
14219
+ return [2 /*return*/, {
14220
+ url: common_1.toPathString(localVarUrlObj),
14221
+ options: localVarRequestOptions,
14222
+ }];
14223
+ }
14224
+ });
14225
+ });
14226
+ },
14227
+ /**
14228
+ *
14229
+ * @summary Delete templateVersion.
14230
+ * @param {string} versionId
14231
+ * @param {*} [options] Override http request option.
14232
+ * @throws {RequiredError}
14233
+ */
14234
+ apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
14235
+ if (options === void 0) { options = {}; }
14236
+ return __awaiter(_this, void 0, void 0, function () {
14237
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14238
+ return __generator(this, function (_a) {
14239
+ switch (_a.label) {
14240
+ case 0:
14241
+ // verify required parameter 'versionId' is not null or undefined
14242
+ common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdDelete', 'versionId', versionId);
14243
+ localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
14244
+ .replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
14245
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14246
+ if (configuration) {
14247
+ baseOptions = configuration.baseOptions;
14248
+ }
14249
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14250
+ localVarHeaderParameter = {};
14251
+ localVarQueryParameter = {};
14252
+ // authentication oauth2 required
14253
+ // oauth required
14254
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14255
+ case 1:
14256
+ // authentication oauth2 required
14257
+ // oauth required
14258
+ _a.sent();
14259
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14260
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14261
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14262
+ return [2 /*return*/, {
14263
+ url: common_1.toPathString(localVarUrlObj),
14264
+ options: localVarRequestOptions,
14265
+ }];
14266
+ }
14267
+ });
14268
+ });
14269
+ },
14270
+ /**
14271
+ *
14272
+ * @summary Get templateVersion.
14273
+ * @param {string} versionId
14274
+ * @param {*} [options] Override http request option.
14275
+ * @throws {RequiredError}
14276
+ */
14277
+ apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
14278
+ if (options === void 0) { options = {}; }
14279
+ return __awaiter(_this, void 0, void 0, function () {
14280
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14281
+ return __generator(this, function (_a) {
14282
+ switch (_a.label) {
14283
+ case 0:
14284
+ // verify required parameter 'versionId' is not null or undefined
14285
+ common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdGet', 'versionId', versionId);
14286
+ localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
14287
+ .replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
14288
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14289
+ if (configuration) {
14290
+ baseOptions = configuration.baseOptions;
14291
+ }
14292
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14293
+ localVarHeaderParameter = {};
14294
+ localVarQueryParameter = {};
14295
+ // authentication oauth2 required
14296
+ // oauth required
14297
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14298
+ case 1:
14299
+ // authentication oauth2 required
14300
+ // oauth required
14301
+ _a.sent();
14302
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14303
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14304
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14305
+ return [2 /*return*/, {
14306
+ url: common_1.toPathString(localVarUrlObj),
14307
+ options: localVarRequestOptions,
14308
+ }];
14309
+ }
14310
+ });
14311
+ });
14312
+ },
14313
+ /**
14314
+ *
14315
+ * @summary Update templateVersion.
14316
+ * @param {string} versionId
14317
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
14318
+ * @param {*} [options] Override http request option.
14319
+ * @throws {RequiredError}
14320
+ */
14321
+ apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
14322
+ if (options === void 0) { options = {}; }
14323
+ return __awaiter(_this, void 0, void 0, function () {
14324
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14325
+ return __generator(this, function (_a) {
14326
+ switch (_a.label) {
14327
+ case 0:
14328
+ // verify required parameter 'versionId' is not null or undefined
14329
+ common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdPut', 'versionId', versionId);
14330
+ localVarPath = "/api/v1/emailmarketings/versions/{versionId}"
14331
+ .replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
14332
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14333
+ if (configuration) {
14334
+ baseOptions = configuration.baseOptions;
14335
+ }
14336
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14337
+ localVarHeaderParameter = {};
14338
+ localVarQueryParameter = {};
14339
+ // authentication oauth2 required
14340
+ // oauth required
14341
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14342
+ case 1:
14343
+ // authentication oauth2 required
14344
+ // oauth required
14345
+ _a.sent();
14346
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14347
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14348
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14349
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14350
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateTemplateVersionCommand, localVarRequestOptions, configuration);
14351
+ return [2 /*return*/, {
14352
+ url: common_1.toPathString(localVarUrlObj),
14353
+ options: localVarRequestOptions,
14354
+ }];
14355
+ }
14356
+ });
14357
+ });
14358
+ },
14359
+ /**
14360
+ *
14361
+ * @summary Send templateVersion email.
14362
+ * @param {string} versionId
14363
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
14364
+ * @param {*} [options] Override http request option.
14365
+ * @throws {RequiredError}
14366
+ */
14367
+ apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
14368
+ if (options === void 0) { options = {}; }
14369
+ return __awaiter(_this, void 0, void 0, function () {
14370
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14371
+ return __generator(this, function (_a) {
14372
+ switch (_a.label) {
14373
+ case 0:
14374
+ // verify required parameter 'versionId' is not null or undefined
14375
+ common_1.assertParamExists('apiV1EmailmarketingsVersionsVersionIdSendPost', 'versionId', versionId);
14376
+ localVarPath = "/api/v1/emailmarketings/versions/{versionId}/send"
14377
+ .replace("{" + "versionId" + "}", encodeURIComponent(String(versionId)));
14378
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14379
+ if (configuration) {
14380
+ baseOptions = configuration.baseOptions;
14381
+ }
14382
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14383
+ localVarHeaderParameter = {};
14384
+ localVarQueryParameter = {};
14385
+ // authentication oauth2 required
14386
+ // oauth required
14387
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14388
+ case 1:
14389
+ // authentication oauth2 required
14390
+ // oauth required
14391
+ _a.sent();
14392
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14393
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14394
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14395
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14396
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(sendTemplateVersionCommand, localVarRequestOptions, configuration);
14397
+ return [2 /*return*/, {
14398
+ url: common_1.toPathString(localVarUrlObj),
14399
+ options: localVarRequestOptions,
14400
+ }];
14401
+ }
14402
+ });
14403
+ });
14404
+ },
14405
+ };
14406
+ };
14407
+ /**
14408
+ * EmailMarketingsApi - functional programming interface
14409
+ * @export
14410
+ */
14411
+ exports.EmailMarketingsApiFp = function (configuration) {
14412
+ var localVarAxiosParamCreator = exports.EmailMarketingsApiAxiosParamCreator(configuration);
14413
+ return {
14414
+ /**
14415
+ *
14416
+ * @summary Get all templateVersions.
14417
+ * @param {number} [page]
14418
+ * @param {number} [limit]
14419
+ * @param {Date} [lastRetrieved]
14420
+ * @param {*} [options] Override http request option.
14421
+ * @throws {RequiredError}
14422
+ */
14423
+ apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
14424
+ return __awaiter(this, void 0, void 0, function () {
14425
+ var localVarAxiosArgs;
14426
+ return __generator(this, function (_a) {
14427
+ switch (_a.label) {
14428
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options)];
14429
+ case 1:
14430
+ localVarAxiosArgs = _a.sent();
14431
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14432
+ }
14433
+ });
14434
+ });
14435
+ },
14436
+ /**
14437
+ *
14438
+ * @summary Create a templateVersion.
14439
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
14440
+ * @param {*} [options] Override http request option.
14441
+ * @throws {RequiredError}
14442
+ */
14443
+ apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
14444
+ return __awaiter(this, void 0, void 0, function () {
14445
+ var localVarAxiosArgs;
14446
+ return __generator(this, function (_a) {
14447
+ switch (_a.label) {
14448
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options)];
14449
+ case 1:
14450
+ localVarAxiosArgs = _a.sent();
14451
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14452
+ }
14453
+ });
14454
+ });
14455
+ },
14456
+ /**
14457
+ *
14458
+ * @summary Delete templateVersion.
14459
+ * @param {string} versionId
14460
+ * @param {*} [options] Override http request option.
14461
+ * @throws {RequiredError}
14462
+ */
14463
+ apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
14464
+ return __awaiter(this, void 0, void 0, function () {
14465
+ var localVarAxiosArgs;
14466
+ return __generator(this, function (_a) {
14467
+ switch (_a.label) {
14468
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options)];
14469
+ case 1:
14470
+ localVarAxiosArgs = _a.sent();
14471
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14472
+ }
14473
+ });
14474
+ });
14475
+ },
14476
+ /**
14477
+ *
14478
+ * @summary Get templateVersion.
14479
+ * @param {string} versionId
14480
+ * @param {*} [options] Override http request option.
14481
+ * @throws {RequiredError}
14482
+ */
14483
+ apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
14484
+ return __awaiter(this, void 0, void 0, function () {
14485
+ var localVarAxiosArgs;
14486
+ return __generator(this, function (_a) {
14487
+ switch (_a.label) {
14488
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options)];
14489
+ case 1:
14490
+ localVarAxiosArgs = _a.sent();
14491
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14492
+ }
14493
+ });
14494
+ });
14495
+ },
14496
+ /**
14497
+ *
14498
+ * @summary Update templateVersion.
14499
+ * @param {string} versionId
14500
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
14501
+ * @param {*} [options] Override http request option.
14502
+ * @throws {RequiredError}
14503
+ */
14504
+ apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
14505
+ return __awaiter(this, void 0, void 0, function () {
14506
+ var localVarAxiosArgs;
14507
+ return __generator(this, function (_a) {
14508
+ switch (_a.label) {
14509
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options)];
14510
+ case 1:
14511
+ localVarAxiosArgs = _a.sent();
14512
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14513
+ }
14514
+ });
14515
+ });
14516
+ },
14517
+ /**
14518
+ *
14519
+ * @summary Send templateVersion email.
14520
+ * @param {string} versionId
14521
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
14522
+ * @param {*} [options] Override http request option.
14523
+ * @throws {RequiredError}
14524
+ */
14525
+ apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
14526
+ return __awaiter(this, void 0, void 0, function () {
14527
+ var localVarAxiosArgs;
14528
+ return __generator(this, function (_a) {
14529
+ switch (_a.label) {
14530
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options)];
14531
+ case 1:
14532
+ localVarAxiosArgs = _a.sent();
14533
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14534
+ }
14535
+ });
14536
+ });
14537
+ },
14538
+ };
14539
+ };
14540
+ /**
14541
+ * EmailMarketingsApi - factory interface
14542
+ * @export
14543
+ */
14544
+ exports.EmailMarketingsApiFactory = function (configuration, basePath, axios) {
14545
+ var localVarFp = exports.EmailMarketingsApiFp(configuration);
14546
+ return {
14547
+ /**
14548
+ *
14549
+ * @summary Get all templateVersions.
14550
+ * @param {number} [page]
14551
+ * @param {number} [limit]
14552
+ * @param {Date} [lastRetrieved]
14553
+ * @param {*} [options] Override http request option.
14554
+ * @throws {RequiredError}
14555
+ */
14556
+ apiV1EmailmarketingsVersionsGet: function (page, limit, lastRetrieved, options) {
14557
+ return localVarFp.apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14558
+ },
14559
+ /**
14560
+ *
14561
+ * @summary Create a templateVersion.
14562
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
14563
+ * @param {*} [options] Override http request option.
14564
+ * @throws {RequiredError}
14565
+ */
14566
+ apiV1EmailmarketingsVersionsPost: function (createTemplateVersionCommand, options) {
14567
+ return localVarFp.apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
14568
+ },
14569
+ /**
14570
+ *
14571
+ * @summary Delete templateVersion.
14572
+ * @param {string} versionId
14573
+ * @param {*} [options] Override http request option.
14574
+ * @throws {RequiredError}
14575
+ */
14576
+ apiV1EmailmarketingsVersionsVersionIdDelete: function (versionId, options) {
14577
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then(function (request) { return request(axios, basePath); });
14578
+ },
14579
+ /**
14580
+ *
14581
+ * @summary Get templateVersion.
14582
+ * @param {string} versionId
14583
+ * @param {*} [options] Override http request option.
14584
+ * @throws {RequiredError}
14585
+ */
14586
+ apiV1EmailmarketingsVersionsVersionIdGet: function (versionId, options) {
14587
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then(function (request) { return request(axios, basePath); });
14588
+ },
14589
+ /**
14590
+ *
14591
+ * @summary Update templateVersion.
14592
+ * @param {string} versionId
14593
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
14594
+ * @param {*} [options] Override http request option.
14595
+ * @throws {RequiredError}
14596
+ */
14597
+ apiV1EmailmarketingsVersionsVersionIdPut: function (versionId, updateTemplateVersionCommand, options) {
14598
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
14599
+ },
14600
+ /**
14601
+ *
14602
+ * @summary Send templateVersion email.
14603
+ * @param {string} versionId
14604
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
14605
+ * @param {*} [options] Override http request option.
14606
+ * @throws {RequiredError}
14607
+ */
14608
+ apiV1EmailmarketingsVersionsVersionIdSendPost: function (versionId, sendTemplateVersionCommand, options) {
14609
+ return localVarFp.apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then(function (request) { return request(axios, basePath); });
14610
+ },
14611
+ };
14612
+ };
14613
+ /**
14614
+ * EmailMarketingsApi - object-oriented interface
14615
+ * @export
14616
+ * @class EmailMarketingsApi
14617
+ * @extends {BaseAPI}
14618
+ */
14619
+ var EmailMarketingsApi = /** @class */ (function (_super) {
14620
+ __extends(EmailMarketingsApi, _super);
14621
+ function EmailMarketingsApi() {
14622
+ return _super !== null && _super.apply(this, arguments) || this;
14623
+ }
14624
+ /**
14625
+ *
14626
+ * @summary Get all templateVersions.
14627
+ * @param {number} [page]
14628
+ * @param {number} [limit]
14629
+ * @param {Date} [lastRetrieved]
14630
+ * @param {*} [options] Override http request option.
14631
+ * @throws {RequiredError}
14632
+ * @memberof EmailMarketingsApi
14633
+ */
14634
+ EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsGet = function (page, limit, lastRetrieved, options) {
14635
+ var _this = this;
14636
+ return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsGet(page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14637
+ };
14638
+ /**
14639
+ *
14640
+ * @summary Create a templateVersion.
14641
+ * @param {CreateTemplateVersionCommand} [createTemplateVersionCommand]
14642
+ * @param {*} [options] Override http request option.
14643
+ * @throws {RequiredError}
14644
+ * @memberof EmailMarketingsApi
14645
+ */
14646
+ EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsPost = function (createTemplateVersionCommand, options) {
14647
+ var _this = this;
14648
+ return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsPost(createTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
14649
+ };
14650
+ /**
14651
+ *
14652
+ * @summary Delete templateVersion.
14653
+ * @param {string} versionId
14654
+ * @param {*} [options] Override http request option.
14655
+ * @throws {RequiredError}
14656
+ * @memberof EmailMarketingsApi
14657
+ */
14658
+ EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdDelete = function (versionId, options) {
14659
+ var _this = this;
14660
+ return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdDelete(versionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
14661
+ };
14662
+ /**
14663
+ *
14664
+ * @summary Get templateVersion.
14665
+ * @param {string} versionId
14666
+ * @param {*} [options] Override http request option.
14667
+ * @throws {RequiredError}
14668
+ * @memberof EmailMarketingsApi
14669
+ */
14670
+ EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdGet = function (versionId, options) {
14671
+ var _this = this;
14672
+ return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdGet(versionId, options).then(function (request) { return request(_this.axios, _this.basePath); });
14673
+ };
14674
+ /**
14675
+ *
14676
+ * @summary Update templateVersion.
14677
+ * @param {string} versionId
14678
+ * @param {UpdateTemplateVersionCommand} [updateTemplateVersionCommand]
14679
+ * @param {*} [options] Override http request option.
14680
+ * @throws {RequiredError}
14681
+ * @memberof EmailMarketingsApi
14682
+ */
14683
+ EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdPut = function (versionId, updateTemplateVersionCommand, options) {
14684
+ var _this = this;
14685
+ return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdPut(versionId, updateTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
14686
+ };
14687
+ /**
14688
+ *
14689
+ * @summary Send templateVersion email.
14690
+ * @param {string} versionId
14691
+ * @param {SendTemplateVersionCommand} [sendTemplateVersionCommand]
14692
+ * @param {*} [options] Override http request option.
14693
+ * @throws {RequiredError}
14694
+ * @memberof EmailMarketingsApi
14695
+ */
14696
+ EmailMarketingsApi.prototype.apiV1EmailmarketingsVersionsVersionIdSendPost = function (versionId, sendTemplateVersionCommand, options) {
14697
+ var _this = this;
14698
+ return exports.EmailMarketingsApiFp(this.configuration).apiV1EmailmarketingsVersionsVersionIdSendPost(versionId, sendTemplateVersionCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
14699
+ };
14700
+ return EmailMarketingsApi;
14701
+ }(base_1.BaseAPI));
14702
+ exports.EmailMarketingsApi = EmailMarketingsApi;
14703
+ /**
14704
+ * FaqCategoriesApi - axios parameter creator
14705
+ * @export
14706
+ */
14707
+ exports.FaqCategoriesApiAxiosParamCreator = function (configuration) {
14708
+ var _this = this;
14709
+ return {
14710
+ /**
14711
+ *
14712
+ * @summary Get BreadCrumbs.
14713
+ * @param {string} faqId
14714
+ * @param {string} [languageCode]
14715
+ * @param {*} [options] Override http request option.
14716
+ * @throws {RequiredError}
14717
+ */
14718
+ apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
14719
+ if (options === void 0) { options = {}; }
14720
+ return __awaiter(_this, void 0, void 0, function () {
14721
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14722
+ return __generator(this, function (_a) {
14723
+ switch (_a.label) {
14724
+ case 0:
14725
+ // verify required parameter 'faqId' is not null or undefined
14726
+ common_1.assertParamExists('apiV1FaqcategoriesBreadcrumbsFaqIdGet', 'faqId', faqId);
14727
+ localVarPath = "/api/v1/faqcategories/breadcrumbs/{faqId}"
14728
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
14729
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14730
+ if (configuration) {
14731
+ baseOptions = configuration.baseOptions;
14732
+ }
14733
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14734
+ localVarHeaderParameter = {};
14735
+ localVarQueryParameter = {};
14736
+ // authentication oauth2 required
14737
+ // oauth required
14738
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14739
+ case 1:
14740
+ // authentication oauth2 required
14741
+ // oauth required
14742
+ _a.sent();
14743
+ if (languageCode !== undefined) {
14744
+ localVarQueryParameter['languageCode'] = languageCode;
14745
+ }
14746
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14747
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14748
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14749
+ return [2 /*return*/, {
14750
+ url: common_1.toPathString(localVarUrlObj),
14751
+ options: localVarRequestOptions,
14752
+ }];
14753
+ }
14754
+ });
14755
+ });
14756
+ },
14757
+ /**
14758
+ *
14759
+ * @summary Delete FaqCategory.
14760
+ * @param {string} faqCategoryId
14761
+ * @param {boolean} [forceDelete]
14762
+ * @param {*} [options] Override http request option.
14763
+ * @throws {RequiredError}
14764
+ */
14765
+ apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
14766
+ if (options === void 0) { options = {}; }
14767
+ return __awaiter(_this, void 0, void 0, function () {
14768
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14769
+ return __generator(this, function (_a) {
14770
+ switch (_a.label) {
14771
+ case 0:
14772
+ // verify required parameter 'faqCategoryId' is not null or undefined
14773
+ common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdDelete', 'faqCategoryId', faqCategoryId);
14774
+ localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
14775
+ .replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
14776
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14777
+ if (configuration) {
14778
+ baseOptions = configuration.baseOptions;
14779
+ }
14780
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14781
+ localVarHeaderParameter = {};
14782
+ localVarQueryParameter = {};
14783
+ // authentication oauth2 required
14784
+ // oauth required
14785
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14786
+ case 1:
14787
+ // authentication oauth2 required
14788
+ // oauth required
14789
+ _a.sent();
14790
+ if (forceDelete !== undefined) {
14791
+ localVarQueryParameter['forceDelete'] = forceDelete;
14792
+ }
14793
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14794
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14795
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14796
+ return [2 /*return*/, {
14797
+ url: common_1.toPathString(localVarUrlObj),
14798
+ options: localVarRequestOptions,
14799
+ }];
14800
+ }
14801
+ });
14802
+ });
14803
+ },
14804
+ /**
14805
+ *
14806
+ * @summary Get FaqCategory.
14807
+ * @param {string} faqCategoryId
14808
+ * @param {string} [languageCode]
14809
+ * @param {*} [options] Override http request option.
14810
+ * @throws {RequiredError}
14811
+ */
14812
+ apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
14813
+ if (options === void 0) { options = {}; }
14814
+ return __awaiter(_this, void 0, void 0, function () {
14815
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14816
+ return __generator(this, function (_a) {
14817
+ switch (_a.label) {
14818
+ case 0:
14819
+ // verify required parameter 'faqCategoryId' is not null or undefined
14820
+ common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdGet', 'faqCategoryId', faqCategoryId);
14821
+ localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
14822
+ .replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
14823
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14824
+ if (configuration) {
14825
+ baseOptions = configuration.baseOptions;
14826
+ }
14827
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14828
+ localVarHeaderParameter = {};
14829
+ localVarQueryParameter = {};
14830
+ // authentication oauth2 required
14831
+ // oauth required
14832
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14833
+ case 1:
14834
+ // authentication oauth2 required
14835
+ // oauth required
14836
+ _a.sent();
14837
+ if (languageCode !== undefined) {
14838
+ localVarQueryParameter['languageCode'] = languageCode;
14839
+ }
14840
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14841
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14842
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14843
+ return [2 /*return*/, {
14844
+ url: common_1.toPathString(localVarUrlObj),
14845
+ options: localVarRequestOptions,
14846
+ }];
14847
+ }
14848
+ });
14849
+ });
14850
+ },
14851
+ /**
14852
+ *
14853
+ * @summary Update FaqCategory.
14854
+ * @param {string} faqCategoryId
14855
+ * @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
14856
+ * @param {*} [options] Override http request option.
14857
+ * @throws {RequiredError}
14858
+ */
14859
+ apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
14860
+ if (options === void 0) { options = {}; }
14861
+ return __awaiter(_this, void 0, void 0, function () {
14862
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14863
+ return __generator(this, function (_a) {
14864
+ switch (_a.label) {
14865
+ case 0:
14866
+ // verify required parameter 'faqCategoryId' is not null or undefined
14867
+ common_1.assertParamExists('apiV1FaqcategoriesFaqCategoryIdPut', 'faqCategoryId', faqCategoryId);
14868
+ localVarPath = "/api/v1/faqcategories/{faqCategoryId}"
14869
+ .replace("{" + "faqCategoryId" + "}", encodeURIComponent(String(faqCategoryId)));
14870
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14871
+ if (configuration) {
14872
+ baseOptions = configuration.baseOptions;
14873
+ }
14874
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14875
+ localVarHeaderParameter = {};
14876
+ localVarQueryParameter = {};
14877
+ // authentication oauth2 required
14878
+ // oauth required
14879
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14880
+ case 1:
14881
+ // authentication oauth2 required
14882
+ // oauth required
14883
+ _a.sent();
14884
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14885
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14886
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14887
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14888
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFaqCategoryCommand, localVarRequestOptions, configuration);
14889
+ return [2 /*return*/, {
14890
+ url: common_1.toPathString(localVarUrlObj),
14891
+ options: localVarRequestOptions,
14892
+ }];
14893
+ }
14894
+ });
14895
+ });
14896
+ },
14897
+ /**
14898
+ *
14899
+ * @summary Get all FaqCategories.
14900
+ * @param {string} [id]
14901
+ * @param {string} [parentId]
14902
+ * @param {string} [name]
14903
+ * @param {string} [description]
14904
+ * @param {string} [languageCode]
14905
+ * @param {number} [page]
14906
+ * @param {number} [limit]
14907
+ * @param {Date} [lastRetrieved]
14908
+ * @param {*} [options] Override http request option.
14909
+ * @throws {RequiredError}
14910
+ */
14911
+ apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
14912
+ if (options === void 0) { options = {}; }
14913
+ return __awaiter(_this, void 0, void 0, function () {
14914
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14915
+ return __generator(this, function (_a) {
14916
+ switch (_a.label) {
14917
+ case 0:
14918
+ localVarPath = "/api/v1/faqcategories";
14919
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14920
+ if (configuration) {
14921
+ baseOptions = configuration.baseOptions;
14922
+ }
14923
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14924
+ localVarHeaderParameter = {};
14925
+ localVarQueryParameter = {};
14926
+ // authentication oauth2 required
14927
+ // oauth required
14928
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14929
+ case 1:
14930
+ // authentication oauth2 required
14931
+ // oauth required
14932
+ _a.sent();
14933
+ if (id !== undefined) {
14934
+ localVarQueryParameter['Id'] = id;
14935
+ }
14936
+ if (parentId !== undefined) {
14937
+ localVarQueryParameter['ParentId'] = parentId;
14938
+ }
14939
+ if (name !== undefined) {
14940
+ localVarQueryParameter['Name'] = name;
14941
+ }
14942
+ if (description !== undefined) {
14943
+ localVarQueryParameter['Description'] = description;
14944
+ }
14945
+ if (languageCode !== undefined) {
14946
+ localVarQueryParameter['LanguageCode'] = languageCode;
14947
+ }
14948
+ if (page !== undefined) {
14949
+ localVarQueryParameter['page'] = page;
14950
+ }
14951
+ if (limit !== undefined) {
14952
+ localVarQueryParameter['limit'] = limit;
14953
+ }
14954
+ if (lastRetrieved !== undefined) {
14955
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14956
+ lastRetrieved.toISOString() :
14957
+ lastRetrieved;
14958
+ }
14959
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14960
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14961
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14962
+ return [2 /*return*/, {
14963
+ url: common_1.toPathString(localVarUrlObj),
14964
+ options: localVarRequestOptions,
14965
+ }];
14966
+ }
14967
+ });
14968
+ });
14969
+ },
14970
+ /**
14971
+ *
14972
+ * @summary Create a FaqCategory.
14973
+ * @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
14974
+ * @param {*} [options] Override http request option.
14975
+ * @throws {RequiredError}
14976
+ */
14977
+ apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
14978
+ if (options === void 0) { options = {}; }
14979
+ return __awaiter(_this, void 0, void 0, function () {
14980
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14981
+ return __generator(this, function (_a) {
14982
+ switch (_a.label) {
14983
+ case 0:
14984
+ localVarPath = "/api/v1/faqcategories";
14985
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14986
+ if (configuration) {
14987
+ baseOptions = configuration.baseOptions;
14988
+ }
14989
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14990
+ localVarHeaderParameter = {};
14991
+ localVarQueryParameter = {};
14992
+ // authentication oauth2 required
14993
+ // oauth required
14994
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14995
+ case 1:
14996
+ // authentication oauth2 required
14997
+ // oauth required
14998
+ _a.sent();
14999
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15000
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15001
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15002
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15003
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFaqCategoryCommand, localVarRequestOptions, configuration);
15004
+ return [2 /*return*/, {
15005
+ url: common_1.toPathString(localVarUrlObj),
15006
+ options: localVarRequestOptions,
15007
+ }];
15008
+ }
15009
+ });
15010
+ });
15011
+ },
15012
+ /**
15013
+ *
15014
+ * @summary Get FaqCategory by slug.
15015
+ * @param {string} slug
15016
+ * @param {string} [languageCode]
15017
+ * @param {*} [options] Override http request option.
15018
+ * @throws {RequiredError}
15019
+ */
15020
+ apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
15021
+ if (options === void 0) { options = {}; }
15022
+ return __awaiter(_this, void 0, void 0, function () {
15023
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15024
+ return __generator(this, function (_a) {
15025
+ switch (_a.label) {
15026
+ case 0:
15027
+ // verify required parameter 'slug' is not null or undefined
15028
+ common_1.assertParamExists('apiV1FaqcategoriesSlugGet', 'slug', slug);
15029
+ localVarPath = "/api/v1/faqcategories/{slug}"
15030
+ .replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
15031
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15032
+ if (configuration) {
15033
+ baseOptions = configuration.baseOptions;
15034
+ }
15035
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15036
+ localVarHeaderParameter = {};
15037
+ localVarQueryParameter = {};
15038
+ // authentication oauth2 required
15039
+ // oauth required
15040
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15041
+ case 1:
15042
+ // authentication oauth2 required
15043
+ // oauth required
15044
+ _a.sent();
15045
+ if (languageCode !== undefined) {
15046
+ localVarQueryParameter['languageCode'] = languageCode;
15047
+ }
15048
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15049
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15050
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15051
+ return [2 /*return*/, {
15052
+ url: common_1.toPathString(localVarUrlObj),
15053
+ options: localVarRequestOptions,
15054
+ }];
15055
+ }
15056
+ });
15057
+ });
15058
+ },
15059
+ };
15060
+ };
15061
+ /**
15062
+ * FaqCategoriesApi - functional programming interface
15063
+ * @export
15064
+ */
15065
+ exports.FaqCategoriesApiFp = function (configuration) {
15066
+ var localVarAxiosParamCreator = exports.FaqCategoriesApiAxiosParamCreator(configuration);
15067
+ return {
15068
+ /**
15069
+ *
15070
+ * @summary Get BreadCrumbs.
15071
+ * @param {string} faqId
15072
+ * @param {string} [languageCode]
15073
+ * @param {*} [options] Override http request option.
15074
+ * @throws {RequiredError}
15075
+ */
15076
+ apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
15077
+ return __awaiter(this, void 0, void 0, function () {
15078
+ var localVarAxiosArgs;
15079
+ return __generator(this, function (_a) {
15080
+ switch (_a.label) {
15081
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options)];
15082
+ case 1:
15083
+ localVarAxiosArgs = _a.sent();
15084
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15085
+ }
15086
+ });
15087
+ });
15088
+ },
15089
+ /**
15090
+ *
15091
+ * @summary Delete FaqCategory.
15092
+ * @param {string} faqCategoryId
15093
+ * @param {boolean} [forceDelete]
15094
+ * @param {*} [options] Override http request option.
15095
+ * @throws {RequiredError}
15096
+ */
15097
+ apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
15098
+ return __awaiter(this, void 0, void 0, function () {
15099
+ var localVarAxiosArgs;
15100
+ return __generator(this, function (_a) {
15101
+ switch (_a.label) {
15102
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options)];
15103
+ case 1:
15104
+ localVarAxiosArgs = _a.sent();
15105
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15106
+ }
15107
+ });
15108
+ });
15109
+ },
15110
+ /**
15111
+ *
15112
+ * @summary Get FaqCategory.
15113
+ * @param {string} faqCategoryId
15114
+ * @param {string} [languageCode]
15115
+ * @param {*} [options] Override http request option.
15116
+ * @throws {RequiredError}
15117
+ */
15118
+ apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
15119
+ return __awaiter(this, void 0, void 0, function () {
15120
+ var localVarAxiosArgs;
15121
+ return __generator(this, function (_a) {
15122
+ switch (_a.label) {
15123
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options)];
15124
+ case 1:
15125
+ localVarAxiosArgs = _a.sent();
15126
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15127
+ }
15128
+ });
15129
+ });
15130
+ },
15131
+ /**
15132
+ *
15133
+ * @summary Update FaqCategory.
15134
+ * @param {string} faqCategoryId
15135
+ * @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
15136
+ * @param {*} [options] Override http request option.
15137
+ * @throws {RequiredError}
15138
+ */
15139
+ apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
15140
+ return __awaiter(this, void 0, void 0, function () {
15141
+ var localVarAxiosArgs;
15142
+ return __generator(this, function (_a) {
15143
+ switch (_a.label) {
15144
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options)];
15145
+ case 1:
15146
+ localVarAxiosArgs = _a.sent();
15147
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15148
+ }
15149
+ });
15150
+ });
15151
+ },
15152
+ /**
15153
+ *
15154
+ * @summary Get all FaqCategories.
15155
+ * @param {string} [id]
15156
+ * @param {string} [parentId]
15157
+ * @param {string} [name]
15158
+ * @param {string} [description]
15159
+ * @param {string} [languageCode]
15160
+ * @param {number} [page]
15161
+ * @param {number} [limit]
15162
+ * @param {Date} [lastRetrieved]
15163
+ * @param {*} [options] Override http request option.
15164
+ * @throws {RequiredError}
15165
+ */
15166
+ apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
15167
+ return __awaiter(this, void 0, void 0, function () {
15168
+ var localVarAxiosArgs;
15169
+ return __generator(this, function (_a) {
15170
+ switch (_a.label) {
15171
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options)];
15172
+ case 1:
15173
+ localVarAxiosArgs = _a.sent();
15174
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15175
+ }
15176
+ });
15177
+ });
15178
+ },
15179
+ /**
15180
+ *
15181
+ * @summary Create a FaqCategory.
15182
+ * @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
15183
+ * @param {*} [options] Override http request option.
15184
+ * @throws {RequiredError}
15185
+ */
15186
+ apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
15187
+ return __awaiter(this, void 0, void 0, function () {
15188
+ var localVarAxiosArgs;
15189
+ return __generator(this, function (_a) {
15190
+ switch (_a.label) {
15191
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesPost(createFaqCategoryCommand, options)];
15192
+ case 1:
15193
+ localVarAxiosArgs = _a.sent();
15194
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15195
+ }
15196
+ });
15197
+ });
15198
+ },
15199
+ /**
15200
+ *
15201
+ * @summary Get FaqCategory by slug.
15202
+ * @param {string} slug
15203
+ * @param {string} [languageCode]
15204
+ * @param {*} [options] Override http request option.
15205
+ * @throws {RequiredError}
15206
+ */
15207
+ apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
15208
+ return __awaiter(this, void 0, void 0, function () {
15209
+ var localVarAxiosArgs;
15210
+ return __generator(this, function (_a) {
15211
+ switch (_a.label) {
15212
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqcategoriesSlugGet(slug, languageCode, options)];
15213
+ case 1:
15214
+ localVarAxiosArgs = _a.sent();
15215
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15216
+ }
15217
+ });
15218
+ });
15219
+ },
15220
+ };
15221
+ };
15222
+ /**
15223
+ * FaqCategoriesApi - factory interface
15224
+ * @export
15225
+ */
15226
+ exports.FaqCategoriesApiFactory = function (configuration, basePath, axios) {
15227
+ var localVarFp = exports.FaqCategoriesApiFp(configuration);
15228
+ return {
15229
+ /**
15230
+ *
15231
+ * @summary Get BreadCrumbs.
15232
+ * @param {string} faqId
15233
+ * @param {string} [languageCode]
15234
+ * @param {*} [options] Override http request option.
15235
+ * @throws {RequiredError}
15236
+ */
15237
+ apiV1FaqcategoriesBreadcrumbsFaqIdGet: function (faqId, languageCode, options) {
15238
+ return localVarFp.apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
15239
+ },
15240
+ /**
15241
+ *
15242
+ * @summary Delete FaqCategory.
15243
+ * @param {string} faqCategoryId
15244
+ * @param {boolean} [forceDelete]
15245
+ * @param {*} [options] Override http request option.
15246
+ * @throws {RequiredError}
15247
+ */
15248
+ apiV1FaqcategoriesFaqCategoryIdDelete: function (faqCategoryId, forceDelete, options) {
15249
+ return localVarFp.apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options).then(function (request) { return request(axios, basePath); });
15250
+ },
15251
+ /**
15252
+ *
15253
+ * @summary Get FaqCategory.
15254
+ * @param {string} faqCategoryId
15255
+ * @param {string} [languageCode]
15256
+ * @param {*} [options] Override http request option.
15257
+ * @throws {RequiredError}
15258
+ */
15259
+ apiV1FaqcategoriesFaqCategoryIdGet: function (faqCategoryId, languageCode, options) {
15260
+ return localVarFp.apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options).then(function (request) { return request(axios, basePath); });
15261
+ },
15262
+ /**
15263
+ *
15264
+ * @summary Update FaqCategory.
15265
+ * @param {string} faqCategoryId
15266
+ * @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
15267
+ * @param {*} [options] Override http request option.
15268
+ * @throws {RequiredError}
15269
+ */
15270
+ apiV1FaqcategoriesFaqCategoryIdPut: function (faqCategoryId, updateFaqCategoryCommand, options) {
15271
+ return localVarFp.apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options).then(function (request) { return request(axios, basePath); });
15272
+ },
15273
+ /**
15274
+ *
15275
+ * @summary Get all FaqCategories.
15276
+ * @param {string} [id]
15277
+ * @param {string} [parentId]
15278
+ * @param {string} [name]
15279
+ * @param {string} [description]
15280
+ * @param {string} [languageCode]
15281
+ * @param {number} [page]
15282
+ * @param {number} [limit]
15283
+ * @param {Date} [lastRetrieved]
15284
+ * @param {*} [options] Override http request option.
15285
+ * @throws {RequiredError}
15286
+ */
15287
+ apiV1FaqcategoriesGet: function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
15288
+ return localVarFp.apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15289
+ },
15290
+ /**
15291
+ *
15292
+ * @summary Create a FaqCategory.
15293
+ * @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
15294
+ * @param {*} [options] Override http request option.
15295
+ * @throws {RequiredError}
15296
+ */
15297
+ apiV1FaqcategoriesPost: function (createFaqCategoryCommand, options) {
15298
+ return localVarFp.apiV1FaqcategoriesPost(createFaqCategoryCommand, options).then(function (request) { return request(axios, basePath); });
15299
+ },
15300
+ /**
15301
+ *
15302
+ * @summary Get FaqCategory by slug.
15303
+ * @param {string} slug
15304
+ * @param {string} [languageCode]
15305
+ * @param {*} [options] Override http request option.
15306
+ * @throws {RequiredError}
15307
+ */
15308
+ apiV1FaqcategoriesSlugGet: function (slug, languageCode, options) {
15309
+ return localVarFp.apiV1FaqcategoriesSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
15310
+ },
15311
+ };
15312
+ };
15313
+ /**
15314
+ * FaqCategoriesApi - object-oriented interface
15315
+ * @export
15316
+ * @class FaqCategoriesApi
15317
+ * @extends {BaseAPI}
15318
+ */
15319
+ var FaqCategoriesApi = /** @class */ (function (_super) {
15320
+ __extends(FaqCategoriesApi, _super);
15321
+ function FaqCategoriesApi() {
15322
+ return _super !== null && _super.apply(this, arguments) || this;
15323
+ }
15324
+ /**
15325
+ *
15326
+ * @summary Get BreadCrumbs.
15327
+ * @param {string} faqId
15328
+ * @param {string} [languageCode]
15329
+ * @param {*} [options] Override http request option.
15330
+ * @throws {RequiredError}
15331
+ * @memberof FaqCategoriesApi
15332
+ */
15333
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesBreadcrumbsFaqIdGet = function (faqId, languageCode, options) {
15334
+ var _this = this;
15335
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesBreadcrumbsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
15336
+ };
15337
+ /**
15338
+ *
15339
+ * @summary Delete FaqCategory.
15340
+ * @param {string} faqCategoryId
15341
+ * @param {boolean} [forceDelete]
15342
+ * @param {*} [options] Override http request option.
15343
+ * @throws {RequiredError}
15344
+ * @memberof FaqCategoriesApi
15345
+ */
15346
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesFaqCategoryIdDelete = function (faqCategoryId, forceDelete, options) {
15347
+ var _this = this;
15348
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdDelete(faqCategoryId, forceDelete, options).then(function (request) { return request(_this.axios, _this.basePath); });
15349
+ };
15350
+ /**
15351
+ *
15352
+ * @summary Get FaqCategory.
15353
+ * @param {string} faqCategoryId
15354
+ * @param {string} [languageCode]
15355
+ * @param {*} [options] Override http request option.
15356
+ * @throws {RequiredError}
15357
+ * @memberof FaqCategoriesApi
15358
+ */
15359
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesFaqCategoryIdGet = function (faqCategoryId, languageCode, options) {
15360
+ var _this = this;
15361
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdGet(faqCategoryId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
15362
+ };
15363
+ /**
15364
+ *
15365
+ * @summary Update FaqCategory.
15366
+ * @param {string} faqCategoryId
15367
+ * @param {UpdateFaqCategoryCommand} [updateFaqCategoryCommand]
15368
+ * @param {*} [options] Override http request option.
15369
+ * @throws {RequiredError}
15370
+ * @memberof FaqCategoriesApi
15371
+ */
15372
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesFaqCategoryIdPut = function (faqCategoryId, updateFaqCategoryCommand, options) {
15373
+ var _this = this;
15374
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesFaqCategoryIdPut(faqCategoryId, updateFaqCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15375
+ };
15376
+ /**
15377
+ *
15378
+ * @summary Get all FaqCategories.
15379
+ * @param {string} [id]
15380
+ * @param {string} [parentId]
15381
+ * @param {string} [name]
15382
+ * @param {string} [description]
15383
+ * @param {string} [languageCode]
15384
+ * @param {number} [page]
15385
+ * @param {number} [limit]
15386
+ * @param {Date} [lastRetrieved]
15387
+ * @param {*} [options] Override http request option.
15388
+ * @throws {RequiredError}
15389
+ * @memberof FaqCategoriesApi
15390
+ */
15391
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesGet = function (id, parentId, name, description, languageCode, page, limit, lastRetrieved, options) {
15392
+ var _this = this;
15393
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesGet(id, parentId, name, description, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15394
+ };
15395
+ /**
15396
+ *
15397
+ * @summary Create a FaqCategory.
15398
+ * @param {CreateFaqCategoryCommand} [createFaqCategoryCommand]
15399
+ * @param {*} [options] Override http request option.
15400
+ * @throws {RequiredError}
15401
+ * @memberof FaqCategoriesApi
15402
+ */
15403
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesPost = function (createFaqCategoryCommand, options) {
15404
+ var _this = this;
15405
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesPost(createFaqCategoryCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15406
+ };
15407
+ /**
15408
+ *
15409
+ * @summary Get FaqCategory by slug.
15410
+ * @param {string} slug
15411
+ * @param {string} [languageCode]
15412
+ * @param {*} [options] Override http request option.
15413
+ * @throws {RequiredError}
15414
+ * @memberof FaqCategoriesApi
15415
+ */
15416
+ FaqCategoriesApi.prototype.apiV1FaqcategoriesSlugGet = function (slug, languageCode, options) {
15417
+ var _this = this;
15418
+ return exports.FaqCategoriesApiFp(this.configuration).apiV1FaqcategoriesSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
15419
+ };
15420
+ return FaqCategoriesApi;
15421
+ }(base_1.BaseAPI));
15422
+ exports.FaqCategoriesApi = FaqCategoriesApi;
15423
+ /**
15424
+ * FaqsApi - axios parameter creator
15425
+ * @export
15426
+ */
15427
+ exports.FaqsApiAxiosParamCreator = function (configuration) {
15428
+ var _this = this;
15429
+ return {
15430
+ /**
15431
+ *
15432
+ * @summary Delete faq.
15433
+ * @param {string} faqId
15434
+ * @param {*} [options] Override http request option.
15435
+ * @throws {RequiredError}
15436
+ */
15437
+ apiV1FaqsFaqIdDelete: function (faqId, options) {
15438
+ if (options === void 0) { options = {}; }
15439
+ return __awaiter(_this, void 0, void 0, function () {
15440
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15441
+ return __generator(this, function (_a) {
15442
+ switch (_a.label) {
15443
+ case 0:
15444
+ // verify required parameter 'faqId' is not null or undefined
15445
+ common_1.assertParamExists('apiV1FaqsFaqIdDelete', 'faqId', faqId);
15446
+ localVarPath = "/api/v1/faqs/{faqId}"
15447
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
15448
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15449
+ if (configuration) {
15450
+ baseOptions = configuration.baseOptions;
15451
+ }
15452
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
15453
+ localVarHeaderParameter = {};
15454
+ localVarQueryParameter = {};
15455
+ // authentication oauth2 required
15456
+ // oauth required
15457
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15458
+ case 1:
15459
+ // authentication oauth2 required
15460
+ // oauth required
15461
+ _a.sent();
15462
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15463
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15464
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15465
+ return [2 /*return*/, {
15466
+ url: common_1.toPathString(localVarUrlObj),
15467
+ options: localVarRequestOptions,
15468
+ }];
15469
+ }
15470
+ });
15471
+ });
15472
+ },
15473
+ /**
15474
+ *
15475
+ * @summary Get faq.
15476
+ * @param {string} faqId
15477
+ * @param {string} [languageCode]
15478
+ * @param {*} [options] Override http request option.
15479
+ * @throws {RequiredError}
15480
+ */
15481
+ apiV1FaqsFaqIdGet: function (faqId, languageCode, options) {
15482
+ if (options === void 0) { options = {}; }
15483
+ return __awaiter(_this, void 0, void 0, function () {
15484
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15485
+ return __generator(this, function (_a) {
15486
+ switch (_a.label) {
15487
+ case 0:
15488
+ // verify required parameter 'faqId' is not null or undefined
15489
+ common_1.assertParamExists('apiV1FaqsFaqIdGet', 'faqId', faqId);
15490
+ localVarPath = "/api/v1/faqs/{faqId}"
15491
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
15492
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15493
+ if (configuration) {
15494
+ baseOptions = configuration.baseOptions;
15495
+ }
15496
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15497
+ localVarHeaderParameter = {};
15498
+ localVarQueryParameter = {};
15499
+ // authentication oauth2 required
15500
+ // oauth required
15501
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15502
+ case 1:
15503
+ // authentication oauth2 required
15504
+ // oauth required
15505
+ _a.sent();
15506
+ if (languageCode !== undefined) {
15507
+ localVarQueryParameter['languageCode'] = languageCode;
15508
+ }
15509
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15510
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15511
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15512
+ return [2 /*return*/, {
15513
+ url: common_1.toPathString(localVarUrlObj),
15514
+ options: localVarRequestOptions,
15515
+ }];
15516
+ }
15517
+ });
15518
+ });
15519
+ },
15520
+ /**
15521
+ *
15522
+ * @summary Get all FaqMedias.
15523
+ * @param {string} faqId
15524
+ * @param {string} [id]
15525
+ * @param {MediaType} [mediaType]
15526
+ * @param {number} [page]
15527
+ * @param {number} [limit]
15528
+ * @param {Date} [lastRetrieved]
15529
+ * @param {*} [options] Override http request option.
15530
+ * @throws {RequiredError}
15531
+ */
15532
+ apiV1FaqsFaqIdMediasGet: function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
15533
+ if (options === void 0) { options = {}; }
15534
+ return __awaiter(_this, void 0, void 0, function () {
15535
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15536
+ return __generator(this, function (_a) {
15537
+ switch (_a.label) {
15538
+ case 0:
15539
+ // verify required parameter 'faqId' is not null or undefined
15540
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasGet', 'faqId', faqId);
15541
+ localVarPath = "/api/v1/faqs/{faqId}/medias"
15542
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
15543
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15544
+ if (configuration) {
15545
+ baseOptions = configuration.baseOptions;
15546
+ }
15547
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15548
+ localVarHeaderParameter = {};
15549
+ localVarQueryParameter = {};
15550
+ // authentication oauth2 required
15551
+ // oauth required
15552
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15553
+ case 1:
15554
+ // authentication oauth2 required
15555
+ // oauth required
15556
+ _a.sent();
15557
+ if (id !== undefined) {
15558
+ localVarQueryParameter['Id'] = id;
15559
+ }
15560
+ if (mediaType !== undefined) {
15561
+ localVarQueryParameter['MediaType'] = mediaType;
15562
+ }
15563
+ if (page !== undefined) {
15564
+ localVarQueryParameter['page'] = page;
15565
+ }
15566
+ if (limit !== undefined) {
15567
+ localVarQueryParameter['limit'] = limit;
15568
+ }
15569
+ if (lastRetrieved !== undefined) {
15570
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
15571
+ lastRetrieved.toISOString() :
15572
+ lastRetrieved;
15573
+ }
15574
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15575
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15576
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15577
+ return [2 /*return*/, {
15578
+ url: common_1.toPathString(localVarUrlObj),
15579
+ options: localVarRequestOptions,
15580
+ }];
15581
+ }
15582
+ });
15583
+ });
15584
+ },
15585
+ /**
15586
+ *
15587
+ * @summary Delete FaqMedia
15588
+ * @param {string} faqId
15589
+ * @param {string} mediaId
15590
+ * @param {*} [options] Override http request option.
15591
+ * @throws {RequiredError}
15592
+ */
15593
+ apiV1FaqsFaqIdMediasMediaIdDelete: function (faqId, mediaId, options) {
15594
+ if (options === void 0) { options = {}; }
15595
+ return __awaiter(_this, void 0, void 0, function () {
15596
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15597
+ return __generator(this, function (_a) {
15598
+ switch (_a.label) {
15599
+ case 0:
15600
+ // verify required parameter 'faqId' is not null or undefined
15601
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdDelete', 'faqId', faqId);
15602
+ // verify required parameter 'mediaId' is not null or undefined
15603
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdDelete', 'mediaId', mediaId);
15604
+ localVarPath = "/api/v1/faqs/{faqId}/medias/{mediaId}"
15605
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)))
15606
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
15607
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15608
+ if (configuration) {
15609
+ baseOptions = configuration.baseOptions;
15610
+ }
15611
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
15612
+ localVarHeaderParameter = {};
15613
+ localVarQueryParameter = {};
15614
+ // authentication oauth2 required
15615
+ // oauth required
15616
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15617
+ case 1:
15618
+ // authentication oauth2 required
15619
+ // oauth required
15620
+ _a.sent();
15621
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15622
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15623
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15624
+ return [2 /*return*/, {
15625
+ url: common_1.toPathString(localVarUrlObj),
15626
+ options: localVarRequestOptions,
15627
+ }];
15628
+ }
15629
+ });
15630
+ });
15631
+ },
15632
+ /**
15633
+ *
15634
+ * @summary Get FaqMedia.
15635
+ * @param {string} faqId
15636
+ * @param {string} mediaId
15637
+ * @param {*} [options] Override http request option.
15638
+ * @throws {RequiredError}
15639
+ */
15640
+ apiV1FaqsFaqIdMediasMediaIdGet: function (faqId, mediaId, options) {
15641
+ if (options === void 0) { options = {}; }
15642
+ return __awaiter(_this, void 0, void 0, function () {
15643
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15644
+ return __generator(this, function (_a) {
15645
+ switch (_a.label) {
15646
+ case 0:
15647
+ // verify required parameter 'faqId' is not null or undefined
15648
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdGet', 'faqId', faqId);
15649
+ // verify required parameter 'mediaId' is not null or undefined
15650
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdGet', 'mediaId', mediaId);
15651
+ localVarPath = "/api/v1/faqs/{faqId}/medias/{mediaId}"
15652
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)))
15653
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
15654
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15655
+ if (configuration) {
15656
+ baseOptions = configuration.baseOptions;
15657
+ }
15658
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15659
+ localVarHeaderParameter = {};
15660
+ localVarQueryParameter = {};
15661
+ // authentication oauth2 required
15662
+ // oauth required
15663
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15664
+ case 1:
15665
+ // authentication oauth2 required
15666
+ // oauth required
15667
+ _a.sent();
15668
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15669
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15670
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15671
+ return [2 /*return*/, {
15672
+ url: common_1.toPathString(localVarUrlObj),
15673
+ options: localVarRequestOptions,
15674
+ }];
15675
+ }
15676
+ });
15677
+ });
15678
+ },
15679
+ /**
15680
+ *
15681
+ * @summary Update FaqMedia.
15682
+ * @param {string} faqId
15683
+ * @param {string} mediaId
15684
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15685
+ * @param {*} [options] Override http request option.
15686
+ * @throws {RequiredError}
15687
+ */
15688
+ apiV1FaqsFaqIdMediasMediaIdPut: function (faqId, mediaId, updateMediaCommand, options) {
15689
+ if (options === void 0) { options = {}; }
15690
+ return __awaiter(_this, void 0, void 0, function () {
15691
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15692
+ return __generator(this, function (_a) {
15693
+ switch (_a.label) {
15694
+ case 0:
15695
+ // verify required parameter 'faqId' is not null or undefined
15696
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdPut', 'faqId', faqId);
15697
+ // verify required parameter 'mediaId' is not null or undefined
15698
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasMediaIdPut', 'mediaId', mediaId);
15699
+ localVarPath = "/api/v1/faqs/{faqId}/medias/{mediaId}"
15700
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)))
15701
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
15702
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15703
+ if (configuration) {
15704
+ baseOptions = configuration.baseOptions;
15705
+ }
15706
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
15707
+ localVarHeaderParameter = {};
15708
+ localVarQueryParameter = {};
15709
+ // authentication oauth2 required
15710
+ // oauth required
15711
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15712
+ case 1:
15713
+ // authentication oauth2 required
15714
+ // oauth required
15715
+ _a.sent();
15716
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15717
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15718
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15719
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15720
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
15721
+ return [2 /*return*/, {
15722
+ url: common_1.toPathString(localVarUrlObj),
15723
+ options: localVarRequestOptions,
15724
+ }];
15725
+ }
15726
+ });
15727
+ });
15728
+ },
15729
+ /**
15730
+ *
15731
+ * @summary Create FaqMedia.
15732
+ * @param {string} faqId
15733
+ * @param {CreateMediaCommand} [createMediaCommand]
15734
+ * @param {*} [options] Override http request option.
15735
+ * @throws {RequiredError}
15736
+ */
15737
+ apiV1FaqsFaqIdMediasPost: function (faqId, createMediaCommand, options) {
15738
+ if (options === void 0) { options = {}; }
15739
+ return __awaiter(_this, void 0, void 0, function () {
15740
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15741
+ return __generator(this, function (_a) {
15742
+ switch (_a.label) {
15743
+ case 0:
15744
+ // verify required parameter 'faqId' is not null or undefined
15745
+ common_1.assertParamExists('apiV1FaqsFaqIdMediasPost', 'faqId', faqId);
15746
+ localVarPath = "/api/v1/faqs/{faqId}/medias"
15747
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
15748
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15749
+ if (configuration) {
15750
+ baseOptions = configuration.baseOptions;
15751
+ }
15752
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
15753
+ localVarHeaderParameter = {};
15754
+ localVarQueryParameter = {};
15755
+ // authentication oauth2 required
15756
+ // oauth required
15757
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15758
+ case 1:
15759
+ // authentication oauth2 required
15760
+ // oauth required
15761
+ _a.sent();
15762
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15763
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15764
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15765
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15766
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
15767
+ return [2 /*return*/, {
15768
+ url: common_1.toPathString(localVarUrlObj),
15769
+ options: localVarRequestOptions,
15770
+ }];
15771
+ }
15772
+ });
15773
+ });
15774
+ },
15775
+ /**
15776
+ *
15777
+ * @summary Update faq.
15778
+ * @param {string} faqId
15779
+ * @param {UpdateFaqCommand} [updateFaqCommand]
15780
+ * @param {*} [options] Override http request option.
15781
+ * @throws {RequiredError}
15782
+ */
15783
+ apiV1FaqsFaqIdPut: function (faqId, updateFaqCommand, options) {
15784
+ if (options === void 0) { options = {}; }
15785
+ return __awaiter(_this, void 0, void 0, function () {
15786
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15787
+ return __generator(this, function (_a) {
15788
+ switch (_a.label) {
15789
+ case 0:
15790
+ // verify required parameter 'faqId' is not null or undefined
15791
+ common_1.assertParamExists('apiV1FaqsFaqIdPut', 'faqId', faqId);
15792
+ localVarPath = "/api/v1/faqs/{faqId}"
15793
+ .replace("{" + "faqId" + "}", encodeURIComponent(String(faqId)));
15794
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15795
+ if (configuration) {
15796
+ baseOptions = configuration.baseOptions;
15797
+ }
15798
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
15799
+ localVarHeaderParameter = {};
15800
+ localVarQueryParameter = {};
15801
+ // authentication oauth2 required
15802
+ // oauth required
15803
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15804
+ case 1:
15805
+ // authentication oauth2 required
15806
+ // oauth required
15807
+ _a.sent();
15808
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15809
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15810
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15811
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15812
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateFaqCommand, localVarRequestOptions, configuration);
15813
+ return [2 /*return*/, {
15814
+ url: common_1.toPathString(localVarUrlObj),
15815
+ options: localVarRequestOptions,
15816
+ }];
15817
+ }
15818
+ });
15819
+ });
15820
+ },
15821
+ /**
15822
+ *
15823
+ * @summary Get all Faqs.
15824
+ * @param {string} [id]
15825
+ * @param {string} [title]
15826
+ * @param {string} [content]
15827
+ * @param {string} [categoryId]
15828
+ * @param {string} [languageCode]
15829
+ * @param {number} [page]
15830
+ * @param {number} [limit]
15831
+ * @param {Date} [lastRetrieved]
15832
+ * @param {*} [options] Override http request option.
15833
+ * @throws {RequiredError}
15834
+ */
15835
+ apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
15836
+ if (options === void 0) { options = {}; }
15837
+ return __awaiter(_this, void 0, void 0, function () {
15838
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15839
+ return __generator(this, function (_a) {
15840
+ switch (_a.label) {
15841
+ case 0:
15842
+ localVarPath = "/api/v1/faqs";
15843
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15844
+ if (configuration) {
15845
+ baseOptions = configuration.baseOptions;
15846
+ }
15847
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15848
+ localVarHeaderParameter = {};
15849
+ localVarQueryParameter = {};
15850
+ // authentication oauth2 required
15851
+ // oauth required
15852
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15853
+ case 1:
15854
+ // authentication oauth2 required
15855
+ // oauth required
15856
+ _a.sent();
15857
+ if (id !== undefined) {
15858
+ localVarQueryParameter['Id'] = id;
15859
+ }
15860
+ if (title !== undefined) {
15861
+ localVarQueryParameter['Title'] = title;
15862
+ }
15863
+ if (content !== undefined) {
15864
+ localVarQueryParameter['Content'] = content;
15865
+ }
15866
+ if (categoryId !== undefined) {
15867
+ localVarQueryParameter['CategoryId'] = categoryId;
15868
+ }
15869
+ if (languageCode !== undefined) {
15870
+ localVarQueryParameter['LanguageCode'] = languageCode;
15871
+ }
15872
+ if (page !== undefined) {
15873
+ localVarQueryParameter['page'] = page;
15874
+ }
15875
+ if (limit !== undefined) {
15876
+ localVarQueryParameter['limit'] = limit;
15877
+ }
15878
+ if (lastRetrieved !== undefined) {
15879
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
15880
+ lastRetrieved.toISOString() :
15881
+ lastRetrieved;
15882
+ }
15883
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15884
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15885
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15886
+ return [2 /*return*/, {
15887
+ url: common_1.toPathString(localVarUrlObj),
15888
+ options: localVarRequestOptions,
15889
+ }];
15890
+ }
15891
+ });
15892
+ });
15893
+ },
15894
+ /**
15895
+ *
15896
+ * @summary Create a faq.
15897
+ * @param {CreateFaqCommand} [createFaqCommand]
15898
+ * @param {*} [options] Override http request option.
15899
+ * @throws {RequiredError}
15900
+ */
15901
+ apiV1FaqsPost: function (createFaqCommand, options) {
15902
+ if (options === void 0) { options = {}; }
15903
+ return __awaiter(_this, void 0, void 0, function () {
15904
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15905
+ return __generator(this, function (_a) {
15906
+ switch (_a.label) {
15907
+ case 0:
15908
+ localVarPath = "/api/v1/faqs";
15909
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15910
+ if (configuration) {
15911
+ baseOptions = configuration.baseOptions;
15912
+ }
15913
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
15914
+ localVarHeaderParameter = {};
15915
+ localVarQueryParameter = {};
15916
+ // authentication oauth2 required
15917
+ // oauth required
15918
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15919
+ case 1:
15920
+ // authentication oauth2 required
15921
+ // oauth required
15922
+ _a.sent();
15923
+ localVarHeaderParameter['Content-Type'] = 'application/json';
15924
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15925
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15926
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15927
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createFaqCommand, localVarRequestOptions, configuration);
15928
+ return [2 /*return*/, {
15929
+ url: common_1.toPathString(localVarUrlObj),
15930
+ options: localVarRequestOptions,
15931
+ }];
15932
+ }
15933
+ });
15934
+ });
15935
+ },
15936
+ /**
15937
+ *
15938
+ * @summary Get faq by slug.
15939
+ * @param {string} slug
15940
+ * @param {string} [languageCode]
15941
+ * @param {*} [options] Override http request option.
15942
+ * @throws {RequiredError}
15943
+ */
15944
+ apiV1FaqsSlugGet: function (slug, languageCode, options) {
15945
+ if (options === void 0) { options = {}; }
15946
+ return __awaiter(_this, void 0, void 0, function () {
15947
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
15948
+ return __generator(this, function (_a) {
15949
+ switch (_a.label) {
15950
+ case 0:
15951
+ // verify required parameter 'slug' is not null or undefined
15952
+ common_1.assertParamExists('apiV1FaqsSlugGet', 'slug', slug);
15953
+ localVarPath = "/api/v1/faqs/{slug}"
15954
+ .replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
15955
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
15956
+ if (configuration) {
15957
+ baseOptions = configuration.baseOptions;
15958
+ }
15959
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
15960
+ localVarHeaderParameter = {};
15961
+ localVarQueryParameter = {};
15962
+ // authentication oauth2 required
15963
+ // oauth required
15964
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
15965
+ case 1:
15966
+ // authentication oauth2 required
15967
+ // oauth required
15968
+ _a.sent();
15969
+ if (languageCode !== undefined) {
15970
+ localVarQueryParameter['languageCode'] = languageCode;
15971
+ }
15972
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
15973
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15974
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15975
+ return [2 /*return*/, {
15976
+ url: common_1.toPathString(localVarUrlObj),
15977
+ options: localVarRequestOptions,
15978
+ }];
15979
+ }
15980
+ });
15981
+ });
15982
+ },
15983
+ };
15984
+ };
15985
+ /**
15986
+ * FaqsApi - functional programming interface
15987
+ * @export
15988
+ */
15989
+ exports.FaqsApiFp = function (configuration) {
15990
+ var localVarAxiosParamCreator = exports.FaqsApiAxiosParamCreator(configuration);
15991
+ return {
15992
+ /**
15993
+ *
15994
+ * @summary Delete faq.
15995
+ * @param {string} faqId
15996
+ * @param {*} [options] Override http request option.
15997
+ * @throws {RequiredError}
15998
+ */
15999
+ apiV1FaqsFaqIdDelete: function (faqId, options) {
16000
+ return __awaiter(this, void 0, void 0, function () {
16001
+ var localVarAxiosArgs;
16002
+ return __generator(this, function (_a) {
16003
+ switch (_a.label) {
16004
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdDelete(faqId, options)];
16005
+ case 1:
16006
+ localVarAxiosArgs = _a.sent();
16007
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16008
+ }
16009
+ });
16010
+ });
16011
+ },
16012
+ /**
16013
+ *
16014
+ * @summary Get faq.
16015
+ * @param {string} faqId
16016
+ * @param {string} [languageCode]
16017
+ * @param {*} [options] Override http request option.
16018
+ * @throws {RequiredError}
16019
+ */
16020
+ apiV1FaqsFaqIdGet: function (faqId, languageCode, options) {
16021
+ return __awaiter(this, void 0, void 0, function () {
16022
+ var localVarAxiosArgs;
16023
+ return __generator(this, function (_a) {
16024
+ switch (_a.label) {
16025
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdGet(faqId, languageCode, options)];
16026
+ case 1:
16027
+ localVarAxiosArgs = _a.sent();
16028
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16029
+ }
16030
+ });
16031
+ });
16032
+ },
16033
+ /**
16034
+ *
16035
+ * @summary Get all FaqMedias.
16036
+ * @param {string} faqId
16037
+ * @param {string} [id]
16038
+ * @param {MediaType} [mediaType]
16039
+ * @param {number} [page]
16040
+ * @param {number} [limit]
16041
+ * @param {Date} [lastRetrieved]
16042
+ * @param {*} [options] Override http request option.
16043
+ * @throws {RequiredError}
16044
+ */
16045
+ apiV1FaqsFaqIdMediasGet: function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
16046
+ return __awaiter(this, void 0, void 0, function () {
16047
+ var localVarAxiosArgs;
16048
+ return __generator(this, function (_a) {
16049
+ switch (_a.label) {
16050
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options)];
16051
+ case 1:
16052
+ localVarAxiosArgs = _a.sent();
16053
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16054
+ }
16055
+ });
16056
+ });
16057
+ },
16058
+ /**
16059
+ *
16060
+ * @summary Delete FaqMedia
16061
+ * @param {string} faqId
16062
+ * @param {string} mediaId
16063
+ * @param {*} [options] Override http request option.
16064
+ * @throws {RequiredError}
16065
+ */
16066
+ apiV1FaqsFaqIdMediasMediaIdDelete: function (faqId, mediaId, options) {
16067
+ return __awaiter(this, void 0, void 0, function () {
16068
+ var localVarAxiosArgs;
16069
+ return __generator(this, function (_a) {
16070
+ switch (_a.label) {
16071
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options)];
16072
+ case 1:
16073
+ localVarAxiosArgs = _a.sent();
16074
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16075
+ }
16076
+ });
16077
+ });
16078
+ },
16079
+ /**
16080
+ *
16081
+ * @summary Get FaqMedia.
16082
+ * @param {string} faqId
16083
+ * @param {string} mediaId
16084
+ * @param {*} [options] Override http request option.
16085
+ * @throws {RequiredError}
16086
+ */
16087
+ apiV1FaqsFaqIdMediasMediaIdGet: function (faqId, mediaId, options) {
16088
+ return __awaiter(this, void 0, void 0, function () {
16089
+ var localVarAxiosArgs;
16090
+ return __generator(this, function (_a) {
16091
+ switch (_a.label) {
16092
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options)];
16093
+ case 1:
16094
+ localVarAxiosArgs = _a.sent();
16095
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16096
+ }
16097
+ });
16098
+ });
16099
+ },
16100
+ /**
16101
+ *
16102
+ * @summary Update FaqMedia.
16103
+ * @param {string} faqId
16104
+ * @param {string} mediaId
16105
+ * @param {UpdateMediaCommand} [updateMediaCommand]
16106
+ * @param {*} [options] Override http request option.
16107
+ * @throws {RequiredError}
16108
+ */
16109
+ apiV1FaqsFaqIdMediasMediaIdPut: function (faqId, mediaId, updateMediaCommand, options) {
16110
+ return __awaiter(this, void 0, void 0, function () {
16111
+ var localVarAxiosArgs;
16112
+ return __generator(this, function (_a) {
16113
+ switch (_a.label) {
16114
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options)];
16115
+ case 1:
16116
+ localVarAxiosArgs = _a.sent();
16117
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16118
+ }
16119
+ });
16120
+ });
16121
+ },
16122
+ /**
16123
+ *
16124
+ * @summary Create FaqMedia.
16125
+ * @param {string} faqId
16126
+ * @param {CreateMediaCommand} [createMediaCommand]
16127
+ * @param {*} [options] Override http request option.
16128
+ * @throws {RequiredError}
16129
+ */
16130
+ apiV1FaqsFaqIdMediasPost: function (faqId, createMediaCommand, options) {
16131
+ return __awaiter(this, void 0, void 0, function () {
16132
+ var localVarAxiosArgs;
16133
+ return __generator(this, function (_a) {
16134
+ switch (_a.label) {
16135
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options)];
16136
+ case 1:
16137
+ localVarAxiosArgs = _a.sent();
16138
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16139
+ }
16140
+ });
16141
+ });
16142
+ },
16143
+ /**
16144
+ *
16145
+ * @summary Update faq.
16146
+ * @param {string} faqId
16147
+ * @param {UpdateFaqCommand} [updateFaqCommand]
16148
+ * @param {*} [options] Override http request option.
16149
+ * @throws {RequiredError}
16150
+ */
16151
+ apiV1FaqsFaqIdPut: function (faqId, updateFaqCommand, options) {
16152
+ return __awaiter(this, void 0, void 0, function () {
16153
+ var localVarAxiosArgs;
16154
+ return __generator(this, function (_a) {
16155
+ switch (_a.label) {
16156
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options)];
16157
+ case 1:
16158
+ localVarAxiosArgs = _a.sent();
16159
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16160
+ }
16161
+ });
16162
+ });
16163
+ },
16164
+ /**
16165
+ *
16166
+ * @summary Get all Faqs.
16167
+ * @param {string} [id]
16168
+ * @param {string} [title]
16169
+ * @param {string} [content]
16170
+ * @param {string} [categoryId]
16171
+ * @param {string} [languageCode]
16172
+ * @param {number} [page]
16173
+ * @param {number} [limit]
16174
+ * @param {Date} [lastRetrieved]
16175
+ * @param {*} [options] Override http request option.
16176
+ * @throws {RequiredError}
16177
+ */
16178
+ apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
16179
+ return __awaiter(this, void 0, void 0, function () {
16180
+ var localVarAxiosArgs;
16181
+ return __generator(this, function (_a) {
16182
+ switch (_a.label) {
16183
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options)];
16184
+ case 1:
16185
+ localVarAxiosArgs = _a.sent();
16186
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16187
+ }
16188
+ });
16189
+ });
16190
+ },
16191
+ /**
16192
+ *
16193
+ * @summary Create a faq.
16194
+ * @param {CreateFaqCommand} [createFaqCommand]
16195
+ * @param {*} [options] Override http request option.
16196
+ * @throws {RequiredError}
16197
+ */
16198
+ apiV1FaqsPost: function (createFaqCommand, options) {
16199
+ return __awaiter(this, void 0, void 0, function () {
16200
+ var localVarAxiosArgs;
16201
+ return __generator(this, function (_a) {
16202
+ switch (_a.label) {
16203
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsPost(createFaqCommand, options)];
16204
+ case 1:
16205
+ localVarAxiosArgs = _a.sent();
16206
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16207
+ }
16208
+ });
16209
+ });
16210
+ },
16211
+ /**
16212
+ *
16213
+ * @summary Get faq by slug.
16214
+ * @param {string} slug
16215
+ * @param {string} [languageCode]
16216
+ * @param {*} [options] Override http request option.
16217
+ * @throws {RequiredError}
16218
+ */
16219
+ apiV1FaqsSlugGet: function (slug, languageCode, options) {
16220
+ return __awaiter(this, void 0, void 0, function () {
16221
+ var localVarAxiosArgs;
16222
+ return __generator(this, function (_a) {
16223
+ switch (_a.label) {
16224
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1FaqsSlugGet(slug, languageCode, options)];
16225
+ case 1:
16226
+ localVarAxiosArgs = _a.sent();
16227
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
16228
+ }
16229
+ });
16230
+ });
16231
+ },
16232
+ };
16233
+ };
16234
+ /**
16235
+ * FaqsApi - factory interface
16236
+ * @export
16237
+ */
16238
+ exports.FaqsApiFactory = function (configuration, basePath, axios) {
16239
+ var localVarFp = exports.FaqsApiFp(configuration);
16240
+ return {
16241
+ /**
16242
+ *
16243
+ * @summary Delete faq.
16244
+ * @param {string} faqId
16245
+ * @param {*} [options] Override http request option.
16246
+ * @throws {RequiredError}
16247
+ */
16248
+ apiV1FaqsFaqIdDelete: function (faqId, options) {
16249
+ return localVarFp.apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(axios, basePath); });
16250
+ },
16251
+ /**
16252
+ *
16253
+ * @summary Get faq.
16254
+ * @param {string} faqId
16255
+ * @param {string} [languageCode]
16256
+ * @param {*} [options] Override http request option.
16257
+ * @throws {RequiredError}
16258
+ */
16259
+ apiV1FaqsFaqIdGet: function (faqId, languageCode, options) {
16260
+ return localVarFp.apiV1FaqsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(axios, basePath); });
16261
+ },
16262
+ /**
16263
+ *
16264
+ * @summary Get all FaqMedias.
16265
+ * @param {string} faqId
16266
+ * @param {string} [id]
16267
+ * @param {MediaType} [mediaType]
16268
+ * @param {number} [page]
16269
+ * @param {number} [limit]
16270
+ * @param {Date} [lastRetrieved]
16271
+ * @param {*} [options] Override http request option.
16272
+ * @throws {RequiredError}
16273
+ */
16274
+ apiV1FaqsFaqIdMediasGet: function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
16275
+ return localVarFp.apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16276
+ },
16277
+ /**
16278
+ *
16279
+ * @summary Delete FaqMedia
16280
+ * @param {string} faqId
16281
+ * @param {string} mediaId
16282
+ * @param {*} [options] Override http request option.
16283
+ * @throws {RequiredError}
16284
+ */
16285
+ apiV1FaqsFaqIdMediasMediaIdDelete: function (faqId, mediaId, options) {
16286
+ return localVarFp.apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options).then(function (request) { return request(axios, basePath); });
16287
+ },
16288
+ /**
16289
+ *
16290
+ * @summary Get FaqMedia.
16291
+ * @param {string} faqId
16292
+ * @param {string} mediaId
16293
+ * @param {*} [options] Override http request option.
16294
+ * @throws {RequiredError}
16295
+ */
16296
+ apiV1FaqsFaqIdMediasMediaIdGet: function (faqId, mediaId, options) {
16297
+ return localVarFp.apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options).then(function (request) { return request(axios, basePath); });
16298
+ },
16299
+ /**
16300
+ *
16301
+ * @summary Update FaqMedia.
16302
+ * @param {string} faqId
16303
+ * @param {string} mediaId
16304
+ * @param {UpdateMediaCommand} [updateMediaCommand]
16305
+ * @param {*} [options] Override http request option.
16306
+ * @throws {RequiredError}
16307
+ */
16308
+ apiV1FaqsFaqIdMediasMediaIdPut: function (faqId, mediaId, updateMediaCommand, options) {
16309
+ return localVarFp.apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
16310
+ },
16311
+ /**
16312
+ *
16313
+ * @summary Create FaqMedia.
16314
+ * @param {string} faqId
16315
+ * @param {CreateMediaCommand} [createMediaCommand]
16316
+ * @param {*} [options] Override http request option.
16317
+ * @throws {RequiredError}
16318
+ */
16319
+ apiV1FaqsFaqIdMediasPost: function (faqId, createMediaCommand, options) {
16320
+ return localVarFp.apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
16321
+ },
16322
+ /**
16323
+ *
16324
+ * @summary Update faq.
16325
+ * @param {string} faqId
16326
+ * @param {UpdateFaqCommand} [updateFaqCommand]
16327
+ * @param {*} [options] Override http request option.
16328
+ * @throws {RequiredError}
16329
+ */
16330
+ apiV1FaqsFaqIdPut: function (faqId, updateFaqCommand, options) {
16331
+ return localVarFp.apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then(function (request) { return request(axios, basePath); });
16332
+ },
16333
+ /**
16334
+ *
16335
+ * @summary Get all Faqs.
16336
+ * @param {string} [id]
16337
+ * @param {string} [title]
16338
+ * @param {string} [content]
16339
+ * @param {string} [categoryId]
16340
+ * @param {string} [languageCode]
16341
+ * @param {number} [page]
16342
+ * @param {number} [limit]
16343
+ * @param {Date} [lastRetrieved]
16344
+ * @param {*} [options] Override http request option.
16345
+ * @throws {RequiredError}
16346
+ */
16347
+ apiV1FaqsGet: function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
16348
+ return localVarFp.apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16349
+ },
16350
+ /**
16351
+ *
16352
+ * @summary Create a faq.
16353
+ * @param {CreateFaqCommand} [createFaqCommand]
16354
+ * @param {*} [options] Override http request option.
16355
+ * @throws {RequiredError}
16356
+ */
16357
+ apiV1FaqsPost: function (createFaqCommand, options) {
16358
+ return localVarFp.apiV1FaqsPost(createFaqCommand, options).then(function (request) { return request(axios, basePath); });
16359
+ },
16360
+ /**
16361
+ *
16362
+ * @summary Get faq by slug.
16363
+ * @param {string} slug
16364
+ * @param {string} [languageCode]
16365
+ * @param {*} [options] Override http request option.
16366
+ * @throws {RequiredError}
16367
+ */
16368
+ apiV1FaqsSlugGet: function (slug, languageCode, options) {
16369
+ return localVarFp.apiV1FaqsSlugGet(slug, languageCode, options).then(function (request) { return request(axios, basePath); });
16370
+ },
16371
+ };
16372
+ };
16373
+ /**
16374
+ * FaqsApi - object-oriented interface
16375
+ * @export
16376
+ * @class FaqsApi
16377
+ * @extends {BaseAPI}
16378
+ */
16379
+ var FaqsApi = /** @class */ (function (_super) {
16380
+ __extends(FaqsApi, _super);
16381
+ function FaqsApi() {
16382
+ return _super !== null && _super.apply(this, arguments) || this;
16383
+ }
16384
+ /**
16385
+ *
16386
+ * @summary Delete faq.
16387
+ * @param {string} faqId
16388
+ * @param {*} [options] Override http request option.
16389
+ * @throws {RequiredError}
16390
+ * @memberof FaqsApi
16391
+ */
16392
+ FaqsApi.prototype.apiV1FaqsFaqIdDelete = function (faqId, options) {
16393
+ var _this = this;
16394
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdDelete(faqId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16395
+ };
16396
+ /**
16397
+ *
16398
+ * @summary Get faq.
16399
+ * @param {string} faqId
16400
+ * @param {string} [languageCode]
16401
+ * @param {*} [options] Override http request option.
16402
+ * @throws {RequiredError}
16403
+ * @memberof FaqsApi
16404
+ */
16405
+ FaqsApi.prototype.apiV1FaqsFaqIdGet = function (faqId, languageCode, options) {
16406
+ var _this = this;
16407
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdGet(faqId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
16408
+ };
16409
+ /**
16410
+ *
16411
+ * @summary Get all FaqMedias.
16412
+ * @param {string} faqId
16413
+ * @param {string} [id]
16414
+ * @param {MediaType} [mediaType]
16415
+ * @param {number} [page]
16416
+ * @param {number} [limit]
16417
+ * @param {Date} [lastRetrieved]
16418
+ * @param {*} [options] Override http request option.
16419
+ * @throws {RequiredError}
16420
+ * @memberof FaqsApi
16421
+ */
16422
+ FaqsApi.prototype.apiV1FaqsFaqIdMediasGet = function (faqId, id, mediaType, page, limit, lastRetrieved, options) {
16423
+ var _this = this;
16424
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasGet(faqId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
16425
+ };
16426
+ /**
16427
+ *
16428
+ * @summary Delete FaqMedia
16429
+ * @param {string} faqId
16430
+ * @param {string} mediaId
16431
+ * @param {*} [options] Override http request option.
16432
+ * @throws {RequiredError}
16433
+ * @memberof FaqsApi
16434
+ */
16435
+ FaqsApi.prototype.apiV1FaqsFaqIdMediasMediaIdDelete = function (faqId, mediaId, options) {
16436
+ var _this = this;
16437
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdDelete(faqId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16438
+ };
16439
+ /**
16440
+ *
16441
+ * @summary Get FaqMedia.
16442
+ * @param {string} faqId
16443
+ * @param {string} mediaId
16444
+ * @param {*} [options] Override http request option.
16445
+ * @throws {RequiredError}
16446
+ * @memberof FaqsApi
16447
+ */
16448
+ FaqsApi.prototype.apiV1FaqsFaqIdMediasMediaIdGet = function (faqId, mediaId, options) {
16449
+ var _this = this;
16450
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdGet(faqId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16451
+ };
16452
+ /**
16453
+ *
16454
+ * @summary Update FaqMedia.
16455
+ * @param {string} faqId
16456
+ * @param {string} mediaId
16457
+ * @param {UpdateMediaCommand} [updateMediaCommand]
16458
+ * @param {*} [options] Override http request option.
16459
+ * @throws {RequiredError}
16460
+ * @memberof FaqsApi
16461
+ */
16462
+ FaqsApi.prototype.apiV1FaqsFaqIdMediasMediaIdPut = function (faqId, mediaId, updateMediaCommand, options) {
16463
+ var _this = this;
16464
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasMediaIdPut(faqId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16465
+ };
16466
+ /**
16467
+ *
16468
+ * @summary Create FaqMedia.
16469
+ * @param {string} faqId
16470
+ * @param {CreateMediaCommand} [createMediaCommand]
16471
+ * @param {*} [options] Override http request option.
16472
+ * @throws {RequiredError}
16473
+ * @memberof FaqsApi
16474
+ */
16475
+ FaqsApi.prototype.apiV1FaqsFaqIdMediasPost = function (faqId, createMediaCommand, options) {
16476
+ var _this = this;
16477
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdMediasPost(faqId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16478
+ };
16479
+ /**
16480
+ *
16481
+ * @summary Update faq.
16482
+ * @param {string} faqId
16483
+ * @param {UpdateFaqCommand} [updateFaqCommand]
16484
+ * @param {*} [options] Override http request option.
16485
+ * @throws {RequiredError}
16486
+ * @memberof FaqsApi
16487
+ */
16488
+ FaqsApi.prototype.apiV1FaqsFaqIdPut = function (faqId, updateFaqCommand, options) {
16489
+ var _this = this;
16490
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsFaqIdPut(faqId, updateFaqCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16491
+ };
16492
+ /**
16493
+ *
16494
+ * @summary Get all Faqs.
16495
+ * @param {string} [id]
16496
+ * @param {string} [title]
16497
+ * @param {string} [content]
16498
+ * @param {string} [categoryId]
16499
+ * @param {string} [languageCode]
16500
+ * @param {number} [page]
16501
+ * @param {number} [limit]
16502
+ * @param {Date} [lastRetrieved]
16503
+ * @param {*} [options] Override http request option.
16504
+ * @throws {RequiredError}
16505
+ * @memberof FaqsApi
16506
+ */
16507
+ FaqsApi.prototype.apiV1FaqsGet = function (id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options) {
16508
+ var _this = this;
16509
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsGet(id, title, content, categoryId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
16510
+ };
16511
+ /**
16512
+ *
16513
+ * @summary Create a faq.
16514
+ * @param {CreateFaqCommand} [createFaqCommand]
16515
+ * @param {*} [options] Override http request option.
16516
+ * @throws {RequiredError}
16517
+ * @memberof FaqsApi
16518
+ */
16519
+ FaqsApi.prototype.apiV1FaqsPost = function (createFaqCommand, options) {
16520
+ var _this = this;
16521
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsPost(createFaqCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16522
+ };
16523
+ /**
16524
+ *
16525
+ * @summary Get faq by slug.
16526
+ * @param {string} slug
16527
+ * @param {string} [languageCode]
16528
+ * @param {*} [options] Override http request option.
16529
+ * @throws {RequiredError}
16530
+ * @memberof FaqsApi
16531
+ */
16532
+ FaqsApi.prototype.apiV1FaqsSlugGet = function (slug, languageCode, options) {
16533
+ var _this = this;
16534
+ return exports.FaqsApiFp(this.configuration).apiV1FaqsSlugGet(slug, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
16535
+ };
16536
+ return FaqsApi;
16537
+ }(base_1.BaseAPI));
16538
+ exports.FaqsApi = FaqsApi;
14044
16539
  /**
14045
16540
  * HospitalsApi - axios parameter creator
14046
16541
  * @export