ch-admin-api-client-typescript 2.5.2 → 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.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
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.
@@ -14048,6 +14122,584 @@ var DoctorsApi = /** @class */ (function (_super) {
14048
14122
  return DoctorsApi;
14049
14123
  }(base_1.BaseAPI));
14050
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;
14051
14703
  /**
14052
14704
  * FaqCategoriesApi - axios parameter creator
14053
14705
  * @export