ch-admin-api-client-typescript 2.1.4 → 2.1.8

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.
Files changed (5) hide show
  1. package/lib/api.d.ts +1027 -574
  2. package/lib/api.d.ts.map +1 -1
  3. package/lib/api.js +1658 -405
  4. package/package.json +1 -1
  5. package/src/api.ts +2236 -1224
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.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = 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.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = 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.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = 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
@@ -1041,7 +1041,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1041
1041
  *
1042
1042
  * @summary GetAll ArticleContributors.
1043
1043
  * @param {string} articleId
1044
- * @param {string} [articleId2]
1045
1044
  * @param {string} [articleName]
1046
1045
  * @param {string} [contributorId]
1047
1046
  * @param {string} [contributorName]
@@ -1055,7 +1054,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1055
1054
  * @param {*} [options] Override http request option.
1056
1055
  * @throws {RequiredError}
1057
1056
  */
1058
- apiV1ArticlesArticleIdContributorsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1057
+ apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1059
1058
  if (options === void 0) { options = {}; }
1060
1059
  return __awaiter(_this, void 0, void 0, function () {
1061
1060
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1080,9 +1079,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1080
1079
  // authentication oauth2 required
1081
1080
  // oauth required
1082
1081
  _a.sent();
1083
- if (articleId2 !== undefined) {
1084
- localVarQueryParameter['ArticleId'] = articleId2;
1085
- }
1086
1082
  if (articleName !== undefined) {
1087
1083
  localVarQueryParameter['ArticleName'] = articleName;
1088
1084
  }
@@ -1814,7 +1810,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1814
1810
  *
1815
1811
  * @summary GetAll ArticleContributors.
1816
1812
  * @param {string} articleId
1817
- * @param {string} [articleId2]
1818
1813
  * @param {string} [articleName]
1819
1814
  * @param {string} [contributorId]
1820
1815
  * @param {string} [contributorName]
@@ -1828,7 +1823,7 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1828
1823
  * @param {*} [options] Override http request option.
1829
1824
  * @throws {RequiredError}
1830
1825
  */
1831
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1826
+ apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
1832
1827
  if (options === void 0) { options = {}; }
1833
1828
  return __awaiter(_this, void 0, void 0, function () {
1834
1829
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -1853,9 +1848,6 @@ exports.ArticlesApiAxiosParamCreator = function (configuration) {
1853
1848
  // authentication oauth2 required
1854
1849
  // oauth required
1855
1850
  _a.sent();
1856
- if (articleId2 !== undefined) {
1857
- localVarQueryParameter['ArticleId'] = articleId2;
1858
- }
1859
1851
  if (articleName !== undefined) {
1860
1852
  localVarQueryParameter['ArticleName'] = articleName;
1861
1853
  }
@@ -2325,7 +2317,6 @@ exports.ArticlesApiFp = function (configuration) {
2325
2317
  *
2326
2318
  * @summary GetAll ArticleContributors.
2327
2319
  * @param {string} articleId
2328
- * @param {string} [articleId2]
2329
2320
  * @param {string} [articleName]
2330
2321
  * @param {string} [contributorId]
2331
2322
  * @param {string} [contributorName]
@@ -2339,12 +2330,12 @@ exports.ArticlesApiFp = function (configuration) {
2339
2330
  * @param {*} [options] Override http request option.
2340
2331
  * @throws {RequiredError}
2341
2332
  */
2342
- apiV1ArticlesArticleIdContributorsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2333
+ apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2343
2334
  return __awaiter(this, void 0, void 0, function () {
2344
2335
  var localVarAxiosArgs;
2345
2336
  return __generator(this, function (_a) {
2346
2337
  switch (_a.label) {
2347
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2338
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2348
2339
  case 1:
2349
2340
  localVarAxiosArgs = _a.sent();
2350
2341
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2657,7 +2648,6 @@ exports.ArticlesApiFp = function (configuration) {
2657
2648
  *
2658
2649
  * @summary GetAll ArticleContributors.
2659
2650
  * @param {string} articleId
2660
- * @param {string} [articleId2]
2661
2651
  * @param {string} [articleName]
2662
2652
  * @param {string} [contributorId]
2663
2653
  * @param {string} [contributorName]
@@ -2671,12 +2661,12 @@ exports.ArticlesApiFp = function (configuration) {
2671
2661
  * @param {*} [options] Override http request option.
2672
2662
  * @throws {RequiredError}
2673
2663
  */
2674
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2664
+ apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2675
2665
  return __awaiter(this, void 0, void 0, function () {
2676
2666
  var localVarAxiosArgs;
2677
2667
  return __generator(this, function (_a) {
2678
2668
  switch (_a.label) {
2679
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2669
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options)];
2680
2670
  case 1:
2681
2671
  localVarAxiosArgs = _a.sent();
2682
2672
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -2873,7 +2863,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
2873
2863
  *
2874
2864
  * @summary GetAll ArticleContributors.
2875
2865
  * @param {string} articleId
2876
- * @param {string} [articleId2]
2877
2866
  * @param {string} [articleName]
2878
2867
  * @param {string} [contributorId]
2879
2868
  * @param {string} [contributorName]
@@ -2887,8 +2876,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
2887
2876
  * @param {*} [options] Override http request option.
2888
2877
  * @throws {RequiredError}
2889
2878
  */
2890
- apiV1ArticlesArticleIdContributorsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2891
- return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
2879
+ apiV1ArticlesArticleIdContributorsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
2880
+ return localVarFp.apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
2892
2881
  },
2893
2882
  /**
2894
2883
  *
@@ -3055,7 +3044,6 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3055
3044
  *
3056
3045
  * @summary GetAll ArticleContributors.
3057
3046
  * @param {string} articleId
3058
- * @param {string} [articleId2]
3059
3047
  * @param {string} [articleName]
3060
3048
  * @param {string} [contributorId]
3061
3049
  * @param {string} [contributorName]
@@ -3069,8 +3057,8 @@ exports.ArticlesApiFactory = function (configuration, basePath, axios) {
3069
3057
  * @param {*} [options] Override http request option.
3070
3058
  * @throws {RequiredError}
3071
3059
  */
3072
- apiV1ArticlesArticleIdTagsGet: function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3073
- return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3060
+ apiV1ArticlesArticleIdTagsGet: function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3061
+ return localVarFp.apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
3074
3062
  },
3075
3063
  /**
3076
3064
  *
@@ -3211,7 +3199,6 @@ var ArticlesApi = /** @class */ (function (_super) {
3211
3199
  *
3212
3200
  * @summary GetAll ArticleContributors.
3213
3201
  * @param {string} articleId
3214
- * @param {string} [articleId2]
3215
3202
  * @param {string} [articleName]
3216
3203
  * @param {string} [contributorId]
3217
3204
  * @param {string} [contributorName]
@@ -3226,9 +3213,9 @@ var ArticlesApi = /** @class */ (function (_super) {
3226
3213
  * @throws {RequiredError}
3227
3214
  * @memberof ArticlesApi
3228
3215
  */
3229
- ArticlesApi.prototype.apiV1ArticlesArticleIdContributorsGet = function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3216
+ ArticlesApi.prototype.apiV1ArticlesArticleIdContributorsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3230
3217
  var _this = this;
3231
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3218
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdContributorsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3232
3219
  };
3233
3220
  /**
3234
3221
  *
@@ -3423,7 +3410,6 @@ var ArticlesApi = /** @class */ (function (_super) {
3423
3410
  *
3424
3411
  * @summary GetAll ArticleContributors.
3425
3412
  * @param {string} articleId
3426
- * @param {string} [articleId2]
3427
3413
  * @param {string} [articleName]
3428
3414
  * @param {string} [contributorId]
3429
3415
  * @param {string} [contributorName]
@@ -3438,9 +3424,9 @@ var ArticlesApi = /** @class */ (function (_super) {
3438
3424
  * @throws {RequiredError}
3439
3425
  * @memberof ArticlesApi
3440
3426
  */
3441
- ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3427
+ ArticlesApi.prototype.apiV1ArticlesArticleIdTagsGet = function (articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options) {
3442
3428
  var _this = this;
3443
- return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleId2, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3429
+ return exports.ArticlesApiFp(this.configuration).apiV1ArticlesArticleIdTagsGet(articleId, articleName, contributorId, contributorName, email, description, website, contributionType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
3444
3430
  };
3445
3431
  /**
3446
3432
  *
@@ -4153,6 +4139,281 @@ var BookingsApi = /** @class */ (function (_super) {
4153
4139
  return BookingsApi;
4154
4140
  }(base_1.BaseAPI));
4155
4141
  exports.BookingsApi = BookingsApi;
4142
+ /**
4143
+ * CommunicationsApi - axios parameter creator
4144
+ * @export
4145
+ */
4146
+ exports.CommunicationsApiAxiosParamCreator = function (configuration) {
4147
+ var _this = this;
4148
+ return {
4149
+ /**
4150
+ *
4151
+ * @summary Delete CommunicationUser.
4152
+ * @param {*} [options] Override http request option.
4153
+ * @throws {RequiredError}
4154
+ */
4155
+ apiV1CommunicationsDelete: function (options) {
4156
+ if (options === void 0) { options = {}; }
4157
+ return __awaiter(_this, void 0, void 0, function () {
4158
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4159
+ return __generator(this, function (_a) {
4160
+ switch (_a.label) {
4161
+ case 0:
4162
+ localVarPath = "/api/v1/communications";
4163
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4164
+ if (configuration) {
4165
+ baseOptions = configuration.baseOptions;
4166
+ }
4167
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
4168
+ localVarHeaderParameter = {};
4169
+ localVarQueryParameter = {};
4170
+ // authentication oauth2 required
4171
+ // oauth required
4172
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4173
+ case 1:
4174
+ // authentication oauth2 required
4175
+ // oauth required
4176
+ _a.sent();
4177
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4178
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4179
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4180
+ return [2 /*return*/, {
4181
+ url: common_1.toPathString(localVarUrlObj),
4182
+ options: localVarRequestOptions,
4183
+ }];
4184
+ }
4185
+ });
4186
+ });
4187
+ },
4188
+ /**
4189
+ *
4190
+ * @summary Get CommunicationUser.
4191
+ * @param {*} [options] Override http request option.
4192
+ * @throws {RequiredError}
4193
+ */
4194
+ apiV1CommunicationsGet: function (options) {
4195
+ if (options === void 0) { options = {}; }
4196
+ return __awaiter(_this, void 0, void 0, function () {
4197
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4198
+ return __generator(this, function (_a) {
4199
+ switch (_a.label) {
4200
+ case 0:
4201
+ localVarPath = "/api/v1/communications";
4202
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4203
+ if (configuration) {
4204
+ baseOptions = configuration.baseOptions;
4205
+ }
4206
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
4207
+ localVarHeaderParameter = {};
4208
+ localVarQueryParameter = {};
4209
+ // authentication oauth2 required
4210
+ // oauth required
4211
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4212
+ case 1:
4213
+ // authentication oauth2 required
4214
+ // oauth required
4215
+ _a.sent();
4216
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4217
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4218
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4219
+ return [2 /*return*/, {
4220
+ url: common_1.toPathString(localVarUrlObj),
4221
+ options: localVarRequestOptions,
4222
+ }];
4223
+ }
4224
+ });
4225
+ });
4226
+ },
4227
+ /**
4228
+ *
4229
+ * @summary Revoke CommunicationUser.
4230
+ * @param {*} [options] Override http request option.
4231
+ * @throws {RequiredError}
4232
+ */
4233
+ apiV1CommunicationsPut: function (options) {
4234
+ if (options === void 0) { options = {}; }
4235
+ return __awaiter(_this, void 0, void 0, function () {
4236
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
4237
+ return __generator(this, function (_a) {
4238
+ switch (_a.label) {
4239
+ case 0:
4240
+ localVarPath = "/api/v1/communications";
4241
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
4242
+ if (configuration) {
4243
+ baseOptions = configuration.baseOptions;
4244
+ }
4245
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
4246
+ localVarHeaderParameter = {};
4247
+ localVarQueryParameter = {};
4248
+ // authentication oauth2 required
4249
+ // oauth required
4250
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
4251
+ case 1:
4252
+ // authentication oauth2 required
4253
+ // oauth required
4254
+ _a.sent();
4255
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
4256
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4257
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4258
+ return [2 /*return*/, {
4259
+ url: common_1.toPathString(localVarUrlObj),
4260
+ options: localVarRequestOptions,
4261
+ }];
4262
+ }
4263
+ });
4264
+ });
4265
+ },
4266
+ };
4267
+ };
4268
+ /**
4269
+ * CommunicationsApi - functional programming interface
4270
+ * @export
4271
+ */
4272
+ exports.CommunicationsApiFp = function (configuration) {
4273
+ var localVarAxiosParamCreator = exports.CommunicationsApiAxiosParamCreator(configuration);
4274
+ return {
4275
+ /**
4276
+ *
4277
+ * @summary Delete CommunicationUser.
4278
+ * @param {*} [options] Override http request option.
4279
+ * @throws {RequiredError}
4280
+ */
4281
+ apiV1CommunicationsDelete: function (options) {
4282
+ return __awaiter(this, void 0, void 0, function () {
4283
+ var localVarAxiosArgs;
4284
+ return __generator(this, function (_a) {
4285
+ switch (_a.label) {
4286
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CommunicationsDelete(options)];
4287
+ case 1:
4288
+ localVarAxiosArgs = _a.sent();
4289
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4290
+ }
4291
+ });
4292
+ });
4293
+ },
4294
+ /**
4295
+ *
4296
+ * @summary Get CommunicationUser.
4297
+ * @param {*} [options] Override http request option.
4298
+ * @throws {RequiredError}
4299
+ */
4300
+ apiV1CommunicationsGet: function (options) {
4301
+ return __awaiter(this, void 0, void 0, function () {
4302
+ var localVarAxiosArgs;
4303
+ return __generator(this, function (_a) {
4304
+ switch (_a.label) {
4305
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CommunicationsGet(options)];
4306
+ case 1:
4307
+ localVarAxiosArgs = _a.sent();
4308
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4309
+ }
4310
+ });
4311
+ });
4312
+ },
4313
+ /**
4314
+ *
4315
+ * @summary Revoke CommunicationUser.
4316
+ * @param {*} [options] Override http request option.
4317
+ * @throws {RequiredError}
4318
+ */
4319
+ apiV1CommunicationsPut: function (options) {
4320
+ return __awaiter(this, void 0, void 0, function () {
4321
+ var localVarAxiosArgs;
4322
+ return __generator(this, function (_a) {
4323
+ switch (_a.label) {
4324
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CommunicationsPut(options)];
4325
+ case 1:
4326
+ localVarAxiosArgs = _a.sent();
4327
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
4328
+ }
4329
+ });
4330
+ });
4331
+ },
4332
+ };
4333
+ };
4334
+ /**
4335
+ * CommunicationsApi - factory interface
4336
+ * @export
4337
+ */
4338
+ exports.CommunicationsApiFactory = function (configuration, basePath, axios) {
4339
+ var localVarFp = exports.CommunicationsApiFp(configuration);
4340
+ return {
4341
+ /**
4342
+ *
4343
+ * @summary Delete CommunicationUser.
4344
+ * @param {*} [options] Override http request option.
4345
+ * @throws {RequiredError}
4346
+ */
4347
+ apiV1CommunicationsDelete: function (options) {
4348
+ return localVarFp.apiV1CommunicationsDelete(options).then(function (request) { return request(axios, basePath); });
4349
+ },
4350
+ /**
4351
+ *
4352
+ * @summary Get CommunicationUser.
4353
+ * @param {*} [options] Override http request option.
4354
+ * @throws {RequiredError}
4355
+ */
4356
+ apiV1CommunicationsGet: function (options) {
4357
+ return localVarFp.apiV1CommunicationsGet(options).then(function (request) { return request(axios, basePath); });
4358
+ },
4359
+ /**
4360
+ *
4361
+ * @summary Revoke CommunicationUser.
4362
+ * @param {*} [options] Override http request option.
4363
+ * @throws {RequiredError}
4364
+ */
4365
+ apiV1CommunicationsPut: function (options) {
4366
+ return localVarFp.apiV1CommunicationsPut(options).then(function (request) { return request(axios, basePath); });
4367
+ },
4368
+ };
4369
+ };
4370
+ /**
4371
+ * CommunicationsApi - object-oriented interface
4372
+ * @export
4373
+ * @class CommunicationsApi
4374
+ * @extends {BaseAPI}
4375
+ */
4376
+ var CommunicationsApi = /** @class */ (function (_super) {
4377
+ __extends(CommunicationsApi, _super);
4378
+ function CommunicationsApi() {
4379
+ return _super !== null && _super.apply(this, arguments) || this;
4380
+ }
4381
+ /**
4382
+ *
4383
+ * @summary Delete CommunicationUser.
4384
+ * @param {*} [options] Override http request option.
4385
+ * @throws {RequiredError}
4386
+ * @memberof CommunicationsApi
4387
+ */
4388
+ CommunicationsApi.prototype.apiV1CommunicationsDelete = function (options) {
4389
+ var _this = this;
4390
+ return exports.CommunicationsApiFp(this.configuration).apiV1CommunicationsDelete(options).then(function (request) { return request(_this.axios, _this.basePath); });
4391
+ };
4392
+ /**
4393
+ *
4394
+ * @summary Get CommunicationUser.
4395
+ * @param {*} [options] Override http request option.
4396
+ * @throws {RequiredError}
4397
+ * @memberof CommunicationsApi
4398
+ */
4399
+ CommunicationsApi.prototype.apiV1CommunicationsGet = function (options) {
4400
+ var _this = this;
4401
+ return exports.CommunicationsApiFp(this.configuration).apiV1CommunicationsGet(options).then(function (request) { return request(_this.axios, _this.basePath); });
4402
+ };
4403
+ /**
4404
+ *
4405
+ * @summary Revoke CommunicationUser.
4406
+ * @param {*} [options] Override http request option.
4407
+ * @throws {RequiredError}
4408
+ * @memberof CommunicationsApi
4409
+ */
4410
+ CommunicationsApi.prototype.apiV1CommunicationsPut = function (options) {
4411
+ var _this = this;
4412
+ return exports.CommunicationsApiFp(this.configuration).apiV1CommunicationsPut(options).then(function (request) { return request(_this.axios, _this.basePath); });
4413
+ };
4414
+ return CommunicationsApi;
4415
+ }(base_1.BaseAPI));
4416
+ exports.CommunicationsApi = CommunicationsApi;
4156
4417
  /**
4157
4418
  * ConsultationsApi - axios parameter creator
4158
4419
  * @export
@@ -5026,13 +5287,14 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5026
5287
  },
5027
5288
  /**
5028
5289
  *
5029
- * @summary Get ContributorHandle.
5290
+ * @summary Update ContributorHandle.
5030
5291
  * @param {string} contributorId
5031
- * @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
5292
+ * @param {string} handleId
5293
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5032
5294
  * @param {*} [options] Override http request option.
5033
5295
  * @throws {RequiredError}
5034
5296
  */
5035
- apiV1ContributorsContributorIdHandlesPost: function (contributorId, createContributorSnsHandleCommand, options) {
5297
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5036
5298
  if (options === void 0) { options = {}; }
5037
5299
  return __awaiter(_this, void 0, void 0, function () {
5038
5300
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5040,14 +5302,17 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5040
5302
  switch (_a.label) {
5041
5303
  case 0:
5042
5304
  // verify required parameter 'contributorId' is not null or undefined
5043
- common_1.assertParamExists('apiV1ContributorsContributorIdHandlesPost', 'contributorId', contributorId);
5044
- localVarPath = "/api/v1/contributors/{contributorId}/handles"
5045
- .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)));
5305
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'contributorId', contributorId);
5306
+ // verify required parameter 'handleId' is not null or undefined
5307
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesHandleIdPut', 'handleId', handleId);
5308
+ localVarPath = "/api/v1/contributors/{contributorId}/handles/{handleId}"
5309
+ .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)))
5310
+ .replace("{" + "handleId" + "}", encodeURIComponent(String(handleId)));
5046
5311
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5047
5312
  if (configuration) {
5048
5313
  baseOptions = configuration.baseOptions;
5049
5314
  }
5050
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5315
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5051
5316
  localVarHeaderParameter = {};
5052
5317
  localVarQueryParameter = {};
5053
5318
  // authentication oauth2 required
@@ -5061,7 +5326,7 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5061
5326
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5062
5327
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5063
5328
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5064
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createContributorSnsHandleCommand, localVarRequestOptions, configuration);
5329
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorSnsHandleCommand, localVarRequestOptions, configuration);
5065
5330
  return [2 /*return*/, {
5066
5331
  url: common_1.toPathString(localVarUrlObj),
5067
5332
  options: localVarRequestOptions,
@@ -5072,13 +5337,13 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5072
5337
  },
5073
5338
  /**
5074
5339
  *
5075
- * @summary Update Contributor.
5340
+ * @summary Get ContributorHandle.
5076
5341
  * @param {string} contributorId
5077
- * @param {UpdateContributorCommand} [updateContributorCommand]
5342
+ * @param {CreateContributorSnsHandleCommand} [createContributorSnsHandleCommand]
5078
5343
  * @param {*} [options] Override http request option.
5079
5344
  * @throws {RequiredError}
5080
5345
  */
5081
- apiV1ContributorsContributorIdPut: function (contributorId, updateContributorCommand, options) {
5346
+ apiV1ContributorsContributorIdHandlesPost: function (contributorId, createContributorSnsHandleCommand, options) {
5082
5347
  if (options === void 0) { options = {}; }
5083
5348
  return __awaiter(_this, void 0, void 0, function () {
5084
5349
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -5086,14 +5351,14 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5086
5351
  switch (_a.label) {
5087
5352
  case 0:
5088
5353
  // verify required parameter 'contributorId' is not null or undefined
5089
- common_1.assertParamExists('apiV1ContributorsContributorIdPut', 'contributorId', contributorId);
5090
- localVarPath = "/api/v1/contributors/{contributorId}"
5354
+ common_1.assertParamExists('apiV1ContributorsContributorIdHandlesPost', 'contributorId', contributorId);
5355
+ localVarPath = "/api/v1/contributors/{contributorId}/handles"
5091
5356
  .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)));
5092
5357
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5093
5358
  if (configuration) {
5094
5359
  baseOptions = configuration.baseOptions;
5095
5360
  }
5096
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5361
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
5097
5362
  localVarHeaderParameter = {};
5098
5363
  localVarQueryParameter = {};
5099
5364
  // authentication oauth2 required
@@ -5107,7 +5372,7 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5107
5372
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5108
5373
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5109
5374
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5110
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorCommand, localVarRequestOptions, configuration);
5375
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createContributorSnsHandleCommand, localVarRequestOptions, configuration);
5111
5376
  return [2 /*return*/, {
5112
5377
  url: common_1.toPathString(localVarUrlObj),
5113
5378
  options: localVarRequestOptions,
@@ -5118,11 +5383,57 @@ exports.ContributorsApiAxiosParamCreator = function (configuration) {
5118
5383
  },
5119
5384
  /**
5120
5385
  *
5121
- * @summary Get all Contributors.
5122
- * @param {string} [id]
5123
- * @param {string} [name]
5124
- * @param {string} [email]
5125
- * @param {string} [description]
5386
+ * @summary Update Contributor.
5387
+ * @param {string} contributorId
5388
+ * @param {UpdateContributorCommand} [updateContributorCommand]
5389
+ * @param {*} [options] Override http request option.
5390
+ * @throws {RequiredError}
5391
+ */
5392
+ apiV1ContributorsContributorIdPut: function (contributorId, updateContributorCommand, options) {
5393
+ if (options === void 0) { options = {}; }
5394
+ return __awaiter(_this, void 0, void 0, function () {
5395
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
5396
+ return __generator(this, function (_a) {
5397
+ switch (_a.label) {
5398
+ case 0:
5399
+ // verify required parameter 'contributorId' is not null or undefined
5400
+ common_1.assertParamExists('apiV1ContributorsContributorIdPut', 'contributorId', contributorId);
5401
+ localVarPath = "/api/v1/contributors/{contributorId}"
5402
+ .replace("{" + "contributorId" + "}", encodeURIComponent(String(contributorId)));
5403
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5404
+ if (configuration) {
5405
+ baseOptions = configuration.baseOptions;
5406
+ }
5407
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
5408
+ localVarHeaderParameter = {};
5409
+ localVarQueryParameter = {};
5410
+ // authentication oauth2 required
5411
+ // oauth required
5412
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
5413
+ case 1:
5414
+ // authentication oauth2 required
5415
+ // oauth required
5416
+ _a.sent();
5417
+ localVarHeaderParameter['Content-Type'] = 'application/json';
5418
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
5419
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5420
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5421
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateContributorCommand, localVarRequestOptions, configuration);
5422
+ return [2 /*return*/, {
5423
+ url: common_1.toPathString(localVarUrlObj),
5424
+ options: localVarRequestOptions,
5425
+ }];
5426
+ }
5427
+ });
5428
+ });
5429
+ },
5430
+ /**
5431
+ *
5432
+ * @summary Get all Contributors.
5433
+ * @param {string} [id]
5434
+ * @param {string} [name]
5435
+ * @param {string} [email]
5436
+ * @param {string} [description]
5126
5437
  * @param {string} [website]
5127
5438
  * @param {string} [languageCode]
5128
5439
  * @param {string} [hospitalId]
@@ -5413,6 +5724,28 @@ exports.ContributorsApiFp = function (configuration) {
5413
5724
  });
5414
5725
  });
5415
5726
  },
5727
+ /**
5728
+ *
5729
+ * @summary Update ContributorHandle.
5730
+ * @param {string} contributorId
5731
+ * @param {string} handleId
5732
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5733
+ * @param {*} [options] Override http request option.
5734
+ * @throws {RequiredError}
5735
+ */
5736
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5737
+ return __awaiter(this, void 0, void 0, function () {
5738
+ var localVarAxiosArgs;
5739
+ return __generator(this, function (_a) {
5740
+ switch (_a.label) {
5741
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options)];
5742
+ case 1:
5743
+ localVarAxiosArgs = _a.sent();
5744
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
5745
+ }
5746
+ });
5747
+ });
5748
+ },
5416
5749
  /**
5417
5750
  *
5418
5751
  * @summary Get ContributorHandle.
@@ -5596,6 +5929,18 @@ exports.ContributorsApiFactory = function (configuration, basePath, axios) {
5596
5929
  apiV1ContributorsContributorIdHandlesHandleIdGet: function (contributorId, handleId, options) {
5597
5930
  return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(axios, basePath); });
5598
5931
  },
5932
+ /**
5933
+ *
5934
+ * @summary Update ContributorHandle.
5935
+ * @param {string} contributorId
5936
+ * @param {string} handleId
5937
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
5938
+ * @param {*} [options] Override http request option.
5939
+ * @throws {RequiredError}
5940
+ */
5941
+ apiV1ContributorsContributorIdHandlesHandleIdPut: function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
5942
+ return localVarFp.apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(axios, basePath); });
5943
+ },
5599
5944
  /**
5600
5945
  *
5601
5946
  * @summary Get ContributorHandle.
@@ -5743,6 +6088,20 @@ var ContributorsApi = /** @class */ (function (_super) {
5743
6088
  var _this = this;
5744
6089
  return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdGet(contributorId, handleId, options).then(function (request) { return request(_this.axios, _this.basePath); });
5745
6090
  };
6091
+ /**
6092
+ *
6093
+ * @summary Update ContributorHandle.
6094
+ * @param {string} contributorId
6095
+ * @param {string} handleId
6096
+ * @param {UpdateContributorSnsHandleCommand} [updateContributorSnsHandleCommand]
6097
+ * @param {*} [options] Override http request option.
6098
+ * @throws {RequiredError}
6099
+ * @memberof ContributorsApi
6100
+ */
6101
+ ContributorsApi.prototype.apiV1ContributorsContributorIdHandlesHandleIdPut = function (contributorId, handleId, updateContributorSnsHandleCommand, options) {
6102
+ var _this = this;
6103
+ return exports.ContributorsApiFp(this.configuration).apiV1ContributorsContributorIdHandlesHandleIdPut(contributorId, handleId, updateContributorSnsHandleCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
6104
+ };
5746
6105
  /**
5747
6106
  *
5748
6107
  * @summary Get ContributorHandle.
@@ -9892,7 +10251,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9892
10251
  *
9893
10252
  * @summary Get All DoctorSpecialties.
9894
10253
  * @param {string} doctorId
9895
- * @param {string} [doctorId2]
9896
10254
  * @param {string} [doctorName]
9897
10255
  * @param {string} [specialtyId]
9898
10256
  * @param {string} [specialtyName]
@@ -9902,7 +10260,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9902
10260
  * @param {*} [options] Override http request option.
9903
10261
  * @throws {RequiredError}
9904
10262
  */
9905
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
10263
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
9906
10264
  if (options === void 0) { options = {}; }
9907
10265
  return __awaiter(_this, void 0, void 0, function () {
9908
10266
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -9927,9 +10285,6 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9927
10285
  // authentication oauth2 required
9928
10286
  // oauth required
9929
10287
  _a.sent();
9930
- if (doctorId2 !== undefined) {
9931
- localVarQueryParameter['DoctorId'] = doctorId2;
9932
- }
9933
10288
  if (doctorName !== undefined) {
9934
10289
  localVarQueryParameter['DoctorName'] = doctorName;
9935
10290
  }
@@ -9961,6 +10316,52 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
9961
10316
  });
9962
10317
  });
9963
10318
  },
10319
+ /**
10320
+ *
10321
+ * @summary Link a doctor to a specialty.
10322
+ * @param {string} doctorId
10323
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
10324
+ * @param {*} [options] Override http request option.
10325
+ * @throws {RequiredError}
10326
+ */
10327
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
10328
+ if (options === void 0) { options = {}; }
10329
+ return __awaiter(_this, void 0, void 0, function () {
10330
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
10331
+ return __generator(this, function (_a) {
10332
+ switch (_a.label) {
10333
+ case 0:
10334
+ // verify required parameter 'doctorId' is not null or undefined
10335
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesPost', 'doctorId', doctorId);
10336
+ localVarPath = "/api/v1/doctors/{doctorId}/specialties"
10337
+ .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
10338
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
10339
+ if (configuration) {
10340
+ baseOptions = configuration.baseOptions;
10341
+ }
10342
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10343
+ localVarHeaderParameter = {};
10344
+ localVarQueryParameter = {};
10345
+ // authentication oauth2 required
10346
+ // oauth required
10347
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
10348
+ case 1:
10349
+ // authentication oauth2 required
10350
+ // oauth required
10351
+ _a.sent();
10352
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10353
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10354
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10355
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10356
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createDoctorSpecialtyCommand, localVarRequestOptions, configuration);
10357
+ return [2 /*return*/, {
10358
+ url: common_1.toPathString(localVarUrlObj),
10359
+ options: localVarRequestOptions,
10360
+ }];
10361
+ }
10362
+ });
10363
+ });
10364
+ },
9964
10365
  /**
9965
10366
  *
9966
10367
  * @summary Remove link between the doctor and the specialty.
@@ -10057,13 +10458,14 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10057
10458
  },
10058
10459
  /**
10059
10460
  *
10060
- * @summary Link a doctor to a specialty.
10461
+ * @summary Update DoctorSpecialty.
10061
10462
  * @param {string} doctorId
10062
10463
  * @param {string} specialtyId
10464
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
10063
10465
  * @param {*} [options] Override http request option.
10064
10466
  * @throws {RequiredError}
10065
10467
  */
10066
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
10468
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
10067
10469
  if (options === void 0) { options = {}; }
10068
10470
  return __awaiter(_this, void 0, void 0, function () {
10069
10471
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -10071,9 +10473,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10071
10473
  switch (_a.label) {
10072
10474
  case 0:
10073
10475
  // verify required parameter 'doctorId' is not null or undefined
10074
- common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost', 'doctorId', doctorId);
10476
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'doctorId', doctorId);
10075
10477
  // verify required parameter 'specialtyId' is not null or undefined
10076
- common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost', 'specialtyId', specialtyId);
10478
+ common_1.assertParamExists('apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
10077
10479
  localVarPath = "/api/v1/doctors/{doctorId}/specialties/{specialtyId}"
10078
10480
  .replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)))
10079
10481
  .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
@@ -10081,7 +10483,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10081
10483
  if (configuration) {
10082
10484
  baseOptions = configuration.baseOptions;
10083
10485
  }
10084
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
10486
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
10085
10487
  localVarHeaderParameter = {};
10086
10488
  localVarQueryParameter = {};
10087
10489
  // authentication oauth2 required
@@ -10091,9 +10493,11 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
10091
10493
  // authentication oauth2 required
10092
10494
  // oauth required
10093
10495
  _a.sent();
10496
+ localVarHeaderParameter['Content-Type'] = 'application/json';
10094
10497
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
10095
10498
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
10096
10499
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
10500
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateDoctorSpecialtyCommand, localVarRequestOptions, configuration);
10097
10501
  return [2 /*return*/, {
10098
10502
  url: common_1.toPathString(localVarUrlObj),
10099
10503
  options: localVarRequestOptions,
@@ -10878,7 +11282,6 @@ exports.DoctorsApiFp = function (configuration) {
10878
11282
  *
10879
11283
  * @summary Get All DoctorSpecialties.
10880
11284
  * @param {string} doctorId
10881
- * @param {string} [doctorId2]
10882
11285
  * @param {string} [doctorName]
10883
11286
  * @param {string} [specialtyId]
10884
11287
  * @param {string} [specialtyName]
@@ -10888,12 +11291,33 @@ exports.DoctorsApiFp = function (configuration) {
10888
11291
  * @param {*} [options] Override http request option.
10889
11292
  * @throws {RequiredError}
10890
11293
  */
10891
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11294
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11295
+ return __awaiter(this, void 0, void 0, function () {
11296
+ var localVarAxiosArgs;
11297
+ return __generator(this, function (_a) {
11298
+ switch (_a.label) {
11299
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
11300
+ case 1:
11301
+ localVarAxiosArgs = _a.sent();
11302
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
11303
+ }
11304
+ });
11305
+ });
11306
+ },
11307
+ /**
11308
+ *
11309
+ * @summary Link a doctor to a specialty.
11310
+ * @param {string} doctorId
11311
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
11312
+ * @param {*} [options] Override http request option.
11313
+ * @throws {RequiredError}
11314
+ */
11315
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
10892
11316
  return __awaiter(this, void 0, void 0, function () {
10893
11317
  var localVarAxiosArgs;
10894
11318
  return __generator(this, function (_a) {
10895
11319
  switch (_a.label) {
10896
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options)];
11320
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options)];
10897
11321
  case 1:
10898
11322
  localVarAxiosArgs = _a.sent();
10899
11323
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -10945,18 +11369,19 @@ exports.DoctorsApiFp = function (configuration) {
10945
11369
  },
10946
11370
  /**
10947
11371
  *
10948
- * @summary Link a doctor to a specialty.
11372
+ * @summary Update DoctorSpecialty.
10949
11373
  * @param {string} doctorId
10950
11374
  * @param {string} specialtyId
11375
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
10951
11376
  * @param {*} [options] Override http request option.
10952
11377
  * @throws {RequiredError}
10953
11378
  */
10954
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
11379
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
10955
11380
  return __awaiter(this, void 0, void 0, function () {
10956
11381
  var localVarAxiosArgs;
10957
11382
  return __generator(this, function (_a) {
10958
11383
  switch (_a.label) {
10959
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options)];
11384
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options)];
10960
11385
  case 1:
10961
11386
  localVarAxiosArgs = _a.sent();
10962
11387
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -11359,7 +11784,6 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11359
11784
  *
11360
11785
  * @summary Get All DoctorSpecialties.
11361
11786
  * @param {string} doctorId
11362
- * @param {string} [doctorId2]
11363
11787
  * @param {string} [doctorName]
11364
11788
  * @param {string} [specialtyId]
11365
11789
  * @param {string} [specialtyName]
@@ -11369,8 +11793,19 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11369
11793
  * @param {*} [options] Override http request option.
11370
11794
  * @throws {RequiredError}
11371
11795
  */
11372
- apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11373
- return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11796
+ apiV1DoctorsDoctorIdSpecialtiesGet: function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
11797
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
11798
+ },
11799
+ /**
11800
+ *
11801
+ * @summary Link a doctor to a specialty.
11802
+ * @param {string} doctorId
11803
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
11804
+ * @param {*} [options] Override http request option.
11805
+ * @throws {RequiredError}
11806
+ */
11807
+ apiV1DoctorsDoctorIdSpecialtiesPost: function (doctorId, createDoctorSpecialtyCommand, options) {
11808
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
11374
11809
  },
11375
11810
  /**
11376
11811
  *
@@ -11396,14 +11831,15 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
11396
11831
  },
11397
11832
  /**
11398
11833
  *
11399
- * @summary Link a doctor to a specialty.
11834
+ * @summary Update DoctorSpecialty.
11400
11835
  * @param {string} doctorId
11401
11836
  * @param {string} specialtyId
11837
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
11402
11838
  * @param {*} [options] Override http request option.
11403
11839
  * @throws {RequiredError}
11404
11840
  */
11405
- apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost: function (doctorId, specialtyId, options) {
11406
- return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options).then(function (request) { return request(axios, basePath); });
11841
+ apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut: function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
11842
+ return localVarFp.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
11407
11843
  },
11408
11844
  /**
11409
11845
  *
@@ -11824,7 +12260,6 @@ var DoctorsApi = /** @class */ (function (_super) {
11824
12260
  *
11825
12261
  * @summary Get All DoctorSpecialties.
11826
12262
  * @param {string} doctorId
11827
- * @param {string} [doctorId2]
11828
12263
  * @param {string} [doctorName]
11829
12264
  * @param {string} [specialtyId]
11830
12265
  * @param {string} [specialtyName]
@@ -11835,9 +12270,22 @@ var DoctorsApi = /** @class */ (function (_super) {
11835
12270
  * @throws {RequiredError}
11836
12271
  * @memberof DoctorsApi
11837
12272
  */
11838
- DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
12273
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesGet = function (doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options) {
12274
+ var _this = this;
12275
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12276
+ };
12277
+ /**
12278
+ *
12279
+ * @summary Link a doctor to a specialty.
12280
+ * @param {string} doctorId
12281
+ * @param {CreateDoctorSpecialtyCommand} [createDoctorSpecialtyCommand]
12282
+ * @param {*} [options] Override http request option.
12283
+ * @throws {RequiredError}
12284
+ * @memberof DoctorsApi
12285
+ */
12286
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesPost = function (doctorId, createDoctorSpecialtyCommand, options) {
11839
12287
  var _this = this;
11840
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesGet(doctorId, doctorId2, doctorName, specialtyId, specialtyName, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
12288
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesPost(doctorId, createDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11841
12289
  };
11842
12290
  /**
11843
12291
  *
@@ -11867,16 +12315,17 @@ var DoctorsApi = /** @class */ (function (_super) {
11867
12315
  };
11868
12316
  /**
11869
12317
  *
11870
- * @summary Link a doctor to a specialty.
12318
+ * @summary Update DoctorSpecialty.
11871
12319
  * @param {string} doctorId
11872
12320
  * @param {string} specialtyId
12321
+ * @param {UpdateDoctorSpecialtyCommand} [updateDoctorSpecialtyCommand]
11873
12322
  * @param {*} [options] Override http request option.
11874
12323
  * @throws {RequiredError}
11875
12324
  * @memberof DoctorsApi
11876
12325
  */
11877
- DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost = function (doctorId, specialtyId, options) {
12326
+ DoctorsApi.prototype.apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut = function (doctorId, specialtyId, updateDoctorSpecialtyCommand, options) {
11878
12327
  var _this = this;
11879
- return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPost(doctorId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
12328
+ return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdSpecialtiesSpecialtyIdPut(doctorId, specialtyId, updateDoctorSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11880
12329
  };
11881
12330
  /**
11882
12331
  *
@@ -13409,38 +13858,32 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13409
13858
  },
13410
13859
  /**
13411
13860
  *
13412
- * @summary Get all HospitalServices.
13413
- * @param {string} hospitalId2
13414
- * @param {string} [id]
13415
- * @param {string} [name]
13416
- * @param {string} [description]
13417
- * @param {string} [hospitalId]
13861
+ * @summary Get all HospitalSpecialties.
13862
+ * @param {string} hospitalId
13418
13863
  * @param {string} [hospitalName]
13419
13864
  * @param {string} [hospitalSlug]
13420
13865
  * @param {string} [specialtyId]
13866
+ * @param {string} [specialtyName]
13421
13867
  * @param {string} [specialtyTypeId]
13422
- * @param {string} [specialtyTypeName]
13423
13868
  * @param {MarketingType} [marketingType]
13424
- * @param {Procedure} [procedure]
13425
13869
  * @param {Date} [created]
13426
- * @param {string} [languageCode]
13427
13870
  * @param {number} [page]
13428
13871
  * @param {number} [limit]
13429
13872
  * @param {Date} [lastRetrieved]
13430
13873
  * @param {*} [options] Override http request option.
13431
13874
  * @throws {RequiredError}
13432
13875
  */
13433
- apiV1HospitalsHospitalIdServicesGet: function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
13876
+ apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
13434
13877
  if (options === void 0) { options = {}; }
13435
13878
  return __awaiter(_this, void 0, void 0, function () {
13436
13879
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13437
13880
  return __generator(this, function (_a) {
13438
13881
  switch (_a.label) {
13439
13882
  case 0:
13440
- // verify required parameter 'hospitalId2' is not null or undefined
13441
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesGet', 'hospitalId2', hospitalId2);
13442
- localVarPath = "/api/v1/hospitals/{hospitalId}/services"
13443
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId2)));
13883
+ // verify required parameter 'hospitalId' is not null or undefined
13884
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesGet', 'hospitalId', hospitalId);
13885
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13886
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
13444
13887
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13445
13888
  if (configuration) {
13446
13889
  baseOptions = configuration.baseOptions;
@@ -13455,18 +13898,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13455
13898
  // authentication oauth2 required
13456
13899
  // oauth required
13457
13900
  _a.sent();
13458
- if (id !== undefined) {
13459
- localVarQueryParameter['Id'] = id;
13460
- }
13461
- if (name !== undefined) {
13462
- localVarQueryParameter['Name'] = name;
13463
- }
13464
- if (description !== undefined) {
13465
- localVarQueryParameter['Description'] = description;
13466
- }
13467
- if (hospitalId !== undefined) {
13468
- localVarQueryParameter['HospitalId'] = hospitalId;
13469
- }
13470
13901
  if (hospitalName !== undefined) {
13471
13902
  localVarQueryParameter['HospitalName'] = hospitalName;
13472
13903
  }
@@ -13476,26 +13907,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13476
13907
  if (specialtyId !== undefined) {
13477
13908
  localVarQueryParameter['SpecialtyId'] = specialtyId;
13478
13909
  }
13910
+ if (specialtyName !== undefined) {
13911
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
13912
+ }
13479
13913
  if (specialtyTypeId !== undefined) {
13480
13914
  localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
13481
13915
  }
13482
- if (specialtyTypeName !== undefined) {
13483
- localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
13484
- }
13485
13916
  if (marketingType !== undefined) {
13486
13917
  localVarQueryParameter['MarketingType'] = marketingType;
13487
13918
  }
13488
- if (procedure !== undefined) {
13489
- localVarQueryParameter['Procedure'] = procedure;
13490
- }
13491
13919
  if (created !== undefined) {
13492
13920
  localVarQueryParameter['Created'] = (created instanceof Date) ?
13493
13921
  created.toISOString() :
13494
13922
  created;
13495
13923
  }
13496
- if (languageCode !== undefined) {
13497
- localVarQueryParameter['LanguageCode'] = languageCode;
13498
- }
13499
13924
  if (page !== undefined) {
13500
13925
  localVarQueryParameter['page'] = page;
13501
13926
  }
@@ -13520,13 +13945,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13520
13945
  },
13521
13946
  /**
13522
13947
  *
13523
- * @summary Create HospitalService.
13948
+ * @summary Create HospitalSpecialty.
13524
13949
  * @param {string} hospitalId
13525
- * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
13950
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
13526
13951
  * @param {*} [options] Override http request option.
13527
13952
  * @throws {RequiredError}
13528
13953
  */
13529
- apiV1HospitalsHospitalIdServicesPost: function (hospitalId, createHospitalServiceCommand, options) {
13954
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
13530
13955
  if (options === void 0) { options = {}; }
13531
13956
  return __awaiter(_this, void 0, void 0, function () {
13532
13957
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13534,8 +13959,8 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13534
13959
  switch (_a.label) {
13535
13960
  case 0:
13536
13961
  // verify required parameter 'hospitalId' is not null or undefined
13537
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesPost', 'hospitalId', hospitalId);
13538
- localVarPath = "/api/v1/hospitals/{hospitalId}/services"
13962
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId);
13963
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13539
13964
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
13540
13965
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13541
13966
  if (configuration) {
@@ -13555,7 +13980,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13555
13980
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13556
13981
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13557
13982
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13558
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
13983
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
13559
13984
  return [2 /*return*/, {
13560
13985
  url: common_1.toPathString(localVarUrlObj),
13561
13986
  options: localVarRequestOptions,
@@ -13566,13 +13991,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13566
13991
  },
13567
13992
  /**
13568
13993
  *
13569
- * @summary Delete HospitalService
13994
+ * @summary Delete HospitalSpecialty.
13570
13995
  * @param {string} hospitalId
13571
- * @param {string} serviceId
13996
+ * @param {string} specialtyId
13572
13997
  * @param {*} [options] Override http request option.
13573
13998
  * @throws {RequiredError}
13574
13999
  */
13575
- apiV1HospitalsHospitalIdServicesServiceIdDelete: function (hospitalId, serviceId, options) {
14000
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
13576
14001
  if (options === void 0) { options = {}; }
13577
14002
  return __awaiter(_this, void 0, void 0, function () {
13578
14003
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13580,12 +14005,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13580
14005
  switch (_a.label) {
13581
14006
  case 0:
13582
14007
  // verify required parameter 'hospitalId' is not null or undefined
13583
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdDelete', 'hospitalId', hospitalId);
13584
- // verify required parameter 'serviceId' is not null or undefined
13585
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdDelete', 'serviceId', serviceId);
13586
- localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
14008
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
14009
+ // verify required parameter 'specialtyId' is not null or undefined
14010
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
14011
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
13587
14012
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13588
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14013
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13589
14014
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13590
14015
  if (configuration) {
13591
14016
  baseOptions = configuration.baseOptions;
@@ -13613,14 +14038,13 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13613
14038
  },
13614
14039
  /**
13615
14040
  *
13616
- * @summary Get HospitalService.
14041
+ * @summary Get HospitalSpecialty.
13617
14042
  * @param {string} hospitalId
13618
- * @param {string} serviceId
13619
- * @param {string} [languageCode]
14043
+ * @param {string} specialtyId
13620
14044
  * @param {*} [options] Override http request option.
13621
14045
  * @throws {RequiredError}
13622
14046
  */
13623
- apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, options) {
14047
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
13624
14048
  if (options === void 0) { options = {}; }
13625
14049
  return __awaiter(_this, void 0, void 0, function () {
13626
14050
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13628,12 +14052,12 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13628
14052
  switch (_a.label) {
13629
14053
  case 0:
13630
14054
  // verify required parameter 'hospitalId' is not null or undefined
13631
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdGet', 'hospitalId', hospitalId);
13632
- // verify required parameter 'serviceId' is not null or undefined
13633
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdGet', 'serviceId', serviceId);
13634
- localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
14055
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
14056
+ // verify required parameter 'specialtyId' is not null or undefined
14057
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
14058
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
13635
14059
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13636
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14060
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
13637
14061
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13638
14062
  if (configuration) {
13639
14063
  baseOptions = configuration.baseOptions;
@@ -13648,9 +14072,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13648
14072
  // authentication oauth2 required
13649
14073
  // oauth required
13650
14074
  _a.sent();
13651
- if (languageCode !== undefined) {
13652
- localVarQueryParameter['languageCode'] = languageCode;
13653
- }
13654
14075
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13655
14076
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13656
14077
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13664,14 +14085,409 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13664
14085
  },
13665
14086
  /**
13666
14087
  *
13667
- * @summary Update HospitalService.
14088
+ * @summary Update HospitalSpecialty.
14089
+ * @param {string} hospitalId
14090
+ * @param {string} specialtyId
14091
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
14092
+ * @param {*} [options] Override http request option.
14093
+ * @throws {RequiredError}
14094
+ */
14095
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
14096
+ if (options === void 0) { options = {}; }
14097
+ return __awaiter(_this, void 0, void 0, function () {
14098
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14099
+ return __generator(this, function (_a) {
14100
+ switch (_a.label) {
14101
+ case 0:
14102
+ // verify required parameter 'hospitalId' is not null or undefined
14103
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'hospitalId', hospitalId);
14104
+ // verify required parameter 'specialtyId' is not null or undefined
14105
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
14106
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
14107
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14108
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14109
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14110
+ if (configuration) {
14111
+ baseOptions = configuration.baseOptions;
14112
+ }
14113
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14114
+ localVarHeaderParameter = {};
14115
+ localVarQueryParameter = {};
14116
+ // authentication oauth2 required
14117
+ // oauth required
14118
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14119
+ case 1:
14120
+ // authentication oauth2 required
14121
+ // oauth required
14122
+ _a.sent();
14123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14124
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14125
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14126
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14127
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalSpecialtyCommand, localVarRequestOptions, configuration);
14128
+ return [2 /*return*/, {
14129
+ url: common_1.toPathString(localVarUrlObj),
14130
+ options: localVarRequestOptions,
14131
+ }];
14132
+ }
14133
+ });
14134
+ });
14135
+ },
14136
+ /**
14137
+ *
14138
+ * @summary Get all HospitalServices.
14139
+ * @param {string} hospitalId
14140
+ * @param {string} specialtyId
14141
+ * @param {string} [hospitalName]
14142
+ * @param {string} [hospitalSlug]
14143
+ * @param {string} [id]
14144
+ * @param {string} [name]
14145
+ * @param {string} [description]
14146
+ * @param {string} [specialtyName]
14147
+ * @param {string} [specialtyTypeId]
14148
+ * @param {string} [specialtyTypeName]
14149
+ * @param {string} [serviceCategoryId]
14150
+ * @param {MarketingType} [marketingType]
14151
+ * @param {Procedure} [procedure]
14152
+ * @param {Date} [created]
14153
+ * @param {string} [languageCode]
14154
+ * @param {number} [page]
14155
+ * @param {number} [limit]
14156
+ * @param {Date} [lastRetrieved]
14157
+ * @param {*} [options] Override http request option.
14158
+ * @throws {RequiredError}
14159
+ */
14160
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
14161
+ if (options === void 0) { options = {}; }
14162
+ return __awaiter(_this, void 0, void 0, function () {
14163
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14164
+ return __generator(this, function (_a) {
14165
+ switch (_a.label) {
14166
+ case 0:
14167
+ // verify required parameter 'hospitalId' is not null or undefined
14168
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'hospitalId', hospitalId);
14169
+ // verify required parameter 'specialtyId' is not null or undefined
14170
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet', 'specialtyId', specialtyId);
14171
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
14172
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14173
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14174
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14175
+ if (configuration) {
14176
+ baseOptions = configuration.baseOptions;
14177
+ }
14178
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14179
+ localVarHeaderParameter = {};
14180
+ localVarQueryParameter = {};
14181
+ // authentication oauth2 required
14182
+ // oauth required
14183
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14184
+ case 1:
14185
+ // authentication oauth2 required
14186
+ // oauth required
14187
+ _a.sent();
14188
+ if (hospitalName !== undefined) {
14189
+ localVarQueryParameter['HospitalName'] = hospitalName;
14190
+ }
14191
+ if (hospitalSlug !== undefined) {
14192
+ localVarQueryParameter['HospitalSlug'] = hospitalSlug;
14193
+ }
14194
+ if (id !== undefined) {
14195
+ localVarQueryParameter['Id'] = id;
14196
+ }
14197
+ if (name !== undefined) {
14198
+ localVarQueryParameter['Name'] = name;
14199
+ }
14200
+ if (description !== undefined) {
14201
+ localVarQueryParameter['Description'] = description;
14202
+ }
14203
+ if (specialtyName !== undefined) {
14204
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
14205
+ }
14206
+ if (specialtyTypeId !== undefined) {
14207
+ localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
14208
+ }
14209
+ if (specialtyTypeName !== undefined) {
14210
+ localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
14211
+ }
14212
+ if (serviceCategoryId !== undefined) {
14213
+ localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
14214
+ }
14215
+ if (marketingType !== undefined) {
14216
+ localVarQueryParameter['MarketingType'] = marketingType;
14217
+ }
14218
+ if (procedure !== undefined) {
14219
+ localVarQueryParameter['Procedure'] = procedure;
14220
+ }
14221
+ if (created !== undefined) {
14222
+ localVarQueryParameter['Created'] = (created instanceof Date) ?
14223
+ created.toISOString() :
14224
+ created;
14225
+ }
14226
+ if (languageCode !== undefined) {
14227
+ localVarQueryParameter['LanguageCode'] = languageCode;
14228
+ }
14229
+ if (page !== undefined) {
14230
+ localVarQueryParameter['page'] = page;
14231
+ }
14232
+ if (limit !== undefined) {
14233
+ localVarQueryParameter['limit'] = limit;
14234
+ }
14235
+ if (lastRetrieved !== undefined) {
14236
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14237
+ lastRetrieved.toISOString() :
14238
+ lastRetrieved;
14239
+ }
14240
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14241
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14242
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14243
+ return [2 /*return*/, {
14244
+ url: common_1.toPathString(localVarUrlObj),
14245
+ options: localVarRequestOptions,
14246
+ }];
14247
+ }
14248
+ });
14249
+ });
14250
+ },
14251
+ /**
14252
+ *
14253
+ * @summary Create HospitalService.
14254
+ * @param {string} hospitalId
14255
+ * @param {string} specialtyId
14256
+ * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
14257
+ * @param {*} [options] Override http request option.
14258
+ * @throws {RequiredError}
14259
+ */
14260
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
14261
+ if (options === void 0) { options = {}; }
14262
+ return __awaiter(_this, void 0, void 0, function () {
14263
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14264
+ return __generator(this, function (_a) {
14265
+ switch (_a.label) {
14266
+ case 0:
14267
+ // verify required parameter 'hospitalId' is not null or undefined
14268
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'hospitalId', hospitalId);
14269
+ // verify required parameter 'specialtyId' is not null or undefined
14270
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost', 'specialtyId', specialtyId);
14271
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services"
14272
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14273
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14274
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14275
+ if (configuration) {
14276
+ baseOptions = configuration.baseOptions;
14277
+ }
14278
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14279
+ localVarHeaderParameter = {};
14280
+ localVarQueryParameter = {};
14281
+ // authentication oauth2 required
14282
+ // oauth required
14283
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14284
+ case 1:
14285
+ // authentication oauth2 required
14286
+ // oauth required
14287
+ _a.sent();
14288
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14289
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14290
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14291
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14292
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalServiceCommand, localVarRequestOptions, configuration);
14293
+ return [2 /*return*/, {
14294
+ url: common_1.toPathString(localVarUrlObj),
14295
+ options: localVarRequestOptions,
14296
+ }];
14297
+ }
14298
+ });
14299
+ });
14300
+ },
14301
+ /**
14302
+ *
14303
+ * @summary Delete HospitalService
14304
+ * @param {string} hospitalId
14305
+ * @param {string} specialtyId
14306
+ * @param {string} serviceId
14307
+ * @param {*} [options] Override http request option.
14308
+ * @throws {RequiredError}
14309
+ */
14310
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
14311
+ if (options === void 0) { options = {}; }
14312
+ return __awaiter(_this, void 0, void 0, function () {
14313
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14314
+ return __generator(this, function (_a) {
14315
+ switch (_a.label) {
14316
+ case 0:
14317
+ // verify required parameter 'hospitalId' is not null or undefined
14318
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'hospitalId', hospitalId);
14319
+ // verify required parameter 'specialtyId' is not null or undefined
14320
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'specialtyId', specialtyId);
14321
+ // verify required parameter 'serviceId' is not null or undefined
14322
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete', 'serviceId', serviceId);
14323
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
14324
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14325
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14326
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14327
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14328
+ if (configuration) {
14329
+ baseOptions = configuration.baseOptions;
14330
+ }
14331
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14332
+ localVarHeaderParameter = {};
14333
+ localVarQueryParameter = {};
14334
+ // authentication oauth2 required
14335
+ // oauth required
14336
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14337
+ case 1:
14338
+ // authentication oauth2 required
14339
+ // oauth required
14340
+ _a.sent();
14341
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14342
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14343
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14344
+ return [2 /*return*/, {
14345
+ url: common_1.toPathString(localVarUrlObj),
14346
+ options: localVarRequestOptions,
14347
+ }];
14348
+ }
14349
+ });
14350
+ });
14351
+ },
14352
+ /**
14353
+ *
14354
+ * @summary Get HospitalService.
14355
+ * @param {string} hospitalId
14356
+ * @param {string} specialtyId
14357
+ * @param {string} serviceId
14358
+ * @param {string} [languageCode]
14359
+ * @param {*} [options] Override http request option.
14360
+ * @throws {RequiredError}
14361
+ */
14362
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, options) {
14363
+ if (options === void 0) { options = {}; }
14364
+ return __awaiter(_this, void 0, void 0, function () {
14365
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14366
+ return __generator(this, function (_a) {
14367
+ switch (_a.label) {
14368
+ case 0:
14369
+ // verify required parameter 'hospitalId' is not null or undefined
14370
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'hospitalId', hospitalId);
14371
+ // verify required parameter 'specialtyId' is not null or undefined
14372
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'specialtyId', specialtyId);
14373
+ // verify required parameter 'serviceId' is not null or undefined
14374
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet', 'serviceId', serviceId);
14375
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
14376
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14377
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14378
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14379
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14380
+ if (configuration) {
14381
+ baseOptions = configuration.baseOptions;
14382
+ }
14383
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14384
+ localVarHeaderParameter = {};
14385
+ localVarQueryParameter = {};
14386
+ // authentication oauth2 required
14387
+ // oauth required
14388
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14389
+ case 1:
14390
+ // authentication oauth2 required
14391
+ // oauth required
14392
+ _a.sent();
14393
+ if (languageCode !== undefined) {
14394
+ localVarQueryParameter['languageCode'] = languageCode;
14395
+ }
14396
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14397
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14398
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14399
+ return [2 /*return*/, {
14400
+ url: common_1.toPathString(localVarUrlObj),
14401
+ options: localVarRequestOptions,
14402
+ }];
14403
+ }
14404
+ });
14405
+ });
14406
+ },
14407
+ /**
14408
+ *
14409
+ * @summary Get all HospitalServiceMedias.
14410
+ * @param {string} hospitalId
14411
+ * @param {string} specialtyId
14412
+ * @param {string} serviceId
14413
+ * @param {string} [id]
14414
+ * @param {MediaType} [mediaType]
14415
+ * @param {number} [page]
14416
+ * @param {number} [limit]
14417
+ * @param {Date} [lastRetrieved]
14418
+ * @param {*} [options] Override http request option.
14419
+ * @throws {RequiredError}
14420
+ */
14421
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet: function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
14422
+ if (options === void 0) { options = {}; }
14423
+ return __awaiter(_this, void 0, void 0, function () {
14424
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14425
+ return __generator(this, function (_a) {
14426
+ switch (_a.label) {
14427
+ case 0:
14428
+ // verify required parameter 'hospitalId' is not null or undefined
14429
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet', 'hospitalId', hospitalId);
14430
+ // verify required parameter 'specialtyId' is not null or undefined
14431
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet', 'specialtyId', specialtyId);
14432
+ // verify required parameter 'serviceId' is not null or undefined
14433
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet', 'serviceId', serviceId);
14434
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias"
14435
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14436
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14437
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14438
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14439
+ if (configuration) {
14440
+ baseOptions = configuration.baseOptions;
14441
+ }
14442
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14443
+ localVarHeaderParameter = {};
14444
+ localVarQueryParameter = {};
14445
+ // authentication oauth2 required
14446
+ // oauth required
14447
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
14448
+ case 1:
14449
+ // authentication oauth2 required
14450
+ // oauth required
14451
+ _a.sent();
14452
+ if (id !== undefined) {
14453
+ localVarQueryParameter['Id'] = id;
14454
+ }
14455
+ if (mediaType !== undefined) {
14456
+ localVarQueryParameter['MediaType'] = mediaType;
14457
+ }
14458
+ if (page !== undefined) {
14459
+ localVarQueryParameter['page'] = page;
14460
+ }
14461
+ if (limit !== undefined) {
14462
+ localVarQueryParameter['limit'] = limit;
14463
+ }
14464
+ if (lastRetrieved !== undefined) {
14465
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14466
+ lastRetrieved.toISOString() :
14467
+ lastRetrieved;
14468
+ }
14469
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14470
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14471
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14472
+ return [2 /*return*/, {
14473
+ url: common_1.toPathString(localVarUrlObj),
14474
+ options: localVarRequestOptions,
14475
+ }];
14476
+ }
14477
+ });
14478
+ });
14479
+ },
14480
+ /**
14481
+ *
14482
+ * @summary Delete HospitalServiceMedia
13668
14483
  * @param {string} hospitalId
14484
+ * @param {string} specialtyId
13669
14485
  * @param {string} serviceId
13670
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
14486
+ * @param {string} mediaId
13671
14487
  * @param {*} [options] Override http request option.
13672
14488
  * @throws {RequiredError}
13673
14489
  */
13674
- apiV1HospitalsHospitalIdServicesServiceIdPut: function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
14490
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete: function (hospitalId, specialtyId, serviceId, mediaId, options) {
13675
14491
  if (options === void 0) { options = {}; }
13676
14492
  return __awaiter(_this, void 0, void 0, function () {
13677
14493
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13679,17 +14495,23 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13679
14495
  switch (_a.label) {
13680
14496
  case 0:
13681
14497
  // verify required parameter 'hospitalId' is not null or undefined
13682
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdPut', 'hospitalId', hospitalId);
14498
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'hospitalId', hospitalId);
14499
+ // verify required parameter 'specialtyId' is not null or undefined
14500
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'specialtyId', specialtyId);
13683
14501
  // verify required parameter 'serviceId' is not null or undefined
13684
- common_1.assertParamExists('apiV1HospitalsHospitalIdServicesServiceIdPut', 'serviceId', serviceId);
13685
- localVarPath = "/api/v1/hospitals/{hospitalId}/services/{serviceId}"
14502
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'serviceId', serviceId);
14503
+ // verify required parameter 'mediaId' is not null or undefined
14504
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete', 'mediaId', mediaId);
14505
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias/{mediaId}"
13686
14506
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13687
- .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
14507
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14508
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)))
14509
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
13688
14510
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13689
14511
  if (configuration) {
13690
14512
  baseOptions = configuration.baseOptions;
13691
14513
  }
13692
- localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14514
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
13693
14515
  localVarHeaderParameter = {};
13694
14516
  localVarQueryParameter = {};
13695
14517
  // authentication oauth2 required
@@ -13699,11 +14521,9 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13699
14521
  // authentication oauth2 required
13700
14522
  // oauth required
13701
14523
  _a.sent();
13702
- localVarHeaderParameter['Content-Type'] = 'application/json';
13703
14524
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13704
14525
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13705
14526
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13706
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalServiceCommand, localVarRequestOptions, configuration);
13707
14527
  return [2 /*return*/, {
13708
14528
  url: common_1.toPathString(localVarUrlObj),
13709
14529
  options: localVarRequestOptions,
@@ -13714,22 +14534,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13714
14534
  },
13715
14535
  /**
13716
14536
  *
13717
- * @summary Get all HospitalSpecialties.
14537
+ * @summary Get HospitalServiceMedia.
13718
14538
  * @param {string} hospitalId
13719
- * @param {string} [hospitalName]
13720
- * @param {string} [hospitalSlug]
13721
- * @param {string} [specialtyId]
13722
- * @param {string} [specialtyName]
13723
- * @param {string} [specialtyTypeId]
13724
- * @param {MarketingType} [marketingType]
13725
- * @param {Date} [created]
13726
- * @param {number} [page]
13727
- * @param {number} [limit]
13728
- * @param {Date} [lastRetrieved]
14539
+ * @param {string} specialtyId
14540
+ * @param {string} serviceId
14541
+ * @param {string} mediaId
13729
14542
  * @param {*} [options] Override http request option.
13730
14543
  * @throws {RequiredError}
13731
14544
  */
13732
- apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
14545
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
13733
14546
  if (options === void 0) { options = {}; }
13734
14547
  return __awaiter(_this, void 0, void 0, function () {
13735
14548
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13737,9 +14550,18 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13737
14550
  switch (_a.label) {
13738
14551
  case 0:
13739
14552
  // verify required parameter 'hospitalId' is not null or undefined
13740
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesGet', 'hospitalId', hospitalId);
13741
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13742
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
14553
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'hospitalId', hospitalId);
14554
+ // verify required parameter 'specialtyId' is not null or undefined
14555
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'specialtyId', specialtyId);
14556
+ // verify required parameter 'serviceId' is not null or undefined
14557
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'serviceId', serviceId);
14558
+ // verify required parameter 'mediaId' is not null or undefined
14559
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet', 'mediaId', mediaId);
14560
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias/{mediaId}"
14561
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14562
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14563
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)))
14564
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
13743
14565
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13744
14566
  if (configuration) {
13745
14567
  baseOptions = configuration.baseOptions;
@@ -13754,40 +14576,6 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13754
14576
  // authentication oauth2 required
13755
14577
  // oauth required
13756
14578
  _a.sent();
13757
- if (hospitalName !== undefined) {
13758
- localVarQueryParameter['HospitalName'] = hospitalName;
13759
- }
13760
- if (hospitalSlug !== undefined) {
13761
- localVarQueryParameter['HospitalSlug'] = hospitalSlug;
13762
- }
13763
- if (specialtyId !== undefined) {
13764
- localVarQueryParameter['SpecialtyId'] = specialtyId;
13765
- }
13766
- if (specialtyName !== undefined) {
13767
- localVarQueryParameter['SpecialtyName'] = specialtyName;
13768
- }
13769
- if (specialtyTypeId !== undefined) {
13770
- localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
13771
- }
13772
- if (marketingType !== undefined) {
13773
- localVarQueryParameter['MarketingType'] = marketingType;
13774
- }
13775
- if (created !== undefined) {
13776
- localVarQueryParameter['Created'] = (created instanceof Date) ?
13777
- created.toISOString() :
13778
- created;
13779
- }
13780
- if (page !== undefined) {
13781
- localVarQueryParameter['page'] = page;
13782
- }
13783
- if (limit !== undefined) {
13784
- localVarQueryParameter['limit'] = limit;
13785
- }
13786
- if (lastRetrieved !== undefined) {
13787
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13788
- lastRetrieved.toISOString() :
13789
- lastRetrieved;
13790
- }
13791
14579
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13792
14580
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13793
14581
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -13801,13 +14589,16 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13801
14589
  },
13802
14590
  /**
13803
14591
  *
13804
- * @summary Create HospitalSpecialty.
14592
+ * @summary Update HospitalServiceMedia.
13805
14593
  * @param {string} hospitalId
13806
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
14594
+ * @param {string} specialtyId
14595
+ * @param {string} serviceId
14596
+ * @param {string} mediaId
14597
+ * @param {UpdateMediaCommand} [updateMediaCommand]
13807
14598
  * @param {*} [options] Override http request option.
13808
14599
  * @throws {RequiredError}
13809
14600
  */
13810
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
14601
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut: function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
13811
14602
  if (options === void 0) { options = {}; }
13812
14603
  return __awaiter(_this, void 0, void 0, function () {
13813
14604
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13815,14 +14606,23 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13815
14606
  switch (_a.label) {
13816
14607
  case 0:
13817
14608
  // verify required parameter 'hospitalId' is not null or undefined
13818
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesPost', 'hospitalId', hospitalId);
13819
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties"
13820
- .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
14609
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'hospitalId', hospitalId);
14610
+ // verify required parameter 'specialtyId' is not null or undefined
14611
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'specialtyId', specialtyId);
14612
+ // verify required parameter 'serviceId' is not null or undefined
14613
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'serviceId', serviceId);
14614
+ // verify required parameter 'mediaId' is not null or undefined
14615
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut', 'mediaId', mediaId);
14616
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias/{mediaId}"
14617
+ .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
14618
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14619
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)))
14620
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
13821
14621
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13822
14622
  if (configuration) {
13823
14623
  baseOptions = configuration.baseOptions;
13824
14624
  }
13825
- localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14625
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
13826
14626
  localVarHeaderParameter = {};
13827
14627
  localVarQueryParameter = {};
13828
14628
  // authentication oauth2 required
@@ -13836,7 +14636,7 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13836
14636
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13837
14637
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13838
14638
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13839
- localVarRequestOptions.data = common_1.serializeDataIfNeeded(createHospitalSpecialtyCommand, localVarRequestOptions, configuration);
14639
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
13840
14640
  return [2 /*return*/, {
13841
14641
  url: common_1.toPathString(localVarUrlObj),
13842
14642
  options: localVarRequestOptions,
@@ -13847,13 +14647,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13847
14647
  },
13848
14648
  /**
13849
14649
  *
13850
- * @summary Delete HospitalSpecialty.
14650
+ * @summary Create HospitalServiceMedia.
13851
14651
  * @param {string} hospitalId
13852
14652
  * @param {string} specialtyId
14653
+ * @param {string} serviceId
14654
+ * @param {CreateMediaCommand} [createMediaCommand]
13853
14655
  * @param {*} [options] Override http request option.
13854
14656
  * @throws {RequiredError}
13855
14657
  */
13856
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
14658
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
13857
14659
  if (options === void 0) { options = {}; }
13858
14660
  return __awaiter(_this, void 0, void 0, function () {
13859
14661
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13861,17 +14663,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13861
14663
  switch (_a.label) {
13862
14664
  case 0:
13863
14665
  // verify required parameter 'hospitalId' is not null or undefined
13864
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'hospitalId', hospitalId);
14666
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost', 'hospitalId', hospitalId);
13865
14667
  // verify required parameter 'specialtyId' is not null or undefined
13866
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete', 'specialtyId', specialtyId);
13867
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
14668
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost', 'specialtyId', specialtyId);
14669
+ // verify required parameter 'serviceId' is not null or undefined
14670
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost', 'serviceId', serviceId);
14671
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}/medias"
13868
14672
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13869
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14673
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14674
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
13870
14675
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13871
14676
  if (configuration) {
13872
14677
  baseOptions = configuration.baseOptions;
13873
14678
  }
13874
- localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14679
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
13875
14680
  localVarHeaderParameter = {};
13876
14681
  localVarQueryParameter = {};
13877
14682
  // authentication oauth2 required
@@ -13881,9 +14686,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13881
14686
  // authentication oauth2 required
13882
14687
  // oauth required
13883
14688
  _a.sent();
14689
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13884
14690
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13885
14691
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13886
14692
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14693
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
13887
14694
  return [2 /*return*/, {
13888
14695
  url: common_1.toPathString(localVarUrlObj),
13889
14696
  options: localVarRequestOptions,
@@ -13894,13 +14701,15 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13894
14701
  },
13895
14702
  /**
13896
14703
  *
13897
- * @summary Get HospitalSpecialty.
14704
+ * @summary Update HospitalService.
13898
14705
  * @param {string} hospitalId
13899
14706
  * @param {string} specialtyId
14707
+ * @param {string} serviceId
14708
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
13900
14709
  * @param {*} [options] Override http request option.
13901
14710
  * @throws {RequiredError}
13902
14711
  */
13903
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
14712
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut: function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
13904
14713
  if (options === void 0) { options = {}; }
13905
14714
  return __awaiter(_this, void 0, void 0, function () {
13906
14715
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -13908,17 +14717,20 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13908
14717
  switch (_a.label) {
13909
14718
  case 0:
13910
14719
  // verify required parameter 'hospitalId' is not null or undefined
13911
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'hospitalId', hospitalId);
14720
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut', 'hospitalId', hospitalId);
13912
14721
  // verify required parameter 'specialtyId' is not null or undefined
13913
- common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet', 'specialtyId', specialtyId);
13914
- localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}"
14722
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut', 'specialtyId', specialtyId);
14723
+ // verify required parameter 'serviceId' is not null or undefined
14724
+ common_1.assertParamExists('apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut', 'serviceId', serviceId);
14725
+ localVarPath = "/api/v1/hospitals/{hospitalId}/specialties/{specialtyId}/services/{serviceId}"
13915
14726
  .replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
13916
- .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
14727
+ .replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
14728
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
13917
14729
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13918
14730
  if (configuration) {
13919
14731
  baseOptions = configuration.baseOptions;
13920
14732
  }
13921
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14733
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
13922
14734
  localVarHeaderParameter = {};
13923
14735
  localVarQueryParameter = {};
13924
14736
  // authentication oauth2 required
@@ -13928,9 +14740,11 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
13928
14740
  // authentication oauth2 required
13929
14741
  // oauth required
13930
14742
  _a.sent();
14743
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13931
14744
  common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13932
14745
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13933
14746
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14747
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHospitalServiceCommand, localVarRequestOptions, configuration);
13934
14748
  return [2 /*return*/, {
13935
14749
  url: common_1.toPathString(localVarUrlObj),
13936
14750
  options: localVarRequestOptions,
@@ -14651,19 +15465,135 @@ exports.HospitalsApiFp = function (configuration) {
14651
15465
  });
14652
15466
  });
14653
15467
  },
15468
+ /**
15469
+ *
15470
+ * @summary Get all HospitalSpecialties.
15471
+ * @param {string} hospitalId
15472
+ * @param {string} [hospitalName]
15473
+ * @param {string} [hospitalSlug]
15474
+ * @param {string} [specialtyId]
15475
+ * @param {string} [specialtyName]
15476
+ * @param {string} [specialtyTypeId]
15477
+ * @param {MarketingType} [marketingType]
15478
+ * @param {Date} [created]
15479
+ * @param {number} [page]
15480
+ * @param {number} [limit]
15481
+ * @param {Date} [lastRetrieved]
15482
+ * @param {*} [options] Override http request option.
15483
+ * @throws {RequiredError}
15484
+ */
15485
+ apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
15486
+ return __awaiter(this, void 0, void 0, function () {
15487
+ var localVarAxiosArgs;
15488
+ return __generator(this, function (_a) {
15489
+ switch (_a.label) {
15490
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options)];
15491
+ case 1:
15492
+ localVarAxiosArgs = _a.sent();
15493
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15494
+ }
15495
+ });
15496
+ });
15497
+ },
15498
+ /**
15499
+ *
15500
+ * @summary Create HospitalSpecialty.
15501
+ * @param {string} hospitalId
15502
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
15503
+ * @param {*} [options] Override http request option.
15504
+ * @throws {RequiredError}
15505
+ */
15506
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
15507
+ return __awaiter(this, void 0, void 0, function () {
15508
+ var localVarAxiosArgs;
15509
+ return __generator(this, function (_a) {
15510
+ switch (_a.label) {
15511
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options)];
15512
+ case 1:
15513
+ localVarAxiosArgs = _a.sent();
15514
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15515
+ }
15516
+ });
15517
+ });
15518
+ },
15519
+ /**
15520
+ *
15521
+ * @summary Delete HospitalSpecialty.
15522
+ * @param {string} hospitalId
15523
+ * @param {string} specialtyId
15524
+ * @param {*} [options] Override http request option.
15525
+ * @throws {RequiredError}
15526
+ */
15527
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
15528
+ return __awaiter(this, void 0, void 0, function () {
15529
+ var localVarAxiosArgs;
15530
+ return __generator(this, function (_a) {
15531
+ switch (_a.label) {
15532
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options)];
15533
+ case 1:
15534
+ localVarAxiosArgs = _a.sent();
15535
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15536
+ }
15537
+ });
15538
+ });
15539
+ },
15540
+ /**
15541
+ *
15542
+ * @summary Get HospitalSpecialty.
15543
+ * @param {string} hospitalId
15544
+ * @param {string} specialtyId
15545
+ * @param {*} [options] Override http request option.
15546
+ * @throws {RequiredError}
15547
+ */
15548
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
15549
+ return __awaiter(this, void 0, void 0, function () {
15550
+ var localVarAxiosArgs;
15551
+ return __generator(this, function (_a) {
15552
+ switch (_a.label) {
15553
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options)];
15554
+ case 1:
15555
+ localVarAxiosArgs = _a.sent();
15556
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15557
+ }
15558
+ });
15559
+ });
15560
+ },
15561
+ /**
15562
+ *
15563
+ * @summary Update HospitalSpecialty.
15564
+ * @param {string} hospitalId
15565
+ * @param {string} specialtyId
15566
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
15567
+ * @param {*} [options] Override http request option.
15568
+ * @throws {RequiredError}
15569
+ */
15570
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
15571
+ return __awaiter(this, void 0, void 0, function () {
15572
+ var localVarAxiosArgs;
15573
+ return __generator(this, function (_a) {
15574
+ switch (_a.label) {
15575
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options)];
15576
+ case 1:
15577
+ localVarAxiosArgs = _a.sent();
15578
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15579
+ }
15580
+ });
15581
+ });
15582
+ },
14654
15583
  /**
14655
15584
  *
14656
15585
  * @summary Get all HospitalServices.
14657
- * @param {string} hospitalId2
15586
+ * @param {string} hospitalId
15587
+ * @param {string} specialtyId
15588
+ * @param {string} [hospitalName]
15589
+ * @param {string} [hospitalSlug]
14658
15590
  * @param {string} [id]
14659
15591
  * @param {string} [name]
14660
15592
  * @param {string} [description]
14661
- * @param {string} [hospitalId]
14662
- * @param {string} [hospitalName]
14663
- * @param {string} [hospitalSlug]
14664
- * @param {string} [specialtyId]
15593
+ * @param {string} [specialtyName]
14665
15594
  * @param {string} [specialtyTypeId]
14666
15595
  * @param {string} [specialtyTypeName]
15596
+ * @param {string} [serviceCategoryId]
14667
15597
  * @param {MarketingType} [marketingType]
14668
15598
  * @param {Procedure} [procedure]
14669
15599
  * @param {Date} [created]
@@ -14674,12 +15604,34 @@ exports.HospitalsApiFp = function (configuration) {
14674
15604
  * @param {*} [options] Override http request option.
14675
15605
  * @throws {RequiredError}
14676
15606
  */
14677
- apiV1HospitalsHospitalIdServicesGet: function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15607
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15608
+ return __awaiter(this, void 0, void 0, function () {
15609
+ var localVarAxiosArgs;
15610
+ return __generator(this, function (_a) {
15611
+ switch (_a.label) {
15612
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet(hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
15613
+ case 1:
15614
+ localVarAxiosArgs = _a.sent();
15615
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15616
+ }
15617
+ });
15618
+ });
15619
+ },
15620
+ /**
15621
+ *
15622
+ * @summary Create HospitalService.
15623
+ * @param {string} hospitalId
15624
+ * @param {string} specialtyId
15625
+ * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15626
+ * @param {*} [options] Override http request option.
15627
+ * @throws {RequiredError}
15628
+ */
15629
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
14678
15630
  return __awaiter(this, void 0, void 0, function () {
14679
15631
  var localVarAxiosArgs;
14680
15632
  return __generator(this, function (_a) {
14681
15633
  switch (_a.label) {
14682
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesGet(hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
15634
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost(hospitalId, specialtyId, createHospitalServiceCommand, options)];
14683
15635
  case 1:
14684
15636
  localVarAxiosArgs = _a.sent();
14685
15637
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14689,18 +15641,19 @@ exports.HospitalsApiFp = function (configuration) {
14689
15641
  },
14690
15642
  /**
14691
15643
  *
14692
- * @summary Create HospitalService.
15644
+ * @summary Delete HospitalService
14693
15645
  * @param {string} hospitalId
14694
- * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15646
+ * @param {string} specialtyId
15647
+ * @param {string} serviceId
14695
15648
  * @param {*} [options] Override http request option.
14696
15649
  * @throws {RequiredError}
14697
15650
  */
14698
- apiV1HospitalsHospitalIdServicesPost: function (hospitalId, createHospitalServiceCommand, options) {
15651
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
14699
15652
  return __awaiter(this, void 0, void 0, function () {
14700
15653
  var localVarAxiosArgs;
14701
15654
  return __generator(this, function (_a) {
14702
15655
  switch (_a.label) {
14703
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesPost(hospitalId, createHospitalServiceCommand, options)];
15656
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete(hospitalId, specialtyId, serviceId, options)];
14704
15657
  case 1:
14705
15658
  localVarAxiosArgs = _a.sent();
14706
15659
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14710,18 +15663,20 @@ exports.HospitalsApiFp = function (configuration) {
14710
15663
  },
14711
15664
  /**
14712
15665
  *
14713
- * @summary Delete HospitalService
15666
+ * @summary Get HospitalService.
14714
15667
  * @param {string} hospitalId
15668
+ * @param {string} specialtyId
14715
15669
  * @param {string} serviceId
15670
+ * @param {string} [languageCode]
14716
15671
  * @param {*} [options] Override http request option.
14717
15672
  * @throws {RequiredError}
14718
15673
  */
14719
- apiV1HospitalsHospitalIdServicesServiceIdDelete: function (hospitalId, serviceId, options) {
15674
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, options) {
14720
15675
  return __awaiter(this, void 0, void 0, function () {
14721
15676
  var localVarAxiosArgs;
14722
15677
  return __generator(this, function (_a) {
14723
15678
  switch (_a.label) {
14724
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdDelete(hospitalId, serviceId, options)];
15679
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet(hospitalId, specialtyId, serviceId, languageCode, options)];
14725
15680
  case 1:
14726
15681
  localVarAxiosArgs = _a.sent();
14727
15682
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14731,19 +15686,24 @@ exports.HospitalsApiFp = function (configuration) {
14731
15686
  },
14732
15687
  /**
14733
15688
  *
14734
- * @summary Get HospitalService.
15689
+ * @summary Get all HospitalServiceMedias.
14735
15690
  * @param {string} hospitalId
15691
+ * @param {string} specialtyId
14736
15692
  * @param {string} serviceId
14737
- * @param {string} [languageCode]
15693
+ * @param {string} [id]
15694
+ * @param {MediaType} [mediaType]
15695
+ * @param {number} [page]
15696
+ * @param {number} [limit]
15697
+ * @param {Date} [lastRetrieved]
14738
15698
  * @param {*} [options] Override http request option.
14739
15699
  * @throws {RequiredError}
14740
15700
  */
14741
- apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, options) {
15701
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet: function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
14742
15702
  return __awaiter(this, void 0, void 0, function () {
14743
15703
  var localVarAxiosArgs;
14744
15704
  return __generator(this, function (_a) {
14745
15705
  switch (_a.label) {
14746
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, options)];
15706
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet(hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options)];
14747
15707
  case 1:
14748
15708
  localVarAxiosArgs = _a.sent();
14749
15709
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14753,19 +15713,20 @@ exports.HospitalsApiFp = function (configuration) {
14753
15713
  },
14754
15714
  /**
14755
15715
  *
14756
- * @summary Update HospitalService.
15716
+ * @summary Delete HospitalServiceMedia
14757
15717
  * @param {string} hospitalId
15718
+ * @param {string} specialtyId
14758
15719
  * @param {string} serviceId
14759
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
15720
+ * @param {string} mediaId
14760
15721
  * @param {*} [options] Override http request option.
14761
15722
  * @throws {RequiredError}
14762
15723
  */
14763
- apiV1HospitalsHospitalIdServicesServiceIdPut: function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
15724
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete: function (hospitalId, specialtyId, serviceId, mediaId, options) {
14764
15725
  return __awaiter(this, void 0, void 0, function () {
14765
15726
  var localVarAxiosArgs;
14766
15727
  return __generator(this, function (_a) {
14767
15728
  switch (_a.label) {
14768
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdServicesServiceIdPut(hospitalId, serviceId, updateHospitalServiceCommand, options)];
15729
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete(hospitalId, specialtyId, serviceId, mediaId, options)];
14769
15730
  case 1:
14770
15731
  localVarAxiosArgs = _a.sent();
14771
15732
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14775,27 +15736,20 @@ exports.HospitalsApiFp = function (configuration) {
14775
15736
  },
14776
15737
  /**
14777
15738
  *
14778
- * @summary Get all HospitalSpecialties.
15739
+ * @summary Get HospitalServiceMedia.
14779
15740
  * @param {string} hospitalId
14780
- * @param {string} [hospitalName]
14781
- * @param {string} [hospitalSlug]
14782
- * @param {string} [specialtyId]
14783
- * @param {string} [specialtyName]
14784
- * @param {string} [specialtyTypeId]
14785
- * @param {MarketingType} [marketingType]
14786
- * @param {Date} [created]
14787
- * @param {number} [page]
14788
- * @param {number} [limit]
14789
- * @param {Date} [lastRetrieved]
15741
+ * @param {string} specialtyId
15742
+ * @param {string} serviceId
15743
+ * @param {string} mediaId
14790
15744
  * @param {*} [options] Override http request option.
14791
15745
  * @throws {RequiredError}
14792
15746
  */
14793
- apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
15747
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
14794
15748
  return __awaiter(this, void 0, void 0, function () {
14795
15749
  var localVarAxiosArgs;
14796
15750
  return __generator(this, function (_a) {
14797
15751
  switch (_a.label) {
14798
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options)];
15752
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options)];
14799
15753
  case 1:
14800
15754
  localVarAxiosArgs = _a.sent();
14801
15755
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14805,18 +15759,21 @@ exports.HospitalsApiFp = function (configuration) {
14805
15759
  },
14806
15760
  /**
14807
15761
  *
14808
- * @summary Create HospitalSpecialty.
15762
+ * @summary Update HospitalServiceMedia.
14809
15763
  * @param {string} hospitalId
14810
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
15764
+ * @param {string} specialtyId
15765
+ * @param {string} serviceId
15766
+ * @param {string} mediaId
15767
+ * @param {UpdateMediaCommand} [updateMediaCommand]
14811
15768
  * @param {*} [options] Override http request option.
14812
15769
  * @throws {RequiredError}
14813
15770
  */
14814
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
15771
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut: function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
14815
15772
  return __awaiter(this, void 0, void 0, function () {
14816
15773
  var localVarAxiosArgs;
14817
15774
  return __generator(this, function (_a) {
14818
15775
  switch (_a.label) {
14819
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options)];
15776
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut(hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options)];
14820
15777
  case 1:
14821
15778
  localVarAxiosArgs = _a.sent();
14822
15779
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14826,18 +15783,20 @@ exports.HospitalsApiFp = function (configuration) {
14826
15783
  },
14827
15784
  /**
14828
15785
  *
14829
- * @summary Delete HospitalSpecialty.
15786
+ * @summary Create HospitalServiceMedia.
14830
15787
  * @param {string} hospitalId
14831
15788
  * @param {string} specialtyId
15789
+ * @param {string} serviceId
15790
+ * @param {CreateMediaCommand} [createMediaCommand]
14832
15791
  * @param {*} [options] Override http request option.
14833
15792
  * @throws {RequiredError}
14834
15793
  */
14835
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
15794
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
14836
15795
  return __awaiter(this, void 0, void 0, function () {
14837
15796
  var localVarAxiosArgs;
14838
15797
  return __generator(this, function (_a) {
14839
15798
  switch (_a.label) {
14840
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options)];
15799
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId, specialtyId, serviceId, createMediaCommand, options)];
14841
15800
  case 1:
14842
15801
  localVarAxiosArgs = _a.sent();
14843
15802
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -14847,18 +15806,20 @@ exports.HospitalsApiFp = function (configuration) {
14847
15806
  },
14848
15807
  /**
14849
15808
  *
14850
- * @summary Get HospitalSpecialty.
15809
+ * @summary Update HospitalService.
14851
15810
  * @param {string} hospitalId
14852
15811
  * @param {string} specialtyId
15812
+ * @param {string} serviceId
15813
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
14853
15814
  * @param {*} [options] Override http request option.
14854
15815
  * @throws {RequiredError}
14855
15816
  */
14856
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
15817
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut: function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
14857
15818
  return __awaiter(this, void 0, void 0, function () {
14858
15819
  var localVarAxiosArgs;
14859
15820
  return __generator(this, function (_a) {
14860
15821
  switch (_a.label) {
14861
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options)];
15822
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut(hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options)];
14862
15823
  case 1:
14863
15824
  localVarAxiosArgs = _a.sent();
14864
15825
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -15260,19 +16221,85 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
15260
16221
  apiV1HospitalsHospitalIdPut: function (hospitalId, updateHospitalCommand, options) {
15261
16222
  return localVarFp.apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(axios, basePath); });
15262
16223
  },
16224
+ /**
16225
+ *
16226
+ * @summary Get all HospitalSpecialties.
16227
+ * @param {string} hospitalId
16228
+ * @param {string} [hospitalName]
16229
+ * @param {string} [hospitalSlug]
16230
+ * @param {string} [specialtyId]
16231
+ * @param {string} [specialtyName]
16232
+ * @param {string} [specialtyTypeId]
16233
+ * @param {MarketingType} [marketingType]
16234
+ * @param {Date} [created]
16235
+ * @param {number} [page]
16236
+ * @param {number} [limit]
16237
+ * @param {Date} [lastRetrieved]
16238
+ * @param {*} [options] Override http request option.
16239
+ * @throws {RequiredError}
16240
+ */
16241
+ apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
16242
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16243
+ },
16244
+ /**
16245
+ *
16246
+ * @summary Create HospitalSpecialty.
16247
+ * @param {string} hospitalId
16248
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
16249
+ * @param {*} [options] Override http request option.
16250
+ * @throws {RequiredError}
16251
+ */
16252
+ apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
16253
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
16254
+ },
16255
+ /**
16256
+ *
16257
+ * @summary Delete HospitalSpecialty.
16258
+ * @param {string} hospitalId
16259
+ * @param {string} specialtyId
16260
+ * @param {*} [options] Override http request option.
16261
+ * @throws {RequiredError}
16262
+ */
16263
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
16264
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
16265
+ },
16266
+ /**
16267
+ *
16268
+ * @summary Get HospitalSpecialty.
16269
+ * @param {string} hospitalId
16270
+ * @param {string} specialtyId
16271
+ * @param {*} [options] Override http request option.
16272
+ * @throws {RequiredError}
16273
+ */
16274
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
16275
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
16276
+ },
16277
+ /**
16278
+ *
16279
+ * @summary Update HospitalSpecialty.
16280
+ * @param {string} hospitalId
16281
+ * @param {string} specialtyId
16282
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
16283
+ * @param {*} [options] Override http request option.
16284
+ * @throws {RequiredError}
16285
+ */
16286
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut: function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
16287
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
16288
+ },
15263
16289
  /**
15264
16290
  *
15265
16291
  * @summary Get all HospitalServices.
15266
- * @param {string} hospitalId2
16292
+ * @param {string} hospitalId
16293
+ * @param {string} specialtyId
16294
+ * @param {string} [hospitalName]
16295
+ * @param {string} [hospitalSlug]
15267
16296
  * @param {string} [id]
15268
16297
  * @param {string} [name]
15269
16298
  * @param {string} [description]
15270
- * @param {string} [hospitalId]
15271
- * @param {string} [hospitalName]
15272
- * @param {string} [hospitalSlug]
15273
- * @param {string} [specialtyId]
16299
+ * @param {string} [specialtyName]
15274
16300
  * @param {string} [specialtyTypeId]
15275
16301
  * @param {string} [specialtyTypeName]
16302
+ * @param {string} [serviceCategoryId]
15276
16303
  * @param {MarketingType} [marketingType]
15277
16304
  * @param {Procedure} [procedure]
15278
16305
  * @param {Date} [created]
@@ -15283,107 +16310,128 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
15283
16310
  * @param {*} [options] Override http request option.
15284
16311
  * @throws {RequiredError}
15285
16312
  */
15286
- apiV1HospitalsHospitalIdServicesGet: function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15287
- return localVarFp.apiV1HospitalsHospitalIdServicesGet(hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16313
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet: function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16314
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet(hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15288
16315
  },
15289
16316
  /**
15290
16317
  *
15291
16318
  * @summary Create HospitalService.
15292
16319
  * @param {string} hospitalId
16320
+ * @param {string} specialtyId
15293
16321
  * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15294
16322
  * @param {*} [options] Override http request option.
15295
16323
  * @throws {RequiredError}
15296
16324
  */
15297
- apiV1HospitalsHospitalIdServicesPost: function (hospitalId, createHospitalServiceCommand, options) {
15298
- return localVarFp.apiV1HospitalsHospitalIdServicesPost(hospitalId, createHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
16325
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost: function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
16326
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost(hospitalId, specialtyId, createHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
15299
16327
  },
15300
16328
  /**
15301
16329
  *
15302
16330
  * @summary Delete HospitalService
15303
16331
  * @param {string} hospitalId
16332
+ * @param {string} specialtyId
15304
16333
  * @param {string} serviceId
15305
16334
  * @param {*} [options] Override http request option.
15306
16335
  * @throws {RequiredError}
15307
16336
  */
15308
- apiV1HospitalsHospitalIdServicesServiceIdDelete: function (hospitalId, serviceId, options) {
15309
- return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdDelete(hospitalId, serviceId, options).then(function (request) { return request(axios, basePath); });
16337
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete: function (hospitalId, specialtyId, serviceId, options) {
16338
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete(hospitalId, specialtyId, serviceId, options).then(function (request) { return request(axios, basePath); });
15310
16339
  },
15311
16340
  /**
15312
16341
  *
15313
16342
  * @summary Get HospitalService.
15314
16343
  * @param {string} hospitalId
16344
+ * @param {string} specialtyId
15315
16345
  * @param {string} serviceId
15316
16346
  * @param {string} [languageCode]
15317
16347
  * @param {*} [options] Override http request option.
15318
16348
  * @throws {RequiredError}
15319
16349
  */
15320
- apiV1HospitalsHospitalIdServicesServiceIdGet: function (hospitalId, serviceId, languageCode, options) {
15321
- return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
16350
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet: function (hospitalId, specialtyId, serviceId, languageCode, options) {
16351
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet(hospitalId, specialtyId, serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
15322
16352
  },
15323
16353
  /**
15324
16354
  *
15325
- * @summary Update HospitalService.
16355
+ * @summary Get all HospitalServiceMedias.
15326
16356
  * @param {string} hospitalId
16357
+ * @param {string} specialtyId
15327
16358
  * @param {string} serviceId
15328
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
16359
+ * @param {string} [id]
16360
+ * @param {MediaType} [mediaType]
16361
+ * @param {number} [page]
16362
+ * @param {number} [limit]
16363
+ * @param {Date} [lastRetrieved]
15329
16364
  * @param {*} [options] Override http request option.
15330
16365
  * @throws {RequiredError}
15331
16366
  */
15332
- apiV1HospitalsHospitalIdServicesServiceIdPut: function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
15333
- return localVarFp.apiV1HospitalsHospitalIdServicesServiceIdPut(hospitalId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
16367
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet: function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
16368
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet(hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15334
16369
  },
15335
16370
  /**
15336
16371
  *
15337
- * @summary Get all HospitalSpecialties.
16372
+ * @summary Delete HospitalServiceMedia
15338
16373
  * @param {string} hospitalId
15339
- * @param {string} [hospitalName]
15340
- * @param {string} [hospitalSlug]
15341
- * @param {string} [specialtyId]
15342
- * @param {string} [specialtyName]
15343
- * @param {string} [specialtyTypeId]
15344
- * @param {MarketingType} [marketingType]
15345
- * @param {Date} [created]
15346
- * @param {number} [page]
15347
- * @param {number} [limit]
15348
- * @param {Date} [lastRetrieved]
16374
+ * @param {string} specialtyId
16375
+ * @param {string} serviceId
16376
+ * @param {string} mediaId
15349
16377
  * @param {*} [options] Override http request option.
15350
16378
  * @throws {RequiredError}
15351
16379
  */
15352
- apiV1HospitalsHospitalIdSpecialtiesGet: function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
15353
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
16380
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete: function (hospitalId, specialtyId, serviceId, mediaId, options) {
16381
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
15354
16382
  },
15355
16383
  /**
15356
16384
  *
15357
- * @summary Create HospitalSpecialty.
16385
+ * @summary Get HospitalServiceMedia.
15358
16386
  * @param {string} hospitalId
15359
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
16387
+ * @param {string} specialtyId
16388
+ * @param {string} serviceId
16389
+ * @param {string} mediaId
15360
16390
  * @param {*} [options] Override http request option.
15361
16391
  * @throws {RequiredError}
15362
16392
  */
15363
- apiV1HospitalsHospitalIdSpecialtiesPost: function (hospitalId, createHospitalSpecialtyCommand, options) {
15364
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(axios, basePath); });
16393
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet: function (hospitalId, specialtyId, serviceId, mediaId, options) {
16394
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(axios, basePath); });
15365
16395
  },
15366
16396
  /**
15367
16397
  *
15368
- * @summary Delete HospitalSpecialty.
16398
+ * @summary Update HospitalServiceMedia.
15369
16399
  * @param {string} hospitalId
15370
16400
  * @param {string} specialtyId
16401
+ * @param {string} serviceId
16402
+ * @param {string} mediaId
16403
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15371
16404
  * @param {*} [options] Override http request option.
15372
16405
  * @throws {RequiredError}
15373
16406
  */
15374
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete: function (hospitalId, specialtyId, options) {
15375
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
16407
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut: function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
16408
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut(hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
15376
16409
  },
15377
16410
  /**
15378
16411
  *
15379
- * @summary Get HospitalSpecialty.
16412
+ * @summary Create HospitalServiceMedia.
15380
16413
  * @param {string} hospitalId
15381
16414
  * @param {string} specialtyId
16415
+ * @param {string} serviceId
16416
+ * @param {CreateMediaCommand} [createMediaCommand]
15382
16417
  * @param {*} [options] Override http request option.
15383
16418
  * @throws {RequiredError}
15384
16419
  */
15385
- apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet: function (hospitalId, specialtyId, options) {
15386
- return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(axios, basePath); });
16420
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost: function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
16421
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId, specialtyId, serviceId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
16422
+ },
16423
+ /**
16424
+ *
16425
+ * @summary Update HospitalService.
16426
+ * @param {string} hospitalId
16427
+ * @param {string} specialtyId
16428
+ * @param {string} serviceId
16429
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
16430
+ * @param {*} [options] Override http request option.
16431
+ * @throws {RequiredError}
16432
+ */
16433
+ apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut: function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
16434
+ return localVarFp.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut(hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(axios, basePath); });
15387
16435
  },
15388
16436
  /**
15389
16437
  *
@@ -15753,83 +16801,159 @@ var HospitalsApi = /** @class */ (function (_super) {
15753
16801
  };
15754
16802
  /**
15755
16803
  *
15756
- * @summary Delete HospitalMedia
16804
+ * @summary Delete HospitalMedia
16805
+ * @param {string} hospitalId
16806
+ * @param {string} mediaId
16807
+ * @param {*} [options] Override http request option.
16808
+ * @throws {RequiredError}
16809
+ * @memberof HospitalsApi
16810
+ */
16811
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasMediaIdDelete = function (hospitalId, mediaId, options) {
16812
+ var _this = this;
16813
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasMediaIdDelete(hospitalId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16814
+ };
16815
+ /**
16816
+ *
16817
+ * @summary Get HospitalMedia.
16818
+ * @param {string} hospitalId
16819
+ * @param {string} mediaId
16820
+ * @param {*} [options] Override http request option.
16821
+ * @throws {RequiredError}
16822
+ * @memberof HospitalsApi
16823
+ */
16824
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasMediaIdGet = function (hospitalId, mediaId, options) {
16825
+ var _this = this;
16826
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16827
+ };
16828
+ /**
16829
+ *
16830
+ * @summary Update HospitalMedia.
16831
+ * @param {string} hospitalId
16832
+ * @param {string} mediaId
16833
+ * @param {UpdateMediaCommand} [updateMediaCommand]
16834
+ * @param {*} [options] Override http request option.
16835
+ * @throws {RequiredError}
16836
+ * @memberof HospitalsApi
16837
+ */
16838
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasMediaIdPut = function (hospitalId, mediaId, updateMediaCommand, options) {
16839
+ var _this = this;
16840
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasMediaIdPut(hospitalId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16841
+ };
16842
+ /**
16843
+ *
16844
+ * @summary Create HospitalMedia.
16845
+ * @param {string} hospitalId
16846
+ * @param {CreateMediaCommand} [createMediaCommand]
16847
+ * @param {*} [options] Override http request option.
16848
+ * @throws {RequiredError}
16849
+ * @memberof HospitalsApi
16850
+ */
16851
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasPost = function (hospitalId, createMediaCommand, options) {
16852
+ var _this = this;
16853
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16854
+ };
16855
+ /**
16856
+ *
16857
+ * @summary Update Hospital.
16858
+ * @param {string} hospitalId
16859
+ * @param {UpdateHospitalCommand} [updateHospitalCommand]
16860
+ * @param {*} [options] Override http request option.
16861
+ * @throws {RequiredError}
16862
+ * @memberof HospitalsApi
16863
+ */
16864
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPut = function (hospitalId, updateHospitalCommand, options) {
16865
+ var _this = this;
16866
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16867
+ };
16868
+ /**
16869
+ *
16870
+ * @summary Get all HospitalSpecialties.
15757
16871
  * @param {string} hospitalId
15758
- * @param {string} mediaId
16872
+ * @param {string} [hospitalName]
16873
+ * @param {string} [hospitalSlug]
16874
+ * @param {string} [specialtyId]
16875
+ * @param {string} [specialtyName]
16876
+ * @param {string} [specialtyTypeId]
16877
+ * @param {MarketingType} [marketingType]
16878
+ * @param {Date} [created]
16879
+ * @param {number} [page]
16880
+ * @param {number} [limit]
16881
+ * @param {Date} [lastRetrieved]
15759
16882
  * @param {*} [options] Override http request option.
15760
16883
  * @throws {RequiredError}
15761
16884
  * @memberof HospitalsApi
15762
16885
  */
15763
- HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasMediaIdDelete = function (hospitalId, mediaId, options) {
16886
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
15764
16887
  var _this = this;
15765
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasMediaIdDelete(hospitalId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16888
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15766
16889
  };
15767
16890
  /**
15768
16891
  *
15769
- * @summary Get HospitalMedia.
16892
+ * @summary Create HospitalSpecialty.
15770
16893
  * @param {string} hospitalId
15771
- * @param {string} mediaId
16894
+ * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
15772
16895
  * @param {*} [options] Override http request option.
15773
16896
  * @throws {RequiredError}
15774
16897
  * @memberof HospitalsApi
15775
16898
  */
15776
- HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasMediaIdGet = function (hospitalId, mediaId, options) {
16899
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesPost = function (hospitalId, createHospitalSpecialtyCommand, options) {
15777
16900
  var _this = this;
15778
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16901
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15779
16902
  };
15780
16903
  /**
15781
16904
  *
15782
- * @summary Update HospitalMedia.
16905
+ * @summary Delete HospitalSpecialty.
15783
16906
  * @param {string} hospitalId
15784
- * @param {string} mediaId
15785
- * @param {UpdateMediaCommand} [updateMediaCommand]
16907
+ * @param {string} specialtyId
15786
16908
  * @param {*} [options] Override http request option.
15787
16909
  * @throws {RequiredError}
15788
16910
  * @memberof HospitalsApi
15789
16911
  */
15790
- HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasMediaIdPut = function (hospitalId, mediaId, updateMediaCommand, options) {
16912
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete = function (hospitalId, specialtyId, options) {
15791
16913
  var _this = this;
15792
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasMediaIdPut(hospitalId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16914
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15793
16915
  };
15794
16916
  /**
15795
16917
  *
15796
- * @summary Create HospitalMedia.
16918
+ * @summary Get HospitalSpecialty.
15797
16919
  * @param {string} hospitalId
15798
- * @param {CreateMediaCommand} [createMediaCommand]
16920
+ * @param {string} specialtyId
15799
16921
  * @param {*} [options] Override http request option.
15800
16922
  * @throws {RequiredError}
15801
16923
  * @memberof HospitalsApi
15802
16924
  */
15803
- HospitalsApi.prototype.apiV1HospitalsHospitalIdMediasPost = function (hospitalId, createMediaCommand, options) {
16925
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, options) {
15804
16926
  var _this = this;
15805
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16927
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15806
16928
  };
15807
16929
  /**
15808
16930
  *
15809
- * @summary Update Hospital.
16931
+ * @summary Update HospitalSpecialty.
15810
16932
  * @param {string} hospitalId
15811
- * @param {UpdateHospitalCommand} [updateHospitalCommand]
16933
+ * @param {string} specialtyId
16934
+ * @param {UpdateHospitalSpecialtyCommand} [updateHospitalSpecialtyCommand]
15812
16935
  * @param {*} [options] Override http request option.
15813
16936
  * @throws {RequiredError}
15814
16937
  * @memberof HospitalsApi
15815
16938
  */
15816
- HospitalsApi.prototype.apiV1HospitalsHospitalIdPut = function (hospitalId, updateHospitalCommand, options) {
16939
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut = function (hospitalId, specialtyId, updateHospitalSpecialtyCommand, options) {
15817
16940
  var _this = this;
15818
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16941
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdPut(hospitalId, specialtyId, updateHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15819
16942
  };
15820
16943
  /**
15821
16944
  *
15822
16945
  * @summary Get all HospitalServices.
15823
- * @param {string} hospitalId2
16946
+ * @param {string} hospitalId
16947
+ * @param {string} specialtyId
16948
+ * @param {string} [hospitalName]
16949
+ * @param {string} [hospitalSlug]
15824
16950
  * @param {string} [id]
15825
16951
  * @param {string} [name]
15826
16952
  * @param {string} [description]
15827
- * @param {string} [hospitalId]
15828
- * @param {string} [hospitalName]
15829
- * @param {string} [hospitalSlug]
15830
- * @param {string} [specialtyId]
16953
+ * @param {string} [specialtyName]
15831
16954
  * @param {string} [specialtyTypeId]
15832
16955
  * @param {string} [specialtyTypeName]
16956
+ * @param {string} [serviceCategoryId]
15833
16957
  * @param {MarketingType} [marketingType]
15834
16958
  * @param {Procedure} [procedure]
15835
16959
  * @param {Date} [created]
@@ -15841,124 +16965,147 @@ var HospitalsApi = /** @class */ (function (_super) {
15841
16965
  * @throws {RequiredError}
15842
16966
  * @memberof HospitalsApi
15843
16967
  */
15844
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesGet = function (hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16968
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet = function (hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
15845
16969
  var _this = this;
15846
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesGet(hospitalId2, id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
16970
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesGet(hospitalId, specialtyId, hospitalName, hospitalSlug, id, name, description, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15847
16971
  };
15848
16972
  /**
15849
16973
  *
15850
16974
  * @summary Create HospitalService.
15851
16975
  * @param {string} hospitalId
16976
+ * @param {string} specialtyId
15852
16977
  * @param {CreateHospitalServiceCommand} [createHospitalServiceCommand]
15853
16978
  * @param {*} [options] Override http request option.
15854
16979
  * @throws {RequiredError}
15855
16980
  * @memberof HospitalsApi
15856
16981
  */
15857
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesPost = function (hospitalId, createHospitalServiceCommand, options) {
16982
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost = function (hospitalId, specialtyId, createHospitalServiceCommand, options) {
15858
16983
  var _this = this;
15859
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesPost(hospitalId, createHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
16984
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesPost(hospitalId, specialtyId, createHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15860
16985
  };
15861
16986
  /**
15862
16987
  *
15863
16988
  * @summary Delete HospitalService
15864
16989
  * @param {string} hospitalId
16990
+ * @param {string} specialtyId
15865
16991
  * @param {string} serviceId
15866
16992
  * @param {*} [options] Override http request option.
15867
16993
  * @throws {RequiredError}
15868
16994
  * @memberof HospitalsApi
15869
16995
  */
15870
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdDelete = function (hospitalId, serviceId, options) {
16996
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete = function (hospitalId, specialtyId, serviceId, options) {
15871
16997
  var _this = this;
15872
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdDelete(hospitalId, serviceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
16998
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdDelete(hospitalId, specialtyId, serviceId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15873
16999
  };
15874
17000
  /**
15875
17001
  *
15876
17002
  * @summary Get HospitalService.
15877
17003
  * @param {string} hospitalId
17004
+ * @param {string} specialtyId
15878
17005
  * @param {string} serviceId
15879
17006
  * @param {string} [languageCode]
15880
17007
  * @param {*} [options] Override http request option.
15881
17008
  * @throws {RequiredError}
15882
17009
  * @memberof HospitalsApi
15883
17010
  */
15884
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdGet = function (hospitalId, serviceId, languageCode, options) {
17011
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet = function (hospitalId, specialtyId, serviceId, languageCode, options) {
15885
17012
  var _this = this;
15886
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdGet(hospitalId, serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
17013
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdGet(hospitalId, specialtyId, serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
15887
17014
  };
15888
17015
  /**
15889
17016
  *
15890
- * @summary Update HospitalService.
17017
+ * @summary Get all HospitalServiceMedias.
15891
17018
  * @param {string} hospitalId
17019
+ * @param {string} specialtyId
15892
17020
  * @param {string} serviceId
15893
- * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
17021
+ * @param {string} [id]
17022
+ * @param {MediaType} [mediaType]
17023
+ * @param {number} [page]
17024
+ * @param {number} [limit]
17025
+ * @param {Date} [lastRetrieved]
15894
17026
  * @param {*} [options] Override http request option.
15895
17027
  * @throws {RequiredError}
15896
17028
  * @memberof HospitalsApi
15897
17029
  */
15898
- HospitalsApi.prototype.apiV1HospitalsHospitalIdServicesServiceIdPut = function (hospitalId, serviceId, updateHospitalServiceCommand, options) {
17030
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet = function (hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options) {
15899
17031
  var _this = this;
15900
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdServicesServiceIdPut(hospitalId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17032
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasGet(hospitalId, specialtyId, serviceId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15901
17033
  };
15902
17034
  /**
15903
17035
  *
15904
- * @summary Get all HospitalSpecialties.
17036
+ * @summary Delete HospitalServiceMedia
15905
17037
  * @param {string} hospitalId
15906
- * @param {string} [hospitalName]
15907
- * @param {string} [hospitalSlug]
15908
- * @param {string} [specialtyId]
15909
- * @param {string} [specialtyName]
15910
- * @param {string} [specialtyTypeId]
15911
- * @param {MarketingType} [marketingType]
15912
- * @param {Date} [created]
15913
- * @param {number} [page]
15914
- * @param {number} [limit]
15915
- * @param {Date} [lastRetrieved]
17038
+ * @param {string} specialtyId
17039
+ * @param {string} serviceId
17040
+ * @param {string} mediaId
15916
17041
  * @param {*} [options] Override http request option.
15917
17042
  * @throws {RequiredError}
15918
17043
  * @memberof HospitalsApi
15919
17044
  */
15920
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesGet = function (hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options) {
17045
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete = function (hospitalId, specialtyId, serviceId, mediaId, options) {
15921
17046
  var _this = this;
15922
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesGet(hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyName, specialtyTypeId, marketingType, created, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
17047
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdDelete(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15923
17048
  };
15924
17049
  /**
15925
17050
  *
15926
- * @summary Create HospitalSpecialty.
17051
+ * @summary Get HospitalServiceMedia.
15927
17052
  * @param {string} hospitalId
15928
- * @param {CreateHospitalSpecialtyCommand} [createHospitalSpecialtyCommand]
17053
+ * @param {string} specialtyId
17054
+ * @param {string} serviceId
17055
+ * @param {string} mediaId
15929
17056
  * @param {*} [options] Override http request option.
15930
17057
  * @throws {RequiredError}
15931
17058
  * @memberof HospitalsApi
15932
17059
  */
15933
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesPost = function (hospitalId, createHospitalSpecialtyCommand, options) {
17060
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet = function (hospitalId, specialtyId, serviceId, mediaId, options) {
15934
17061
  var _this = this;
15935
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesPost(hospitalId, createHospitalSpecialtyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17062
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15936
17063
  };
15937
17064
  /**
15938
17065
  *
15939
- * @summary Delete HospitalSpecialty.
17066
+ * @summary Update HospitalServiceMedia.
15940
17067
  * @param {string} hospitalId
15941
17068
  * @param {string} specialtyId
17069
+ * @param {string} serviceId
17070
+ * @param {string} mediaId
17071
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15942
17072
  * @param {*} [options] Override http request option.
15943
17073
  * @throws {RequiredError}
15944
17074
  * @memberof HospitalsApi
15945
17075
  */
15946
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete = function (hospitalId, specialtyId, options) {
17076
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut = function (hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options) {
15947
17077
  var _this = this;
15948
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdDelete(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
17078
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdPut(hospitalId, specialtyId, serviceId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15949
17079
  };
15950
17080
  /**
15951
17081
  *
15952
- * @summary Get HospitalSpecialty.
17082
+ * @summary Create HospitalServiceMedia.
15953
17083
  * @param {string} hospitalId
15954
17084
  * @param {string} specialtyId
17085
+ * @param {string} serviceId
17086
+ * @param {CreateMediaCommand} [createMediaCommand]
15955
17087
  * @param {*} [options] Override http request option.
15956
17088
  * @throws {RequiredError}
15957
17089
  * @memberof HospitalsApi
15958
17090
  */
15959
- HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet = function (hospitalId, specialtyId, options) {
17091
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost = function (hospitalId, specialtyId, serviceId, createMediaCommand, options) {
15960
17092
  var _this = this;
15961
- return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdGet(hospitalId, specialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
17093
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasPost(hospitalId, specialtyId, serviceId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
17094
+ };
17095
+ /**
17096
+ *
17097
+ * @summary Update HospitalService.
17098
+ * @param {string} hospitalId
17099
+ * @param {string} specialtyId
17100
+ * @param {string} serviceId
17101
+ * @param {UpdateHospitalServiceCommand} [updateHospitalServiceCommand]
17102
+ * @param {*} [options] Override http request option.
17103
+ * @throws {RequiredError}
17104
+ * @memberof HospitalsApi
17105
+ */
17106
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut = function (hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options) {
17107
+ var _this = this;
17108
+ return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdPut(hospitalId, specialtyId, serviceId, updateHospitalServiceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15962
17109
  };
15963
17110
  /**
15964
17111
  *
@@ -16691,17 +17838,19 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16691
17838
  var _this = this;
16692
17839
  return {
16693
17840
  /**
16694
- * Sample request: GET /api/v1/hospitals/services
16695
- * @summary Get all services.
16696
- * @param {string} [id]
16697
- * @param {string} [name]
16698
- * @param {string} [description]
17841
+ *
17842
+ * @summary Get all HospitalServices.
16699
17843
  * @param {string} [hospitalId]
16700
17844
  * @param {string} [hospitalName]
16701
17845
  * @param {string} [hospitalSlug]
17846
+ * @param {string} [id]
17847
+ * @param {string} [name]
17848
+ * @param {string} [description]
16702
17849
  * @param {string} [specialtyId]
17850
+ * @param {string} [specialtyName]
16703
17851
  * @param {string} [specialtyTypeId]
16704
17852
  * @param {string} [specialtyTypeName]
17853
+ * @param {string} [serviceCategoryId]
16705
17854
  * @param {MarketingType} [marketingType]
16706
17855
  * @param {Procedure} [procedure]
16707
17856
  * @param {Date} [created]
@@ -16712,7 +17861,7 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16712
17861
  * @param {*} [options] Override http request option.
16713
17862
  * @throws {RequiredError}
16714
17863
  */
16715
- apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
17864
+ apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16716
17865
  if (options === void 0) { options = {}; }
16717
17866
  return __awaiter(_this, void 0, void 0, function () {
16718
17867
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -16734,15 +17883,6 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16734
17883
  // authentication oauth2 required
16735
17884
  // oauth required
16736
17885
  _a.sent();
16737
- if (id !== undefined) {
16738
- localVarQueryParameter['Id'] = id;
16739
- }
16740
- if (name !== undefined) {
16741
- localVarQueryParameter['Name'] = name;
16742
- }
16743
- if (description !== undefined) {
16744
- localVarQueryParameter['Description'] = description;
16745
- }
16746
17886
  if (hospitalId !== undefined) {
16747
17887
  localVarQueryParameter['HospitalId'] = hospitalId;
16748
17888
  }
@@ -16752,15 +17892,30 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16752
17892
  if (hospitalSlug !== undefined) {
16753
17893
  localVarQueryParameter['HospitalSlug'] = hospitalSlug;
16754
17894
  }
17895
+ if (id !== undefined) {
17896
+ localVarQueryParameter['Id'] = id;
17897
+ }
17898
+ if (name !== undefined) {
17899
+ localVarQueryParameter['Name'] = name;
17900
+ }
17901
+ if (description !== undefined) {
17902
+ localVarQueryParameter['Description'] = description;
17903
+ }
16755
17904
  if (specialtyId !== undefined) {
16756
17905
  localVarQueryParameter['SpecialtyId'] = specialtyId;
16757
17906
  }
17907
+ if (specialtyName !== undefined) {
17908
+ localVarQueryParameter['SpecialtyName'] = specialtyName;
17909
+ }
16758
17910
  if (specialtyTypeId !== undefined) {
16759
17911
  localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
16760
17912
  }
16761
17913
  if (specialtyTypeName !== undefined) {
16762
17914
  localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
16763
17915
  }
17916
+ if (serviceCategoryId !== undefined) {
17917
+ localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
17918
+ }
16764
17919
  if (marketingType !== undefined) {
16765
17920
  localVarQueryParameter['MarketingType'] = marketingType;
16766
17921
  }
@@ -16799,7 +17954,54 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
16799
17954
  },
16800
17955
  /**
16801
17956
  *
16802
- * @summary Get service by slug.
17957
+ * @summary Get HospitalService.
17958
+ * @param {string} serviceId
17959
+ * @param {string} [languageCode]
17960
+ * @param {*} [options] Override http request option.
17961
+ * @throws {RequiredError}
17962
+ */
17963
+ apiV1ServicesServiceIdGet: function (serviceId, languageCode, options) {
17964
+ if (options === void 0) { options = {}; }
17965
+ return __awaiter(_this, void 0, void 0, function () {
17966
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
17967
+ return __generator(this, function (_a) {
17968
+ switch (_a.label) {
17969
+ case 0:
17970
+ // verify required parameter 'serviceId' is not null or undefined
17971
+ common_1.assertParamExists('apiV1ServicesServiceIdGet', 'serviceId', serviceId);
17972
+ localVarPath = "/api/v1/services/{serviceId}"
17973
+ .replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
17974
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
17975
+ if (configuration) {
17976
+ baseOptions = configuration.baseOptions;
17977
+ }
17978
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
17979
+ localVarHeaderParameter = {};
17980
+ localVarQueryParameter = {};
17981
+ // authentication oauth2 required
17982
+ // oauth required
17983
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
17984
+ case 1:
17985
+ // authentication oauth2 required
17986
+ // oauth required
17987
+ _a.sent();
17988
+ if (languageCode !== undefined) {
17989
+ localVarQueryParameter['languageCode'] = languageCode;
17990
+ }
17991
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
17992
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17993
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17994
+ return [2 /*return*/, {
17995
+ url: common_1.toPathString(localVarUrlObj),
17996
+ options: localVarRequestOptions,
17997
+ }];
17998
+ }
17999
+ });
18000
+ });
18001
+ },
18002
+ /**
18003
+ *
18004
+ * @summary Get HospitalService by slug.
16803
18005
  * @param {string} slug
16804
18006
  * @param {string} [languageCode]
16805
18007
  * @param {*} [options] Override http request option.
@@ -16854,17 +18056,19 @@ exports.ServicesApiFp = function (configuration) {
16854
18056
  var localVarAxiosParamCreator = exports.ServicesApiAxiosParamCreator(configuration);
16855
18057
  return {
16856
18058
  /**
16857
- * Sample request: GET /api/v1/hospitals/services
16858
- * @summary Get all services.
16859
- * @param {string} [id]
16860
- * @param {string} [name]
16861
- * @param {string} [description]
18059
+ *
18060
+ * @summary Get all HospitalServices.
16862
18061
  * @param {string} [hospitalId]
16863
18062
  * @param {string} [hospitalName]
16864
18063
  * @param {string} [hospitalSlug]
18064
+ * @param {string} [id]
18065
+ * @param {string} [name]
18066
+ * @param {string} [description]
16865
18067
  * @param {string} [specialtyId]
18068
+ * @param {string} [specialtyName]
16866
18069
  * @param {string} [specialtyTypeId]
16867
18070
  * @param {string} [specialtyTypeName]
18071
+ * @param {string} [serviceCategoryId]
16868
18072
  * @param {MarketingType} [marketingType]
16869
18073
  * @param {Procedure} [procedure]
16870
18074
  * @param {Date} [created]
@@ -16875,12 +18079,33 @@ exports.ServicesApiFp = function (configuration) {
16875
18079
  * @param {*} [options] Override http request option.
16876
18080
  * @throws {RequiredError}
16877
18081
  */
16878
- apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18082
+ apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18083
+ return __awaiter(this, void 0, void 0, function () {
18084
+ var localVarAxiosArgs;
18085
+ return __generator(this, function (_a) {
18086
+ switch (_a.label) {
18087
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
18088
+ case 1:
18089
+ localVarAxiosArgs = _a.sent();
18090
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
18091
+ }
18092
+ });
18093
+ });
18094
+ },
18095
+ /**
18096
+ *
18097
+ * @summary Get HospitalService.
18098
+ * @param {string} serviceId
18099
+ * @param {string} [languageCode]
18100
+ * @param {*} [options] Override http request option.
18101
+ * @throws {RequiredError}
18102
+ */
18103
+ apiV1ServicesServiceIdGet: function (serviceId, languageCode, options) {
16879
18104
  return __awaiter(this, void 0, void 0, function () {
16880
18105
  var localVarAxiosArgs;
16881
18106
  return __generator(this, function (_a) {
16882
18107
  switch (_a.label) {
16883
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesGet(id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options)];
18108
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesServiceIdGet(serviceId, languageCode, options)];
16884
18109
  case 1:
16885
18110
  localVarAxiosArgs = _a.sent();
16886
18111
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -16890,7 +18115,7 @@ exports.ServicesApiFp = function (configuration) {
16890
18115
  },
16891
18116
  /**
16892
18117
  *
16893
- * @summary Get service by slug.
18118
+ * @summary Get HospitalService by slug.
16894
18119
  * @param {string} slug
16895
18120
  * @param {string} [languageCode]
16896
18121
  * @param {*} [options] Override http request option.
@@ -16919,17 +18144,19 @@ exports.ServicesApiFactory = function (configuration, basePath, axios) {
16919
18144
  var localVarFp = exports.ServicesApiFp(configuration);
16920
18145
  return {
16921
18146
  /**
16922
- * Sample request: GET /api/v1/hospitals/services
16923
- * @summary Get all services.
16924
- * @param {string} [id]
16925
- * @param {string} [name]
16926
- * @param {string} [description]
18147
+ *
18148
+ * @summary Get all HospitalServices.
16927
18149
  * @param {string} [hospitalId]
16928
18150
  * @param {string} [hospitalName]
16929
18151
  * @param {string} [hospitalSlug]
18152
+ * @param {string} [id]
18153
+ * @param {string} [name]
18154
+ * @param {string} [description]
16930
18155
  * @param {string} [specialtyId]
18156
+ * @param {string} [specialtyName]
16931
18157
  * @param {string} [specialtyTypeId]
16932
18158
  * @param {string} [specialtyTypeName]
18159
+ * @param {string} [serviceCategoryId]
16933
18160
  * @param {MarketingType} [marketingType]
16934
18161
  * @param {Procedure} [procedure]
16935
18162
  * @param {Date} [created]
@@ -16940,12 +18167,23 @@ exports.ServicesApiFactory = function (configuration, basePath, axios) {
16940
18167
  * @param {*} [options] Override http request option.
16941
18168
  * @throws {RequiredError}
16942
18169
  */
16943
- apiV1ServicesGet: function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
16944
- return localVarFp.apiV1ServicesGet(id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18170
+ apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18171
+ return localVarFp.apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
18172
+ },
18173
+ /**
18174
+ *
18175
+ * @summary Get HospitalService.
18176
+ * @param {string} serviceId
18177
+ * @param {string} [languageCode]
18178
+ * @param {*} [options] Override http request option.
18179
+ * @throws {RequiredError}
18180
+ */
18181
+ apiV1ServicesServiceIdGet: function (serviceId, languageCode, options) {
18182
+ return localVarFp.apiV1ServicesServiceIdGet(serviceId, languageCode, options).then(function (request) { return request(axios, basePath); });
16945
18183
  },
16946
18184
  /**
16947
18185
  *
16948
- * @summary Get service by slug.
18186
+ * @summary Get HospitalService by slug.
16949
18187
  * @param {string} slug
16950
18188
  * @param {string} [languageCode]
16951
18189
  * @param {*} [options] Override http request option.
@@ -16968,17 +18206,19 @@ var ServicesApi = /** @class */ (function (_super) {
16968
18206
  return _super !== null && _super.apply(this, arguments) || this;
16969
18207
  }
16970
18208
  /**
16971
- * Sample request: GET /api/v1/hospitals/services
16972
- * @summary Get all services.
16973
- * @param {string} [id]
16974
- * @param {string} [name]
16975
- * @param {string} [description]
18209
+ *
18210
+ * @summary Get all HospitalServices.
16976
18211
  * @param {string} [hospitalId]
16977
18212
  * @param {string} [hospitalName]
16978
18213
  * @param {string} [hospitalSlug]
18214
+ * @param {string} [id]
18215
+ * @param {string} [name]
18216
+ * @param {string} [description]
16979
18217
  * @param {string} [specialtyId]
18218
+ * @param {string} [specialtyName]
16980
18219
  * @param {string} [specialtyTypeId]
16981
18220
  * @param {string} [specialtyTypeName]
18221
+ * @param {string} [serviceCategoryId]
16982
18222
  * @param {MarketingType} [marketingType]
16983
18223
  * @param {Procedure} [procedure]
16984
18224
  * @param {Date} [created]
@@ -16990,13 +18230,26 @@ var ServicesApi = /** @class */ (function (_super) {
16990
18230
  * @throws {RequiredError}
16991
18231
  * @memberof ServicesApi
16992
18232
  */
16993
- ServicesApi.prototype.apiV1ServicesGet = function (id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18233
+ ServicesApi.prototype.apiV1ServicesGet = function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options) {
18234
+ var _this = this;
18235
+ return exports.ServicesApiFp(this.configuration).apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18236
+ };
18237
+ /**
18238
+ *
18239
+ * @summary Get HospitalService.
18240
+ * @param {string} serviceId
18241
+ * @param {string} [languageCode]
18242
+ * @param {*} [options] Override http request option.
18243
+ * @throws {RequiredError}
18244
+ * @memberof ServicesApi
18245
+ */
18246
+ ServicesApi.prototype.apiV1ServicesServiceIdGet = function (serviceId, languageCode, options) {
16994
18247
  var _this = this;
16995
- return exports.ServicesApiFp(this.configuration).apiV1ServicesGet(id, name, description, hospitalId, hospitalName, hospitalSlug, specialtyId, specialtyTypeId, specialtyTypeName, marketingType, procedure, created, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
18248
+ return exports.ServicesApiFp(this.configuration).apiV1ServicesServiceIdGet(serviceId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
16996
18249
  };
16997
18250
  /**
16998
18251
  *
16999
- * @summary Get service by slug.
18252
+ * @summary Get HospitalService by slug.
17000
18253
  * @param {string} slug
17001
18254
  * @param {string} [languageCode]
17002
18255
  * @param {*} [options] Override http request option.