ch-api-client-typescript2 2.6.9 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/api.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.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
79
+ exports.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.ServiceReviewsApi = exports.ServiceReviewsApiFactory = exports.ServiceReviewsApiFp = exports.ServiceReviewsApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.ReviewType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.AutocompleteMode = 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
@@ -94,6 +94,17 @@ var ArticleStatus;
94
94
  ArticleStatus["Active"] = "Active";
95
95
  ArticleStatus["Archived"] = "Archived";
96
96
  })(ArticleStatus = exports.ArticleStatus || (exports.ArticleStatus = {}));
97
+ /**
98
+ *
99
+ * @export
100
+ * @enum {string}
101
+ */
102
+ var AutocompleteMode;
103
+ (function (AutocompleteMode) {
104
+ AutocompleteMode["OneTerm"] = "OneTerm";
105
+ AutocompleteMode["TwoTerms"] = "TwoTerms";
106
+ AutocompleteMode["OneTermWithContext"] = "OneTermWithContext";
107
+ })(AutocompleteMode = exports.AutocompleteMode || (exports.AutocompleteMode = {}));
97
108
  /**
98
109
  *
99
110
  * @export
@@ -257,6 +268,17 @@ var RejectReason;
257
268
  RejectReason["ScheduleNotAvailable"] = "ScheduleNotAvailable";
258
269
  RejectReason["OtherReason"] = "OtherReason";
259
270
  })(RejectReason = exports.RejectReason || (exports.RejectReason = {}));
271
+ /**
272
+ *
273
+ * @export
274
+ * @enum {string}
275
+ */
276
+ var ReviewType;
277
+ (function (ReviewType) {
278
+ ReviewType["Photo"] = "Photo";
279
+ ReviewType["SurgeryReview"] = "SurgeryReview";
280
+ ReviewType["RealStory"] = "RealStory";
281
+ })(ReviewType = exports.ReviewType || (exports.ReviewType = {}));
260
282
  /**
261
283
  *
262
284
  * @export
@@ -6972,6 +6994,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
6972
6994
  * @param {string} [hospitalId]
6973
6995
  * @param {string} [languageCode]
6974
6996
  * @param {boolean} [returnDefaultValue]
6997
+ * @param {Array<string>} [ids]
6975
6998
  * @param {string} [id]
6976
6999
  * @param {string} [fullname]
6977
7000
  * @param {string} [email]
@@ -6985,7 +7008,7 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
6985
7008
  * @param {*} [options] Override http request option.
6986
7009
  * @throws {RequiredError}
6987
7010
  */
6988
- apiV2DoctorsGet: function (hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7011
+ apiV2DoctorsGet: function (hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
6989
7012
  if (options === void 0) { options = {}; }
6990
7013
  return __awaiter(_this, void 0, void 0, function () {
6991
7014
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -7007,6 +7030,9 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
7007
7030
  if (returnDefaultValue !== undefined) {
7008
7031
  localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
7009
7032
  }
7033
+ if (ids) {
7034
+ localVarQueryParameter['Ids'] = ids;
7035
+ }
7010
7036
  if (id !== undefined) {
7011
7037
  localVarQueryParameter['Id'] = id;
7012
7038
  }
@@ -7412,6 +7438,7 @@ exports.DoctorsApiFp = function (configuration) {
7412
7438
  * @param {string} [hospitalId]
7413
7439
  * @param {string} [languageCode]
7414
7440
  * @param {boolean} [returnDefaultValue]
7441
+ * @param {Array<string>} [ids]
7415
7442
  * @param {string} [id]
7416
7443
  * @param {string} [fullname]
7417
7444
  * @param {string} [email]
@@ -7425,12 +7452,12 @@ exports.DoctorsApiFp = function (configuration) {
7425
7452
  * @param {*} [options] Override http request option.
7426
7453
  * @throws {RequiredError}
7427
7454
  */
7428
- apiV2DoctorsGet: function (hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7455
+ apiV2DoctorsGet: function (hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7429
7456
  return __awaiter(this, void 0, void 0, function () {
7430
7457
  var localVarAxiosArgs;
7431
7458
  return __generator(this, function (_a) {
7432
7459
  switch (_a.label) {
7433
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
7460
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
7434
7461
  case 1:
7435
7462
  localVarAxiosArgs = _a.sent();
7436
7463
  return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7648,6 +7675,7 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
7648
7675
  * @param {string} [hospitalId]
7649
7676
  * @param {string} [languageCode]
7650
7677
  * @param {boolean} [returnDefaultValue]
7678
+ * @param {Array<string>} [ids]
7651
7679
  * @param {string} [id]
7652
7680
  * @param {string} [fullname]
7653
7681
  * @param {string} [email]
@@ -7661,8 +7689,8 @@ exports.DoctorsApiFactory = function (configuration, basePath, axios) {
7661
7689
  * @param {*} [options] Override http request option.
7662
7690
  * @throws {RequiredError}
7663
7691
  */
7664
- apiV2DoctorsGet: function (hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7665
- return localVarFp.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
7692
+ apiV2DoctorsGet: function (hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7693
+ return localVarFp.apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
7666
7694
  },
7667
7695
  /**
7668
7696
  *
@@ -7894,6 +7922,7 @@ var DoctorsApi = /** @class */ (function (_super) {
7894
7922
  * @param {string} [hospitalId]
7895
7923
  * @param {string} [languageCode]
7896
7924
  * @param {boolean} [returnDefaultValue]
7925
+ * @param {Array<string>} [ids]
7897
7926
  * @param {string} [id]
7898
7927
  * @param {string} [fullname]
7899
7928
  * @param {string} [email]
@@ -7908,9 +7937,9 @@ var DoctorsApi = /** @class */ (function (_super) {
7908
7937
  * @throws {RequiredError}
7909
7938
  * @memberof DoctorsApi
7910
7939
  */
7911
- DoctorsApi.prototype.apiV2DoctorsGet = function (hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7940
+ DoctorsApi.prototype.apiV2DoctorsGet = function (hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
7912
7941
  var _this = this;
7913
- return exports.DoctorsApiFp(this.configuration).apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
7942
+ return exports.DoctorsApiFp(this.configuration).apiV2DoctorsGet(hospitalId, languageCode, returnDefaultValue, ids, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
7914
7943
  };
7915
7944
  /**
7916
7945
  *
@@ -13469,6 +13498,2017 @@ var ProfilesApi = /** @class */ (function (_super) {
13469
13498
  return ProfilesApi;
13470
13499
  }(base_1.BaseAPI));
13471
13500
  exports.ProfilesApi = ProfilesApi;
13501
+ /**
13502
+ * SearchApi - axios parameter creator
13503
+ * @export
13504
+ */
13505
+ exports.SearchApiAxiosParamCreator = function (configuration) {
13506
+ var _this = this;
13507
+ return {
13508
+ /**
13509
+ *
13510
+ * @param {string} keyword
13511
+ * @param {AutocompleteMode} [mode]
13512
+ * @param {boolean} [fuzzy]
13513
+ * @param {boolean} [highlights]
13514
+ * @param {number} [size]
13515
+ * @param {number} [minimumCoverage]
13516
+ * @param {*} [options] Override http request option.
13517
+ * @throws {RequiredError}
13518
+ */
13519
+ apiV2SearchAutocompleteGet: function (keyword, mode, fuzzy, highlights, size, minimumCoverage, options) {
13520
+ if (options === void 0) { options = {}; }
13521
+ return __awaiter(_this, void 0, void 0, function () {
13522
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13523
+ return __generator(this, function (_a) {
13524
+ // verify required parameter 'keyword' is not null or undefined
13525
+ common_1.assertParamExists('apiV2SearchAutocompleteGet', 'keyword', keyword);
13526
+ localVarPath = "/api/v2/search/autocomplete";
13527
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13528
+ if (configuration) {
13529
+ baseOptions = configuration.baseOptions;
13530
+ }
13531
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13532
+ localVarHeaderParameter = {};
13533
+ localVarQueryParameter = {};
13534
+ if (mode !== undefined) {
13535
+ localVarQueryParameter['Mode'] = mode;
13536
+ }
13537
+ if (keyword !== undefined) {
13538
+ localVarQueryParameter['Keyword'] = keyword;
13539
+ }
13540
+ if (fuzzy !== undefined) {
13541
+ localVarQueryParameter['Fuzzy'] = fuzzy;
13542
+ }
13543
+ if (highlights !== undefined) {
13544
+ localVarQueryParameter['Highlights'] = highlights;
13545
+ }
13546
+ if (size !== undefined) {
13547
+ localVarQueryParameter['Size'] = size;
13548
+ }
13549
+ if (minimumCoverage !== undefined) {
13550
+ localVarQueryParameter['MinimumCoverage'] = minimumCoverage;
13551
+ }
13552
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13553
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13554
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13555
+ return [2 /*return*/, {
13556
+ url: common_1.toPathString(localVarUrlObj),
13557
+ options: localVarRequestOptions,
13558
+ }];
13559
+ });
13560
+ });
13561
+ },
13562
+ /**
13563
+ *
13564
+ * @param {string} [searchTerm]
13565
+ * @param {boolean} [countOnly]
13566
+ * @param {string} [countryId]
13567
+ * @param {string} [hospitalId]
13568
+ * @param {MarketingType} [marketingType]
13569
+ * @param {string} [languageCode]
13570
+ * @param {number} [page]
13571
+ * @param {number} [limit]
13572
+ * @param {Date} [lastRetrieved]
13573
+ * @param {*} [options] Override http request option.
13574
+ * @throws {RequiredError}
13575
+ */
13576
+ apiV2SearchDealsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
13577
+ if (options === void 0) { options = {}; }
13578
+ return __awaiter(_this, void 0, void 0, function () {
13579
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13580
+ return __generator(this, function (_a) {
13581
+ localVarPath = "/api/v2/search/deals";
13582
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13583
+ if (configuration) {
13584
+ baseOptions = configuration.baseOptions;
13585
+ }
13586
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13587
+ localVarHeaderParameter = {};
13588
+ localVarQueryParameter = {};
13589
+ if (searchTerm !== undefined) {
13590
+ localVarQueryParameter['SearchTerm'] = searchTerm;
13591
+ }
13592
+ if (countOnly !== undefined) {
13593
+ localVarQueryParameter['CountOnly'] = countOnly;
13594
+ }
13595
+ if (countryId !== undefined) {
13596
+ localVarQueryParameter['CountryId'] = countryId;
13597
+ }
13598
+ if (hospitalId !== undefined) {
13599
+ localVarQueryParameter['HospitalId'] = hospitalId;
13600
+ }
13601
+ if (marketingType !== undefined) {
13602
+ localVarQueryParameter['MarketingType'] = marketingType;
13603
+ }
13604
+ if (languageCode !== undefined) {
13605
+ localVarQueryParameter['LanguageCode'] = languageCode;
13606
+ }
13607
+ if (page !== undefined) {
13608
+ localVarQueryParameter['page'] = page;
13609
+ }
13610
+ if (limit !== undefined) {
13611
+ localVarQueryParameter['limit'] = limit;
13612
+ }
13613
+ if (lastRetrieved !== undefined) {
13614
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13615
+ lastRetrieved.toISOString() :
13616
+ lastRetrieved;
13617
+ }
13618
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13619
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13620
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13621
+ return [2 /*return*/, {
13622
+ url: common_1.toPathString(localVarUrlObj),
13623
+ options: localVarRequestOptions,
13624
+ }];
13625
+ });
13626
+ });
13627
+ },
13628
+ /**
13629
+ *
13630
+ * @param {string} [searchTerm]
13631
+ * @param {boolean} [countOnly]
13632
+ * @param {string} [countryId]
13633
+ * @param {string} [hospitalId]
13634
+ * @param {MarketingType} [marketingType]
13635
+ * @param {string} [languageCode]
13636
+ * @param {number} [page]
13637
+ * @param {number} [limit]
13638
+ * @param {Date} [lastRetrieved]
13639
+ * @param {*} [options] Override http request option.
13640
+ * @throws {RequiredError}
13641
+ */
13642
+ apiV2SearchDoctorsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
13643
+ if (options === void 0) { options = {}; }
13644
+ return __awaiter(_this, void 0, void 0, function () {
13645
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13646
+ return __generator(this, function (_a) {
13647
+ localVarPath = "/api/v2/search/doctors";
13648
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13649
+ if (configuration) {
13650
+ baseOptions = configuration.baseOptions;
13651
+ }
13652
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13653
+ localVarHeaderParameter = {};
13654
+ localVarQueryParameter = {};
13655
+ if (searchTerm !== undefined) {
13656
+ localVarQueryParameter['SearchTerm'] = searchTerm;
13657
+ }
13658
+ if (countOnly !== undefined) {
13659
+ localVarQueryParameter['CountOnly'] = countOnly;
13660
+ }
13661
+ if (countryId !== undefined) {
13662
+ localVarQueryParameter['CountryId'] = countryId;
13663
+ }
13664
+ if (hospitalId !== undefined) {
13665
+ localVarQueryParameter['HospitalId'] = hospitalId;
13666
+ }
13667
+ if (marketingType !== undefined) {
13668
+ localVarQueryParameter['MarketingType'] = marketingType;
13669
+ }
13670
+ if (languageCode !== undefined) {
13671
+ localVarQueryParameter['LanguageCode'] = languageCode;
13672
+ }
13673
+ if (page !== undefined) {
13674
+ localVarQueryParameter['page'] = page;
13675
+ }
13676
+ if (limit !== undefined) {
13677
+ localVarQueryParameter['limit'] = limit;
13678
+ }
13679
+ if (lastRetrieved !== undefined) {
13680
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13681
+ lastRetrieved.toISOString() :
13682
+ lastRetrieved;
13683
+ }
13684
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13685
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13686
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13687
+ return [2 /*return*/, {
13688
+ url: common_1.toPathString(localVarUrlObj),
13689
+ options: localVarRequestOptions,
13690
+ }];
13691
+ });
13692
+ });
13693
+ },
13694
+ /**
13695
+ *
13696
+ * @param {string} [searchTerm]
13697
+ * @param {boolean} [countOnly]
13698
+ * @param {string} [countryId]
13699
+ * @param {string} [hospitalId]
13700
+ * @param {MarketingType} [marketingType]
13701
+ * @param {string} [languageCode]
13702
+ * @param {number} [page]
13703
+ * @param {number} [limit]
13704
+ * @param {Date} [lastRetrieved]
13705
+ * @param {*} [options] Override http request option.
13706
+ * @throws {RequiredError}
13707
+ */
13708
+ apiV2SearchGetcountGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
13709
+ if (options === void 0) { options = {}; }
13710
+ return __awaiter(_this, void 0, void 0, function () {
13711
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13712
+ return __generator(this, function (_a) {
13713
+ localVarPath = "/api/v2/search/getcount";
13714
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13715
+ if (configuration) {
13716
+ baseOptions = configuration.baseOptions;
13717
+ }
13718
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13719
+ localVarHeaderParameter = {};
13720
+ localVarQueryParameter = {};
13721
+ if (searchTerm !== undefined) {
13722
+ localVarQueryParameter['SearchTerm'] = searchTerm;
13723
+ }
13724
+ if (countOnly !== undefined) {
13725
+ localVarQueryParameter['CountOnly'] = countOnly;
13726
+ }
13727
+ if (countryId !== undefined) {
13728
+ localVarQueryParameter['CountryId'] = countryId;
13729
+ }
13730
+ if (hospitalId !== undefined) {
13731
+ localVarQueryParameter['HospitalId'] = hospitalId;
13732
+ }
13733
+ if (marketingType !== undefined) {
13734
+ localVarQueryParameter['MarketingType'] = marketingType;
13735
+ }
13736
+ if (languageCode !== undefined) {
13737
+ localVarQueryParameter['LanguageCode'] = languageCode;
13738
+ }
13739
+ if (page !== undefined) {
13740
+ localVarQueryParameter['page'] = page;
13741
+ }
13742
+ if (limit !== undefined) {
13743
+ localVarQueryParameter['limit'] = limit;
13744
+ }
13745
+ if (lastRetrieved !== undefined) {
13746
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13747
+ lastRetrieved.toISOString() :
13748
+ lastRetrieved;
13749
+ }
13750
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13751
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13752
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13753
+ return [2 /*return*/, {
13754
+ url: common_1.toPathString(localVarUrlObj),
13755
+ options: localVarRequestOptions,
13756
+ }];
13757
+ });
13758
+ });
13759
+ },
13760
+ /**
13761
+ *
13762
+ * @param {string} [searchTerm]
13763
+ * @param {boolean} [countOnly]
13764
+ * @param {string} [countryId]
13765
+ * @param {string} [hospitalId]
13766
+ * @param {MarketingType} [marketingType]
13767
+ * @param {string} [languageCode]
13768
+ * @param {number} [page]
13769
+ * @param {number} [limit]
13770
+ * @param {Date} [lastRetrieved]
13771
+ * @param {*} [options] Override http request option.
13772
+ * @throws {RequiredError}
13773
+ */
13774
+ apiV2SearchHospitalsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
13775
+ if (options === void 0) { options = {}; }
13776
+ return __awaiter(_this, void 0, void 0, function () {
13777
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13778
+ return __generator(this, function (_a) {
13779
+ localVarPath = "/api/v2/search/hospitals";
13780
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13781
+ if (configuration) {
13782
+ baseOptions = configuration.baseOptions;
13783
+ }
13784
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13785
+ localVarHeaderParameter = {};
13786
+ localVarQueryParameter = {};
13787
+ if (searchTerm !== undefined) {
13788
+ localVarQueryParameter['SearchTerm'] = searchTerm;
13789
+ }
13790
+ if (countOnly !== undefined) {
13791
+ localVarQueryParameter['CountOnly'] = countOnly;
13792
+ }
13793
+ if (countryId !== undefined) {
13794
+ localVarQueryParameter['CountryId'] = countryId;
13795
+ }
13796
+ if (hospitalId !== undefined) {
13797
+ localVarQueryParameter['HospitalId'] = hospitalId;
13798
+ }
13799
+ if (marketingType !== undefined) {
13800
+ localVarQueryParameter['MarketingType'] = marketingType;
13801
+ }
13802
+ if (languageCode !== undefined) {
13803
+ localVarQueryParameter['LanguageCode'] = languageCode;
13804
+ }
13805
+ if (page !== undefined) {
13806
+ localVarQueryParameter['page'] = page;
13807
+ }
13808
+ if (limit !== undefined) {
13809
+ localVarQueryParameter['limit'] = limit;
13810
+ }
13811
+ if (lastRetrieved !== undefined) {
13812
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13813
+ lastRetrieved.toISOString() :
13814
+ lastRetrieved;
13815
+ }
13816
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13817
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13818
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13819
+ return [2 /*return*/, {
13820
+ url: common_1.toPathString(localVarUrlObj),
13821
+ options: localVarRequestOptions,
13822
+ }];
13823
+ });
13824
+ });
13825
+ },
13826
+ /**
13827
+ *
13828
+ * @param {string} [searchTerm]
13829
+ * @param {boolean} [countOnly]
13830
+ * @param {string} [countryId]
13831
+ * @param {string} [hospitalId]
13832
+ * @param {MarketingType} [marketingType]
13833
+ * @param {string} [languageCode]
13834
+ * @param {number} [page]
13835
+ * @param {number} [limit]
13836
+ * @param {Date} [lastRetrieved]
13837
+ * @param {*} [options] Override http request option.
13838
+ * @throws {RequiredError}
13839
+ */
13840
+ apiV2SearchSpecialtiesGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
13841
+ if (options === void 0) { options = {}; }
13842
+ return __awaiter(_this, void 0, void 0, function () {
13843
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13844
+ return __generator(this, function (_a) {
13845
+ localVarPath = "/api/v2/search/specialties";
13846
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13847
+ if (configuration) {
13848
+ baseOptions = configuration.baseOptions;
13849
+ }
13850
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13851
+ localVarHeaderParameter = {};
13852
+ localVarQueryParameter = {};
13853
+ if (searchTerm !== undefined) {
13854
+ localVarQueryParameter['SearchTerm'] = searchTerm;
13855
+ }
13856
+ if (countOnly !== undefined) {
13857
+ localVarQueryParameter['CountOnly'] = countOnly;
13858
+ }
13859
+ if (countryId !== undefined) {
13860
+ localVarQueryParameter['CountryId'] = countryId;
13861
+ }
13862
+ if (hospitalId !== undefined) {
13863
+ localVarQueryParameter['HospitalId'] = hospitalId;
13864
+ }
13865
+ if (marketingType !== undefined) {
13866
+ localVarQueryParameter['MarketingType'] = marketingType;
13867
+ }
13868
+ if (languageCode !== undefined) {
13869
+ localVarQueryParameter['LanguageCode'] = languageCode;
13870
+ }
13871
+ if (page !== undefined) {
13872
+ localVarQueryParameter['page'] = page;
13873
+ }
13874
+ if (limit !== undefined) {
13875
+ localVarQueryParameter['limit'] = limit;
13876
+ }
13877
+ if (lastRetrieved !== undefined) {
13878
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13879
+ lastRetrieved.toISOString() :
13880
+ lastRetrieved;
13881
+ }
13882
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13883
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13884
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13885
+ return [2 /*return*/, {
13886
+ url: common_1.toPathString(localVarUrlObj),
13887
+ options: localVarRequestOptions,
13888
+ }];
13889
+ });
13890
+ });
13891
+ },
13892
+ /**
13893
+ *
13894
+ * @param {string} [searchTerm]
13895
+ * @param {boolean} [countOnly]
13896
+ * @param {string} [countryId]
13897
+ * @param {string} [hospitalId]
13898
+ * @param {MarketingType} [marketingType]
13899
+ * @param {string} [languageCode]
13900
+ * @param {number} [page]
13901
+ * @param {number} [limit]
13902
+ * @param {Date} [lastRetrieved]
13903
+ * @param {*} [options] Override http request option.
13904
+ * @throws {RequiredError}
13905
+ */
13906
+ apiV2SearchSpecialtytypesGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
13907
+ if (options === void 0) { options = {}; }
13908
+ return __awaiter(_this, void 0, void 0, function () {
13909
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13910
+ return __generator(this, function (_a) {
13911
+ localVarPath = "/api/v2/search/specialtytypes";
13912
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13913
+ if (configuration) {
13914
+ baseOptions = configuration.baseOptions;
13915
+ }
13916
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13917
+ localVarHeaderParameter = {};
13918
+ localVarQueryParameter = {};
13919
+ if (searchTerm !== undefined) {
13920
+ localVarQueryParameter['SearchTerm'] = searchTerm;
13921
+ }
13922
+ if (countOnly !== undefined) {
13923
+ localVarQueryParameter['CountOnly'] = countOnly;
13924
+ }
13925
+ if (countryId !== undefined) {
13926
+ localVarQueryParameter['CountryId'] = countryId;
13927
+ }
13928
+ if (hospitalId !== undefined) {
13929
+ localVarQueryParameter['HospitalId'] = hospitalId;
13930
+ }
13931
+ if (marketingType !== undefined) {
13932
+ localVarQueryParameter['MarketingType'] = marketingType;
13933
+ }
13934
+ if (languageCode !== undefined) {
13935
+ localVarQueryParameter['LanguageCode'] = languageCode;
13936
+ }
13937
+ if (page !== undefined) {
13938
+ localVarQueryParameter['page'] = page;
13939
+ }
13940
+ if (limit !== undefined) {
13941
+ localVarQueryParameter['limit'] = limit;
13942
+ }
13943
+ if (lastRetrieved !== undefined) {
13944
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
13945
+ lastRetrieved.toISOString() :
13946
+ lastRetrieved;
13947
+ }
13948
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13949
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13950
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13951
+ return [2 /*return*/, {
13952
+ url: common_1.toPathString(localVarUrlObj),
13953
+ options: localVarRequestOptions,
13954
+ }];
13955
+ });
13956
+ });
13957
+ },
13958
+ /**
13959
+ *
13960
+ * @param {string} keyword
13961
+ * @param {boolean} [fuzzy]
13962
+ * @param {boolean} [highlights]
13963
+ * @param {number} [size]
13964
+ * @param {*} [options] Override http request option.
13965
+ * @throws {RequiredError}
13966
+ */
13967
+ apiV2SearchSuggestGet: function (keyword, fuzzy, highlights, size, options) {
13968
+ if (options === void 0) { options = {}; }
13969
+ return __awaiter(_this, void 0, void 0, function () {
13970
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
13971
+ return __generator(this, function (_a) {
13972
+ // verify required parameter 'keyword' is not null or undefined
13973
+ common_1.assertParamExists('apiV2SearchSuggestGet', 'keyword', keyword);
13974
+ localVarPath = "/api/v2/search/suggest";
13975
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13976
+ if (configuration) {
13977
+ baseOptions = configuration.baseOptions;
13978
+ }
13979
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
13980
+ localVarHeaderParameter = {};
13981
+ localVarQueryParameter = {};
13982
+ if (keyword !== undefined) {
13983
+ localVarQueryParameter['Keyword'] = keyword;
13984
+ }
13985
+ if (fuzzy !== undefined) {
13986
+ localVarQueryParameter['Fuzzy'] = fuzzy;
13987
+ }
13988
+ if (highlights !== undefined) {
13989
+ localVarQueryParameter['Highlights'] = highlights;
13990
+ }
13991
+ if (size !== undefined) {
13992
+ localVarQueryParameter['Size'] = size;
13993
+ }
13994
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
13995
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13996
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13997
+ return [2 /*return*/, {
13998
+ url: common_1.toPathString(localVarUrlObj),
13999
+ options: localVarRequestOptions,
14000
+ }];
14001
+ });
14002
+ });
14003
+ },
14004
+ };
14005
+ };
14006
+ /**
14007
+ * SearchApi - functional programming interface
14008
+ * @export
14009
+ */
14010
+ exports.SearchApiFp = function (configuration) {
14011
+ var localVarAxiosParamCreator = exports.SearchApiAxiosParamCreator(configuration);
14012
+ return {
14013
+ /**
14014
+ *
14015
+ * @param {string} keyword
14016
+ * @param {AutocompleteMode} [mode]
14017
+ * @param {boolean} [fuzzy]
14018
+ * @param {boolean} [highlights]
14019
+ * @param {number} [size]
14020
+ * @param {number} [minimumCoverage]
14021
+ * @param {*} [options] Override http request option.
14022
+ * @throws {RequiredError}
14023
+ */
14024
+ apiV2SearchAutocompleteGet: function (keyword, mode, fuzzy, highlights, size, minimumCoverage, options) {
14025
+ return __awaiter(this, void 0, void 0, function () {
14026
+ var localVarAxiosArgs;
14027
+ return __generator(this, function (_a) {
14028
+ switch (_a.label) {
14029
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchAutocompleteGet(keyword, mode, fuzzy, highlights, size, minimumCoverage, options)];
14030
+ case 1:
14031
+ localVarAxiosArgs = _a.sent();
14032
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14033
+ }
14034
+ });
14035
+ });
14036
+ },
14037
+ /**
14038
+ *
14039
+ * @param {string} [searchTerm]
14040
+ * @param {boolean} [countOnly]
14041
+ * @param {string} [countryId]
14042
+ * @param {string} [hospitalId]
14043
+ * @param {MarketingType} [marketingType]
14044
+ * @param {string} [languageCode]
14045
+ * @param {number} [page]
14046
+ * @param {number} [limit]
14047
+ * @param {Date} [lastRetrieved]
14048
+ * @param {*} [options] Override http request option.
14049
+ * @throws {RequiredError}
14050
+ */
14051
+ apiV2SearchDealsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14052
+ return __awaiter(this, void 0, void 0, function () {
14053
+ var localVarAxiosArgs;
14054
+ return __generator(this, function (_a) {
14055
+ switch (_a.label) {
14056
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchDealsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options)];
14057
+ case 1:
14058
+ localVarAxiosArgs = _a.sent();
14059
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14060
+ }
14061
+ });
14062
+ });
14063
+ },
14064
+ /**
14065
+ *
14066
+ * @param {string} [searchTerm]
14067
+ * @param {boolean} [countOnly]
14068
+ * @param {string} [countryId]
14069
+ * @param {string} [hospitalId]
14070
+ * @param {MarketingType} [marketingType]
14071
+ * @param {string} [languageCode]
14072
+ * @param {number} [page]
14073
+ * @param {number} [limit]
14074
+ * @param {Date} [lastRetrieved]
14075
+ * @param {*} [options] Override http request option.
14076
+ * @throws {RequiredError}
14077
+ */
14078
+ apiV2SearchDoctorsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14079
+ return __awaiter(this, void 0, void 0, function () {
14080
+ var localVarAxiosArgs;
14081
+ return __generator(this, function (_a) {
14082
+ switch (_a.label) {
14083
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchDoctorsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options)];
14084
+ case 1:
14085
+ localVarAxiosArgs = _a.sent();
14086
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14087
+ }
14088
+ });
14089
+ });
14090
+ },
14091
+ /**
14092
+ *
14093
+ * @param {string} [searchTerm]
14094
+ * @param {boolean} [countOnly]
14095
+ * @param {string} [countryId]
14096
+ * @param {string} [hospitalId]
14097
+ * @param {MarketingType} [marketingType]
14098
+ * @param {string} [languageCode]
14099
+ * @param {number} [page]
14100
+ * @param {number} [limit]
14101
+ * @param {Date} [lastRetrieved]
14102
+ * @param {*} [options] Override http request option.
14103
+ * @throws {RequiredError}
14104
+ */
14105
+ apiV2SearchGetcountGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14106
+ return __awaiter(this, void 0, void 0, function () {
14107
+ var localVarAxiosArgs;
14108
+ return __generator(this, function (_a) {
14109
+ switch (_a.label) {
14110
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchGetcountGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options)];
14111
+ case 1:
14112
+ localVarAxiosArgs = _a.sent();
14113
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14114
+ }
14115
+ });
14116
+ });
14117
+ },
14118
+ /**
14119
+ *
14120
+ * @param {string} [searchTerm]
14121
+ * @param {boolean} [countOnly]
14122
+ * @param {string} [countryId]
14123
+ * @param {string} [hospitalId]
14124
+ * @param {MarketingType} [marketingType]
14125
+ * @param {string} [languageCode]
14126
+ * @param {number} [page]
14127
+ * @param {number} [limit]
14128
+ * @param {Date} [lastRetrieved]
14129
+ * @param {*} [options] Override http request option.
14130
+ * @throws {RequiredError}
14131
+ */
14132
+ apiV2SearchHospitalsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14133
+ return __awaiter(this, void 0, void 0, function () {
14134
+ var localVarAxiosArgs;
14135
+ return __generator(this, function (_a) {
14136
+ switch (_a.label) {
14137
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchHospitalsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options)];
14138
+ case 1:
14139
+ localVarAxiosArgs = _a.sent();
14140
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14141
+ }
14142
+ });
14143
+ });
14144
+ },
14145
+ /**
14146
+ *
14147
+ * @param {string} [searchTerm]
14148
+ * @param {boolean} [countOnly]
14149
+ * @param {string} [countryId]
14150
+ * @param {string} [hospitalId]
14151
+ * @param {MarketingType} [marketingType]
14152
+ * @param {string} [languageCode]
14153
+ * @param {number} [page]
14154
+ * @param {number} [limit]
14155
+ * @param {Date} [lastRetrieved]
14156
+ * @param {*} [options] Override http request option.
14157
+ * @throws {RequiredError}
14158
+ */
14159
+ apiV2SearchSpecialtiesGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14160
+ return __awaiter(this, void 0, void 0, function () {
14161
+ var localVarAxiosArgs;
14162
+ return __generator(this, function (_a) {
14163
+ switch (_a.label) {
14164
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchSpecialtiesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options)];
14165
+ case 1:
14166
+ localVarAxiosArgs = _a.sent();
14167
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14168
+ }
14169
+ });
14170
+ });
14171
+ },
14172
+ /**
14173
+ *
14174
+ * @param {string} [searchTerm]
14175
+ * @param {boolean} [countOnly]
14176
+ * @param {string} [countryId]
14177
+ * @param {string} [hospitalId]
14178
+ * @param {MarketingType} [marketingType]
14179
+ * @param {string} [languageCode]
14180
+ * @param {number} [page]
14181
+ * @param {number} [limit]
14182
+ * @param {Date} [lastRetrieved]
14183
+ * @param {*} [options] Override http request option.
14184
+ * @throws {RequiredError}
14185
+ */
14186
+ apiV2SearchSpecialtytypesGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14187
+ return __awaiter(this, void 0, void 0, function () {
14188
+ var localVarAxiosArgs;
14189
+ return __generator(this, function (_a) {
14190
+ switch (_a.label) {
14191
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchSpecialtytypesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options)];
14192
+ case 1:
14193
+ localVarAxiosArgs = _a.sent();
14194
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14195
+ }
14196
+ });
14197
+ });
14198
+ },
14199
+ /**
14200
+ *
14201
+ * @param {string} keyword
14202
+ * @param {boolean} [fuzzy]
14203
+ * @param {boolean} [highlights]
14204
+ * @param {number} [size]
14205
+ * @param {*} [options] Override http request option.
14206
+ * @throws {RequiredError}
14207
+ */
14208
+ apiV2SearchSuggestGet: function (keyword, fuzzy, highlights, size, options) {
14209
+ return __awaiter(this, void 0, void 0, function () {
14210
+ var localVarAxiosArgs;
14211
+ return __generator(this, function (_a) {
14212
+ switch (_a.label) {
14213
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SearchSuggestGet(keyword, fuzzy, highlights, size, options)];
14214
+ case 1:
14215
+ localVarAxiosArgs = _a.sent();
14216
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
14217
+ }
14218
+ });
14219
+ });
14220
+ },
14221
+ };
14222
+ };
14223
+ /**
14224
+ * SearchApi - factory interface
14225
+ * @export
14226
+ */
14227
+ exports.SearchApiFactory = function (configuration, basePath, axios) {
14228
+ var localVarFp = exports.SearchApiFp(configuration);
14229
+ return {
14230
+ /**
14231
+ *
14232
+ * @param {string} keyword
14233
+ * @param {AutocompleteMode} [mode]
14234
+ * @param {boolean} [fuzzy]
14235
+ * @param {boolean} [highlights]
14236
+ * @param {number} [size]
14237
+ * @param {number} [minimumCoverage]
14238
+ * @param {*} [options] Override http request option.
14239
+ * @throws {RequiredError}
14240
+ */
14241
+ apiV2SearchAutocompleteGet: function (keyword, mode, fuzzy, highlights, size, minimumCoverage, options) {
14242
+ return localVarFp.apiV2SearchAutocompleteGet(keyword, mode, fuzzy, highlights, size, minimumCoverage, options).then(function (request) { return request(axios, basePath); });
14243
+ },
14244
+ /**
14245
+ *
14246
+ * @param {string} [searchTerm]
14247
+ * @param {boolean} [countOnly]
14248
+ * @param {string} [countryId]
14249
+ * @param {string} [hospitalId]
14250
+ * @param {MarketingType} [marketingType]
14251
+ * @param {string} [languageCode]
14252
+ * @param {number} [page]
14253
+ * @param {number} [limit]
14254
+ * @param {Date} [lastRetrieved]
14255
+ * @param {*} [options] Override http request option.
14256
+ * @throws {RequiredError}
14257
+ */
14258
+ apiV2SearchDealsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14259
+ return localVarFp.apiV2SearchDealsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14260
+ },
14261
+ /**
14262
+ *
14263
+ * @param {string} [searchTerm]
14264
+ * @param {boolean} [countOnly]
14265
+ * @param {string} [countryId]
14266
+ * @param {string} [hospitalId]
14267
+ * @param {MarketingType} [marketingType]
14268
+ * @param {string} [languageCode]
14269
+ * @param {number} [page]
14270
+ * @param {number} [limit]
14271
+ * @param {Date} [lastRetrieved]
14272
+ * @param {*} [options] Override http request option.
14273
+ * @throws {RequiredError}
14274
+ */
14275
+ apiV2SearchDoctorsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14276
+ return localVarFp.apiV2SearchDoctorsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14277
+ },
14278
+ /**
14279
+ *
14280
+ * @param {string} [searchTerm]
14281
+ * @param {boolean} [countOnly]
14282
+ * @param {string} [countryId]
14283
+ * @param {string} [hospitalId]
14284
+ * @param {MarketingType} [marketingType]
14285
+ * @param {string} [languageCode]
14286
+ * @param {number} [page]
14287
+ * @param {number} [limit]
14288
+ * @param {Date} [lastRetrieved]
14289
+ * @param {*} [options] Override http request option.
14290
+ * @throws {RequiredError}
14291
+ */
14292
+ apiV2SearchGetcountGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14293
+ return localVarFp.apiV2SearchGetcountGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14294
+ },
14295
+ /**
14296
+ *
14297
+ * @param {string} [searchTerm]
14298
+ * @param {boolean} [countOnly]
14299
+ * @param {string} [countryId]
14300
+ * @param {string} [hospitalId]
14301
+ * @param {MarketingType} [marketingType]
14302
+ * @param {string} [languageCode]
14303
+ * @param {number} [page]
14304
+ * @param {number} [limit]
14305
+ * @param {Date} [lastRetrieved]
14306
+ * @param {*} [options] Override http request option.
14307
+ * @throws {RequiredError}
14308
+ */
14309
+ apiV2SearchHospitalsGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14310
+ return localVarFp.apiV2SearchHospitalsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14311
+ },
14312
+ /**
14313
+ *
14314
+ * @param {string} [searchTerm]
14315
+ * @param {boolean} [countOnly]
14316
+ * @param {string} [countryId]
14317
+ * @param {string} [hospitalId]
14318
+ * @param {MarketingType} [marketingType]
14319
+ * @param {string} [languageCode]
14320
+ * @param {number} [page]
14321
+ * @param {number} [limit]
14322
+ * @param {Date} [lastRetrieved]
14323
+ * @param {*} [options] Override http request option.
14324
+ * @throws {RequiredError}
14325
+ */
14326
+ apiV2SearchSpecialtiesGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14327
+ return localVarFp.apiV2SearchSpecialtiesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14328
+ },
14329
+ /**
14330
+ *
14331
+ * @param {string} [searchTerm]
14332
+ * @param {boolean} [countOnly]
14333
+ * @param {string} [countryId]
14334
+ * @param {string} [hospitalId]
14335
+ * @param {MarketingType} [marketingType]
14336
+ * @param {string} [languageCode]
14337
+ * @param {number} [page]
14338
+ * @param {number} [limit]
14339
+ * @param {Date} [lastRetrieved]
14340
+ * @param {*} [options] Override http request option.
14341
+ * @throws {RequiredError}
14342
+ */
14343
+ apiV2SearchSpecialtytypesGet: function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14344
+ return localVarFp.apiV2SearchSpecialtytypesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
14345
+ },
14346
+ /**
14347
+ *
14348
+ * @param {string} keyword
14349
+ * @param {boolean} [fuzzy]
14350
+ * @param {boolean} [highlights]
14351
+ * @param {number} [size]
14352
+ * @param {*} [options] Override http request option.
14353
+ * @throws {RequiredError}
14354
+ */
14355
+ apiV2SearchSuggestGet: function (keyword, fuzzy, highlights, size, options) {
14356
+ return localVarFp.apiV2SearchSuggestGet(keyword, fuzzy, highlights, size, options).then(function (request) { return request(axios, basePath); });
14357
+ },
14358
+ };
14359
+ };
14360
+ /**
14361
+ * SearchApi - object-oriented interface
14362
+ * @export
14363
+ * @class SearchApi
14364
+ * @extends {BaseAPI}
14365
+ */
14366
+ var SearchApi = /** @class */ (function (_super) {
14367
+ __extends(SearchApi, _super);
14368
+ function SearchApi() {
14369
+ return _super !== null && _super.apply(this, arguments) || this;
14370
+ }
14371
+ /**
14372
+ *
14373
+ * @param {string} keyword
14374
+ * @param {AutocompleteMode} [mode]
14375
+ * @param {boolean} [fuzzy]
14376
+ * @param {boolean} [highlights]
14377
+ * @param {number} [size]
14378
+ * @param {number} [minimumCoverage]
14379
+ * @param {*} [options] Override http request option.
14380
+ * @throws {RequiredError}
14381
+ * @memberof SearchApi
14382
+ */
14383
+ SearchApi.prototype.apiV2SearchAutocompleteGet = function (keyword, mode, fuzzy, highlights, size, minimumCoverage, options) {
14384
+ var _this = this;
14385
+ return exports.SearchApiFp(this.configuration).apiV2SearchAutocompleteGet(keyword, mode, fuzzy, highlights, size, minimumCoverage, options).then(function (request) { return request(_this.axios, _this.basePath); });
14386
+ };
14387
+ /**
14388
+ *
14389
+ * @param {string} [searchTerm]
14390
+ * @param {boolean} [countOnly]
14391
+ * @param {string} [countryId]
14392
+ * @param {string} [hospitalId]
14393
+ * @param {MarketingType} [marketingType]
14394
+ * @param {string} [languageCode]
14395
+ * @param {number} [page]
14396
+ * @param {number} [limit]
14397
+ * @param {Date} [lastRetrieved]
14398
+ * @param {*} [options] Override http request option.
14399
+ * @throws {RequiredError}
14400
+ * @memberof SearchApi
14401
+ */
14402
+ SearchApi.prototype.apiV2SearchDealsGet = function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14403
+ var _this = this;
14404
+ return exports.SearchApiFp(this.configuration).apiV2SearchDealsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14405
+ };
14406
+ /**
14407
+ *
14408
+ * @param {string} [searchTerm]
14409
+ * @param {boolean} [countOnly]
14410
+ * @param {string} [countryId]
14411
+ * @param {string} [hospitalId]
14412
+ * @param {MarketingType} [marketingType]
14413
+ * @param {string} [languageCode]
14414
+ * @param {number} [page]
14415
+ * @param {number} [limit]
14416
+ * @param {Date} [lastRetrieved]
14417
+ * @param {*} [options] Override http request option.
14418
+ * @throws {RequiredError}
14419
+ * @memberof SearchApi
14420
+ */
14421
+ SearchApi.prototype.apiV2SearchDoctorsGet = function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14422
+ var _this = this;
14423
+ return exports.SearchApiFp(this.configuration).apiV2SearchDoctorsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14424
+ };
14425
+ /**
14426
+ *
14427
+ * @param {string} [searchTerm]
14428
+ * @param {boolean} [countOnly]
14429
+ * @param {string} [countryId]
14430
+ * @param {string} [hospitalId]
14431
+ * @param {MarketingType} [marketingType]
14432
+ * @param {string} [languageCode]
14433
+ * @param {number} [page]
14434
+ * @param {number} [limit]
14435
+ * @param {Date} [lastRetrieved]
14436
+ * @param {*} [options] Override http request option.
14437
+ * @throws {RequiredError}
14438
+ * @memberof SearchApi
14439
+ */
14440
+ SearchApi.prototype.apiV2SearchGetcountGet = function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14441
+ var _this = this;
14442
+ return exports.SearchApiFp(this.configuration).apiV2SearchGetcountGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14443
+ };
14444
+ /**
14445
+ *
14446
+ * @param {string} [searchTerm]
14447
+ * @param {boolean} [countOnly]
14448
+ * @param {string} [countryId]
14449
+ * @param {string} [hospitalId]
14450
+ * @param {MarketingType} [marketingType]
14451
+ * @param {string} [languageCode]
14452
+ * @param {number} [page]
14453
+ * @param {number} [limit]
14454
+ * @param {Date} [lastRetrieved]
14455
+ * @param {*} [options] Override http request option.
14456
+ * @throws {RequiredError}
14457
+ * @memberof SearchApi
14458
+ */
14459
+ SearchApi.prototype.apiV2SearchHospitalsGet = function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14460
+ var _this = this;
14461
+ return exports.SearchApiFp(this.configuration).apiV2SearchHospitalsGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14462
+ };
14463
+ /**
14464
+ *
14465
+ * @param {string} [searchTerm]
14466
+ * @param {boolean} [countOnly]
14467
+ * @param {string} [countryId]
14468
+ * @param {string} [hospitalId]
14469
+ * @param {MarketingType} [marketingType]
14470
+ * @param {string} [languageCode]
14471
+ * @param {number} [page]
14472
+ * @param {number} [limit]
14473
+ * @param {Date} [lastRetrieved]
14474
+ * @param {*} [options] Override http request option.
14475
+ * @throws {RequiredError}
14476
+ * @memberof SearchApi
14477
+ */
14478
+ SearchApi.prototype.apiV2SearchSpecialtiesGet = function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14479
+ var _this = this;
14480
+ return exports.SearchApiFp(this.configuration).apiV2SearchSpecialtiesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14481
+ };
14482
+ /**
14483
+ *
14484
+ * @param {string} [searchTerm]
14485
+ * @param {boolean} [countOnly]
14486
+ * @param {string} [countryId]
14487
+ * @param {string} [hospitalId]
14488
+ * @param {MarketingType} [marketingType]
14489
+ * @param {string} [languageCode]
14490
+ * @param {number} [page]
14491
+ * @param {number} [limit]
14492
+ * @param {Date} [lastRetrieved]
14493
+ * @param {*} [options] Override http request option.
14494
+ * @throws {RequiredError}
14495
+ * @memberof SearchApi
14496
+ */
14497
+ SearchApi.prototype.apiV2SearchSpecialtytypesGet = function (searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options) {
14498
+ var _this = this;
14499
+ return exports.SearchApiFp(this.configuration).apiV2SearchSpecialtytypesGet(searchTerm, countOnly, countryId, hospitalId, marketingType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
14500
+ };
14501
+ /**
14502
+ *
14503
+ * @param {string} keyword
14504
+ * @param {boolean} [fuzzy]
14505
+ * @param {boolean} [highlights]
14506
+ * @param {number} [size]
14507
+ * @param {*} [options] Override http request option.
14508
+ * @throws {RequiredError}
14509
+ * @memberof SearchApi
14510
+ */
14511
+ SearchApi.prototype.apiV2SearchSuggestGet = function (keyword, fuzzy, highlights, size, options) {
14512
+ var _this = this;
14513
+ return exports.SearchApiFp(this.configuration).apiV2SearchSuggestGet(keyword, fuzzy, highlights, size, options).then(function (request) { return request(_this.axios, _this.basePath); });
14514
+ };
14515
+ return SearchApi;
14516
+ }(base_1.BaseAPI));
14517
+ exports.SearchApi = SearchApi;
14518
+ /**
14519
+ * ServiceReviewsApi - axios parameter creator
14520
+ * @export
14521
+ */
14522
+ exports.ServiceReviewsApiAxiosParamCreator = function (configuration) {
14523
+ var _this = this;
14524
+ return {
14525
+ /**
14526
+ *
14527
+ * @summary Get all ServiceReviews.
14528
+ * @param {string} [hospitalId]
14529
+ * @param {string} [serviceId]
14530
+ * @param {string} [serviceName]
14531
+ * @param {string} [patientId]
14532
+ * @param {string} [patientName]
14533
+ * @param {boolean} [recommended]
14534
+ * @param {number} [rate]
14535
+ * @param {ReviewType} [reviewType]
14536
+ * @param {number} [page]
14537
+ * @param {number} [limit]
14538
+ * @param {Date} [lastRetrieved]
14539
+ * @param {*} [options] Override http request option.
14540
+ * @throws {RequiredError}
14541
+ */
14542
+ apiV2ServicereviewsGet: function (hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
14543
+ if (options === void 0) { options = {}; }
14544
+ return __awaiter(_this, void 0, void 0, function () {
14545
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14546
+ return __generator(this, function (_a) {
14547
+ localVarPath = "/api/v2/servicereviews";
14548
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14549
+ if (configuration) {
14550
+ baseOptions = configuration.baseOptions;
14551
+ }
14552
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14553
+ localVarHeaderParameter = {};
14554
+ localVarQueryParameter = {};
14555
+ if (hospitalId !== undefined) {
14556
+ localVarQueryParameter['HospitalId'] = hospitalId;
14557
+ }
14558
+ if (serviceId !== undefined) {
14559
+ localVarQueryParameter['ServiceId'] = serviceId;
14560
+ }
14561
+ if (serviceName !== undefined) {
14562
+ localVarQueryParameter['ServiceName'] = serviceName;
14563
+ }
14564
+ if (patientId !== undefined) {
14565
+ localVarQueryParameter['PatientId'] = patientId;
14566
+ }
14567
+ if (patientName !== undefined) {
14568
+ localVarQueryParameter['PatientName'] = patientName;
14569
+ }
14570
+ if (recommended !== undefined) {
14571
+ localVarQueryParameter['Recommended'] = recommended;
14572
+ }
14573
+ if (rate !== undefined) {
14574
+ localVarQueryParameter['Rate'] = rate;
14575
+ }
14576
+ if (reviewType !== undefined) {
14577
+ localVarQueryParameter['ReviewType'] = reviewType;
14578
+ }
14579
+ if (page !== undefined) {
14580
+ localVarQueryParameter['page'] = page;
14581
+ }
14582
+ if (limit !== undefined) {
14583
+ localVarQueryParameter['limit'] = limit;
14584
+ }
14585
+ if (lastRetrieved !== undefined) {
14586
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14587
+ lastRetrieved.toISOString() :
14588
+ lastRetrieved;
14589
+ }
14590
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14591
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14592
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14593
+ return [2 /*return*/, {
14594
+ url: common_1.toPathString(localVarUrlObj),
14595
+ options: localVarRequestOptions,
14596
+ }];
14597
+ });
14598
+ });
14599
+ },
14600
+ /**
14601
+ *
14602
+ * @summary Create a ServiceReview.
14603
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
14604
+ * @param {*} [options] Override http request option.
14605
+ * @throws {RequiredError}
14606
+ */
14607
+ apiV2ServicereviewsPost: function (createServiceReviewCommand, options) {
14608
+ if (options === void 0) { options = {}; }
14609
+ return __awaiter(_this, void 0, void 0, function () {
14610
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14611
+ return __generator(this, function (_a) {
14612
+ switch (_a.label) {
14613
+ case 0:
14614
+ localVarPath = "/api/v2/servicereviews";
14615
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14616
+ if (configuration) {
14617
+ baseOptions = configuration.baseOptions;
14618
+ }
14619
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14620
+ localVarHeaderParameter = {};
14621
+ localVarQueryParameter = {};
14622
+ // authentication oauth2 required
14623
+ // oauth required
14624
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
14625
+ case 1:
14626
+ // authentication oauth2 required
14627
+ // oauth required
14628
+ _a.sent();
14629
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14630
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14631
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14632
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14633
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createServiceReviewCommand, localVarRequestOptions, configuration);
14634
+ return [2 /*return*/, {
14635
+ url: common_1.toPathString(localVarUrlObj),
14636
+ options: localVarRequestOptions,
14637
+ }];
14638
+ }
14639
+ });
14640
+ });
14641
+ },
14642
+ /**
14643
+ *
14644
+ * @summary Delete ServiceReview.
14645
+ * @param {string} serviceReviewId
14646
+ * @param {*} [options] Override http request option.
14647
+ * @throws {RequiredError}
14648
+ */
14649
+ apiV2ServicereviewsServiceReviewIdDelete: function (serviceReviewId, options) {
14650
+ if (options === void 0) { options = {}; }
14651
+ return __awaiter(_this, void 0, void 0, function () {
14652
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14653
+ return __generator(this, function (_a) {
14654
+ switch (_a.label) {
14655
+ case 0:
14656
+ // verify required parameter 'serviceReviewId' is not null or undefined
14657
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdDelete', 'serviceReviewId', serviceReviewId);
14658
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}"
14659
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
14660
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14661
+ if (configuration) {
14662
+ baseOptions = configuration.baseOptions;
14663
+ }
14664
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14665
+ localVarHeaderParameter = {};
14666
+ localVarQueryParameter = {};
14667
+ // authentication oauth2 required
14668
+ // oauth required
14669
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
14670
+ case 1:
14671
+ // authentication oauth2 required
14672
+ // oauth required
14673
+ _a.sent();
14674
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14675
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14676
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14677
+ return [2 /*return*/, {
14678
+ url: common_1.toPathString(localVarUrlObj),
14679
+ options: localVarRequestOptions,
14680
+ }];
14681
+ }
14682
+ });
14683
+ });
14684
+ },
14685
+ /**
14686
+ *
14687
+ * @param {string} serviceReviewId
14688
+ * @param {*} [options] Override http request option.
14689
+ * @throws {RequiredError}
14690
+ */
14691
+ apiV2ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
14692
+ if (options === void 0) { options = {}; }
14693
+ return __awaiter(_this, void 0, void 0, function () {
14694
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14695
+ return __generator(this, function (_a) {
14696
+ // verify required parameter 'serviceReviewId' is not null or undefined
14697
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdGet', 'serviceReviewId', serviceReviewId);
14698
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}"
14699
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
14700
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14701
+ if (configuration) {
14702
+ baseOptions = configuration.baseOptions;
14703
+ }
14704
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14705
+ localVarHeaderParameter = {};
14706
+ localVarQueryParameter = {};
14707
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14708
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14709
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14710
+ return [2 /*return*/, {
14711
+ url: common_1.toPathString(localVarUrlObj),
14712
+ options: localVarRequestOptions,
14713
+ }];
14714
+ });
14715
+ });
14716
+ },
14717
+ /**
14718
+ *
14719
+ * @summary Get all ServiceReviewMedias.
14720
+ * @param {string} serviceReviewId
14721
+ * @param {string} [id]
14722
+ * @param {MediaType} [mediaType]
14723
+ * @param {number} [page]
14724
+ * @param {number} [limit]
14725
+ * @param {Date} [lastRetrieved]
14726
+ * @param {*} [options] Override http request option.
14727
+ * @throws {RequiredError}
14728
+ */
14729
+ apiV2ServicereviewsServiceReviewIdMediasGet: function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
14730
+ if (options === void 0) { options = {}; }
14731
+ return __awaiter(_this, void 0, void 0, function () {
14732
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14733
+ return __generator(this, function (_a) {
14734
+ // verify required parameter 'serviceReviewId' is not null or undefined
14735
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasGet', 'serviceReviewId', serviceReviewId);
14736
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}/medias"
14737
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
14738
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14739
+ if (configuration) {
14740
+ baseOptions = configuration.baseOptions;
14741
+ }
14742
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14743
+ localVarHeaderParameter = {};
14744
+ localVarQueryParameter = {};
14745
+ if (id !== undefined) {
14746
+ localVarQueryParameter['Id'] = id;
14747
+ }
14748
+ if (mediaType !== undefined) {
14749
+ localVarQueryParameter['MediaType'] = mediaType;
14750
+ }
14751
+ if (page !== undefined) {
14752
+ localVarQueryParameter['page'] = page;
14753
+ }
14754
+ if (limit !== undefined) {
14755
+ localVarQueryParameter['limit'] = limit;
14756
+ }
14757
+ if (lastRetrieved !== undefined) {
14758
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
14759
+ lastRetrieved.toISOString() :
14760
+ lastRetrieved;
14761
+ }
14762
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14763
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14764
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14765
+ return [2 /*return*/, {
14766
+ url: common_1.toPathString(localVarUrlObj),
14767
+ options: localVarRequestOptions,
14768
+ }];
14769
+ });
14770
+ });
14771
+ },
14772
+ /**
14773
+ *
14774
+ * @summary Delete ServiceReviewMedia
14775
+ * @param {string} serviceReviewId
14776
+ * @param {string} mediaId
14777
+ * @param {*} [options] Override http request option.
14778
+ * @throws {RequiredError}
14779
+ */
14780
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete: function (serviceReviewId, mediaId, options) {
14781
+ if (options === void 0) { options = {}; }
14782
+ return __awaiter(_this, void 0, void 0, function () {
14783
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14784
+ return __generator(this, function (_a) {
14785
+ switch (_a.label) {
14786
+ case 0:
14787
+ // verify required parameter 'serviceReviewId' is not null or undefined
14788
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete', 'serviceReviewId', serviceReviewId);
14789
+ // verify required parameter 'mediaId' is not null or undefined
14790
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete', 'mediaId', mediaId);
14791
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}/medias/{mediaId}"
14792
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)))
14793
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
14794
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14795
+ if (configuration) {
14796
+ baseOptions = configuration.baseOptions;
14797
+ }
14798
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
14799
+ localVarHeaderParameter = {};
14800
+ localVarQueryParameter = {};
14801
+ // authentication oauth2 required
14802
+ // oauth required
14803
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
14804
+ case 1:
14805
+ // authentication oauth2 required
14806
+ // oauth required
14807
+ _a.sent();
14808
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14809
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14810
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14811
+ return [2 /*return*/, {
14812
+ url: common_1.toPathString(localVarUrlObj),
14813
+ options: localVarRequestOptions,
14814
+ }];
14815
+ }
14816
+ });
14817
+ });
14818
+ },
14819
+ /**
14820
+ *
14821
+ * @summary Get ServiceReviewMedia.
14822
+ * @param {string} serviceReviewId
14823
+ * @param {string} mediaId
14824
+ * @param {*} [options] Override http request option.
14825
+ * @throws {RequiredError}
14826
+ */
14827
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdGet: function (serviceReviewId, mediaId, options) {
14828
+ if (options === void 0) { options = {}; }
14829
+ return __awaiter(_this, void 0, void 0, function () {
14830
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14831
+ return __generator(this, function (_a) {
14832
+ // verify required parameter 'serviceReviewId' is not null or undefined
14833
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdGet', 'serviceReviewId', serviceReviewId);
14834
+ // verify required parameter 'mediaId' is not null or undefined
14835
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdGet', 'mediaId', mediaId);
14836
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}/medias/{mediaId}"
14837
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)))
14838
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
14839
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14840
+ if (configuration) {
14841
+ baseOptions = configuration.baseOptions;
14842
+ }
14843
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
14844
+ localVarHeaderParameter = {};
14845
+ localVarQueryParameter = {};
14846
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14847
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14848
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14849
+ return [2 /*return*/, {
14850
+ url: common_1.toPathString(localVarUrlObj),
14851
+ options: localVarRequestOptions,
14852
+ }];
14853
+ });
14854
+ });
14855
+ },
14856
+ /**
14857
+ *
14858
+ * @summary Update ServiceReviewMedia.
14859
+ * @param {string} serviceReviewId
14860
+ * @param {string} mediaId
14861
+ * @param {UpdateMediaCommand} [updateMediaCommand]
14862
+ * @param {*} [options] Override http request option.
14863
+ * @throws {RequiredError}
14864
+ */
14865
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdPut: function (serviceReviewId, mediaId, updateMediaCommand, options) {
14866
+ if (options === void 0) { options = {}; }
14867
+ return __awaiter(_this, void 0, void 0, function () {
14868
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14869
+ return __generator(this, function (_a) {
14870
+ switch (_a.label) {
14871
+ case 0:
14872
+ // verify required parameter 'serviceReviewId' is not null or undefined
14873
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdPut', 'serviceReviewId', serviceReviewId);
14874
+ // verify required parameter 'mediaId' is not null or undefined
14875
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasMediaIdPut', 'mediaId', mediaId);
14876
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}/medias/{mediaId}"
14877
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)))
14878
+ .replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
14879
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14880
+ if (configuration) {
14881
+ baseOptions = configuration.baseOptions;
14882
+ }
14883
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14884
+ localVarHeaderParameter = {};
14885
+ localVarQueryParameter = {};
14886
+ // authentication oauth2 required
14887
+ // oauth required
14888
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
14889
+ case 1:
14890
+ // authentication oauth2 required
14891
+ // oauth required
14892
+ _a.sent();
14893
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14894
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14895
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14896
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14897
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
14898
+ return [2 /*return*/, {
14899
+ url: common_1.toPathString(localVarUrlObj),
14900
+ options: localVarRequestOptions,
14901
+ }];
14902
+ }
14903
+ });
14904
+ });
14905
+ },
14906
+ /**
14907
+ *
14908
+ * @summary Create ServiceReviewMedia.
14909
+ * @param {string} serviceReviewId
14910
+ * @param {CreateMediaCommand} [createMediaCommand]
14911
+ * @param {*} [options] Override http request option.
14912
+ * @throws {RequiredError}
14913
+ */
14914
+ apiV2ServicereviewsServiceReviewIdMediasPost: function (serviceReviewId, createMediaCommand, options) {
14915
+ if (options === void 0) { options = {}; }
14916
+ return __awaiter(_this, void 0, void 0, function () {
14917
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14918
+ return __generator(this, function (_a) {
14919
+ switch (_a.label) {
14920
+ case 0:
14921
+ // verify required parameter 'serviceReviewId' is not null or undefined
14922
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdMediasPost', 'serviceReviewId', serviceReviewId);
14923
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}/medias"
14924
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
14925
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14926
+ if (configuration) {
14927
+ baseOptions = configuration.baseOptions;
14928
+ }
14929
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
14930
+ localVarHeaderParameter = {};
14931
+ localVarQueryParameter = {};
14932
+ // authentication oauth2 required
14933
+ // oauth required
14934
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
14935
+ case 1:
14936
+ // authentication oauth2 required
14937
+ // oauth required
14938
+ _a.sent();
14939
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14940
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14941
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14942
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14943
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
14944
+ return [2 /*return*/, {
14945
+ url: common_1.toPathString(localVarUrlObj),
14946
+ options: localVarRequestOptions,
14947
+ }];
14948
+ }
14949
+ });
14950
+ });
14951
+ },
14952
+ /**
14953
+ *
14954
+ * @summary Update ServiceReview.
14955
+ * @param {string} serviceReviewId
14956
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
14957
+ * @param {*} [options] Override http request option.
14958
+ * @throws {RequiredError}
14959
+ */
14960
+ apiV2ServicereviewsServiceReviewIdPut: function (serviceReviewId, updateServiceReviewCommand, options) {
14961
+ if (options === void 0) { options = {}; }
14962
+ return __awaiter(_this, void 0, void 0, function () {
14963
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
14964
+ return __generator(this, function (_a) {
14965
+ switch (_a.label) {
14966
+ case 0:
14967
+ // verify required parameter 'serviceReviewId' is not null or undefined
14968
+ common_1.assertParamExists('apiV2ServicereviewsServiceReviewIdPut', 'serviceReviewId', serviceReviewId);
14969
+ localVarPath = "/api/v2/servicereviews/{serviceReviewId}"
14970
+ .replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
14971
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
14972
+ if (configuration) {
14973
+ baseOptions = configuration.baseOptions;
14974
+ }
14975
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
14976
+ localVarHeaderParameter = {};
14977
+ localVarQueryParameter = {};
14978
+ // authentication oauth2 required
14979
+ // oauth required
14980
+ return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
14981
+ case 1:
14982
+ // authentication oauth2 required
14983
+ // oauth required
14984
+ _a.sent();
14985
+ localVarHeaderParameter['Content-Type'] = 'application/json';
14986
+ common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
14987
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
14988
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
14989
+ localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateServiceReviewCommand, localVarRequestOptions, configuration);
14990
+ return [2 /*return*/, {
14991
+ url: common_1.toPathString(localVarUrlObj),
14992
+ options: localVarRequestOptions,
14993
+ }];
14994
+ }
14995
+ });
14996
+ });
14997
+ },
14998
+ };
14999
+ };
15000
+ /**
15001
+ * ServiceReviewsApi - functional programming interface
15002
+ * @export
15003
+ */
15004
+ exports.ServiceReviewsApiFp = function (configuration) {
15005
+ var localVarAxiosParamCreator = exports.ServiceReviewsApiAxiosParamCreator(configuration);
15006
+ return {
15007
+ /**
15008
+ *
15009
+ * @summary Get all ServiceReviews.
15010
+ * @param {string} [hospitalId]
15011
+ * @param {string} [serviceId]
15012
+ * @param {string} [serviceName]
15013
+ * @param {string} [patientId]
15014
+ * @param {string} [patientName]
15015
+ * @param {boolean} [recommended]
15016
+ * @param {number} [rate]
15017
+ * @param {ReviewType} [reviewType]
15018
+ * @param {number} [page]
15019
+ * @param {number} [limit]
15020
+ * @param {Date} [lastRetrieved]
15021
+ * @param {*} [options] Override http request option.
15022
+ * @throws {RequiredError}
15023
+ */
15024
+ apiV2ServicereviewsGet: function (hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
15025
+ return __awaiter(this, void 0, void 0, function () {
15026
+ var localVarAxiosArgs;
15027
+ return __generator(this, function (_a) {
15028
+ switch (_a.label) {
15029
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsGet(hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options)];
15030
+ case 1:
15031
+ localVarAxiosArgs = _a.sent();
15032
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15033
+ }
15034
+ });
15035
+ });
15036
+ },
15037
+ /**
15038
+ *
15039
+ * @summary Create a ServiceReview.
15040
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
15041
+ * @param {*} [options] Override http request option.
15042
+ * @throws {RequiredError}
15043
+ */
15044
+ apiV2ServicereviewsPost: function (createServiceReviewCommand, options) {
15045
+ return __awaiter(this, void 0, void 0, function () {
15046
+ var localVarAxiosArgs;
15047
+ return __generator(this, function (_a) {
15048
+ switch (_a.label) {
15049
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsPost(createServiceReviewCommand, options)];
15050
+ case 1:
15051
+ localVarAxiosArgs = _a.sent();
15052
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15053
+ }
15054
+ });
15055
+ });
15056
+ },
15057
+ /**
15058
+ *
15059
+ * @summary Delete ServiceReview.
15060
+ * @param {string} serviceReviewId
15061
+ * @param {*} [options] Override http request option.
15062
+ * @throws {RequiredError}
15063
+ */
15064
+ apiV2ServicereviewsServiceReviewIdDelete: function (serviceReviewId, options) {
15065
+ return __awaiter(this, void 0, void 0, function () {
15066
+ var localVarAxiosArgs;
15067
+ return __generator(this, function (_a) {
15068
+ switch (_a.label) {
15069
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId, options)];
15070
+ case 1:
15071
+ localVarAxiosArgs = _a.sent();
15072
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15073
+ }
15074
+ });
15075
+ });
15076
+ },
15077
+ /**
15078
+ *
15079
+ * @param {string} serviceReviewId
15080
+ * @param {*} [options] Override http request option.
15081
+ * @throws {RequiredError}
15082
+ */
15083
+ apiV2ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
15084
+ return __awaiter(this, void 0, void 0, function () {
15085
+ var localVarAxiosArgs;
15086
+ return __generator(this, function (_a) {
15087
+ switch (_a.label) {
15088
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdGet(serviceReviewId, options)];
15089
+ case 1:
15090
+ localVarAxiosArgs = _a.sent();
15091
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15092
+ }
15093
+ });
15094
+ });
15095
+ },
15096
+ /**
15097
+ *
15098
+ * @summary Get all ServiceReviewMedias.
15099
+ * @param {string} serviceReviewId
15100
+ * @param {string} [id]
15101
+ * @param {MediaType} [mediaType]
15102
+ * @param {number} [page]
15103
+ * @param {number} [limit]
15104
+ * @param {Date} [lastRetrieved]
15105
+ * @param {*} [options] Override http request option.
15106
+ * @throws {RequiredError}
15107
+ */
15108
+ apiV2ServicereviewsServiceReviewIdMediasGet: function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
15109
+ return __awaiter(this, void 0, void 0, function () {
15110
+ var localVarAxiosArgs;
15111
+ return __generator(this, function (_a) {
15112
+ switch (_a.label) {
15113
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options)];
15114
+ case 1:
15115
+ localVarAxiosArgs = _a.sent();
15116
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15117
+ }
15118
+ });
15119
+ });
15120
+ },
15121
+ /**
15122
+ *
15123
+ * @summary Delete ServiceReviewMedia
15124
+ * @param {string} serviceReviewId
15125
+ * @param {string} mediaId
15126
+ * @param {*} [options] Override http request option.
15127
+ * @throws {RequiredError}
15128
+ */
15129
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete: function (serviceReviewId, mediaId, options) {
15130
+ return __awaiter(this, void 0, void 0, function () {
15131
+ var localVarAxiosArgs;
15132
+ return __generator(this, function (_a) {
15133
+ switch (_a.label) {
15134
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options)];
15135
+ case 1:
15136
+ localVarAxiosArgs = _a.sent();
15137
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15138
+ }
15139
+ });
15140
+ });
15141
+ },
15142
+ /**
15143
+ *
15144
+ * @summary Get ServiceReviewMedia.
15145
+ * @param {string} serviceReviewId
15146
+ * @param {string} mediaId
15147
+ * @param {*} [options] Override http request option.
15148
+ * @throws {RequiredError}
15149
+ */
15150
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdGet: function (serviceReviewId, mediaId, options) {
15151
+ return __awaiter(this, void 0, void 0, function () {
15152
+ var localVarAxiosArgs;
15153
+ return __generator(this, function (_a) {
15154
+ switch (_a.label) {
15155
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options)];
15156
+ case 1:
15157
+ localVarAxiosArgs = _a.sent();
15158
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15159
+ }
15160
+ });
15161
+ });
15162
+ },
15163
+ /**
15164
+ *
15165
+ * @summary Update ServiceReviewMedia.
15166
+ * @param {string} serviceReviewId
15167
+ * @param {string} mediaId
15168
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15169
+ * @param {*} [options] Override http request option.
15170
+ * @throws {RequiredError}
15171
+ */
15172
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdPut: function (serviceReviewId, mediaId, updateMediaCommand, options) {
15173
+ return __awaiter(this, void 0, void 0, function () {
15174
+ var localVarAxiosArgs;
15175
+ return __generator(this, function (_a) {
15176
+ switch (_a.label) {
15177
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options)];
15178
+ case 1:
15179
+ localVarAxiosArgs = _a.sent();
15180
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15181
+ }
15182
+ });
15183
+ });
15184
+ },
15185
+ /**
15186
+ *
15187
+ * @summary Create ServiceReviewMedia.
15188
+ * @param {string} serviceReviewId
15189
+ * @param {CreateMediaCommand} [createMediaCommand]
15190
+ * @param {*} [options] Override http request option.
15191
+ * @throws {RequiredError}
15192
+ */
15193
+ apiV2ServicereviewsServiceReviewIdMediasPost: function (serviceReviewId, createMediaCommand, options) {
15194
+ return __awaiter(this, void 0, void 0, function () {
15195
+ var localVarAxiosArgs;
15196
+ return __generator(this, function (_a) {
15197
+ switch (_a.label) {
15198
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options)];
15199
+ case 1:
15200
+ localVarAxiosArgs = _a.sent();
15201
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15202
+ }
15203
+ });
15204
+ });
15205
+ },
15206
+ /**
15207
+ *
15208
+ * @summary Update ServiceReview.
15209
+ * @param {string} serviceReviewId
15210
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
15211
+ * @param {*} [options] Override http request option.
15212
+ * @throws {RequiredError}
15213
+ */
15214
+ apiV2ServicereviewsServiceReviewIdPut: function (serviceReviewId, updateServiceReviewCommand, options) {
15215
+ return __awaiter(this, void 0, void 0, function () {
15216
+ var localVarAxiosArgs;
15217
+ return __generator(this, function (_a) {
15218
+ switch (_a.label) {
15219
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicereviewsServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options)];
15220
+ case 1:
15221
+ localVarAxiosArgs = _a.sent();
15222
+ return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
15223
+ }
15224
+ });
15225
+ });
15226
+ },
15227
+ };
15228
+ };
15229
+ /**
15230
+ * ServiceReviewsApi - factory interface
15231
+ * @export
15232
+ */
15233
+ exports.ServiceReviewsApiFactory = function (configuration, basePath, axios) {
15234
+ var localVarFp = exports.ServiceReviewsApiFp(configuration);
15235
+ return {
15236
+ /**
15237
+ *
15238
+ * @summary Get all ServiceReviews.
15239
+ * @param {string} [hospitalId]
15240
+ * @param {string} [serviceId]
15241
+ * @param {string} [serviceName]
15242
+ * @param {string} [patientId]
15243
+ * @param {string} [patientName]
15244
+ * @param {boolean} [recommended]
15245
+ * @param {number} [rate]
15246
+ * @param {ReviewType} [reviewType]
15247
+ * @param {number} [page]
15248
+ * @param {number} [limit]
15249
+ * @param {Date} [lastRetrieved]
15250
+ * @param {*} [options] Override http request option.
15251
+ * @throws {RequiredError}
15252
+ */
15253
+ apiV2ServicereviewsGet: function (hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
15254
+ return localVarFp.apiV2ServicereviewsGet(hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15255
+ },
15256
+ /**
15257
+ *
15258
+ * @summary Create a ServiceReview.
15259
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
15260
+ * @param {*} [options] Override http request option.
15261
+ * @throws {RequiredError}
15262
+ */
15263
+ apiV2ServicereviewsPost: function (createServiceReviewCommand, options) {
15264
+ return localVarFp.apiV2ServicereviewsPost(createServiceReviewCommand, options).then(function (request) { return request(axios, basePath); });
15265
+ },
15266
+ /**
15267
+ *
15268
+ * @summary Delete ServiceReview.
15269
+ * @param {string} serviceReviewId
15270
+ * @param {*} [options] Override http request option.
15271
+ * @throws {RequiredError}
15272
+ */
15273
+ apiV2ServicereviewsServiceReviewIdDelete: function (serviceReviewId, options) {
15274
+ return localVarFp.apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId, options).then(function (request) { return request(axios, basePath); });
15275
+ },
15276
+ /**
15277
+ *
15278
+ * @param {string} serviceReviewId
15279
+ * @param {*} [options] Override http request option.
15280
+ * @throws {RequiredError}
15281
+ */
15282
+ apiV2ServicereviewsServiceReviewIdGet: function (serviceReviewId, options) {
15283
+ return localVarFp.apiV2ServicereviewsServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(axios, basePath); });
15284
+ },
15285
+ /**
15286
+ *
15287
+ * @summary Get all ServiceReviewMedias.
15288
+ * @param {string} serviceReviewId
15289
+ * @param {string} [id]
15290
+ * @param {MediaType} [mediaType]
15291
+ * @param {number} [page]
15292
+ * @param {number} [limit]
15293
+ * @param {Date} [lastRetrieved]
15294
+ * @param {*} [options] Override http request option.
15295
+ * @throws {RequiredError}
15296
+ */
15297
+ apiV2ServicereviewsServiceReviewIdMediasGet: function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
15298
+ return localVarFp.apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
15299
+ },
15300
+ /**
15301
+ *
15302
+ * @summary Delete ServiceReviewMedia
15303
+ * @param {string} serviceReviewId
15304
+ * @param {string} mediaId
15305
+ * @param {*} [options] Override http request option.
15306
+ * @throws {RequiredError}
15307
+ */
15308
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete: function (serviceReviewId, mediaId, options) {
15309
+ return localVarFp.apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then(function (request) { return request(axios, basePath); });
15310
+ },
15311
+ /**
15312
+ *
15313
+ * @summary Get ServiceReviewMedia.
15314
+ * @param {string} serviceReviewId
15315
+ * @param {string} mediaId
15316
+ * @param {*} [options] Override http request option.
15317
+ * @throws {RequiredError}
15318
+ */
15319
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdGet: function (serviceReviewId, mediaId, options) {
15320
+ return localVarFp.apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then(function (request) { return request(axios, basePath); });
15321
+ },
15322
+ /**
15323
+ *
15324
+ * @summary Update ServiceReviewMedia.
15325
+ * @param {string} serviceReviewId
15326
+ * @param {string} mediaId
15327
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15328
+ * @param {*} [options] Override http request option.
15329
+ * @throws {RequiredError}
15330
+ */
15331
+ apiV2ServicereviewsServiceReviewIdMediasMediaIdPut: function (serviceReviewId, mediaId, updateMediaCommand, options) {
15332
+ return localVarFp.apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
15333
+ },
15334
+ /**
15335
+ *
15336
+ * @summary Create ServiceReviewMedia.
15337
+ * @param {string} serviceReviewId
15338
+ * @param {CreateMediaCommand} [createMediaCommand]
15339
+ * @param {*} [options] Override http request option.
15340
+ * @throws {RequiredError}
15341
+ */
15342
+ apiV2ServicereviewsServiceReviewIdMediasPost: function (serviceReviewId, createMediaCommand, options) {
15343
+ return localVarFp.apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
15344
+ },
15345
+ /**
15346
+ *
15347
+ * @summary Update ServiceReview.
15348
+ * @param {string} serviceReviewId
15349
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
15350
+ * @param {*} [options] Override http request option.
15351
+ * @throws {RequiredError}
15352
+ */
15353
+ apiV2ServicereviewsServiceReviewIdPut: function (serviceReviewId, updateServiceReviewCommand, options) {
15354
+ return localVarFp.apiV2ServicereviewsServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then(function (request) { return request(axios, basePath); });
15355
+ },
15356
+ };
15357
+ };
15358
+ /**
15359
+ * ServiceReviewsApi - object-oriented interface
15360
+ * @export
15361
+ * @class ServiceReviewsApi
15362
+ * @extends {BaseAPI}
15363
+ */
15364
+ var ServiceReviewsApi = /** @class */ (function (_super) {
15365
+ __extends(ServiceReviewsApi, _super);
15366
+ function ServiceReviewsApi() {
15367
+ return _super !== null && _super.apply(this, arguments) || this;
15368
+ }
15369
+ /**
15370
+ *
15371
+ * @summary Get all ServiceReviews.
15372
+ * @param {string} [hospitalId]
15373
+ * @param {string} [serviceId]
15374
+ * @param {string} [serviceName]
15375
+ * @param {string} [patientId]
15376
+ * @param {string} [patientName]
15377
+ * @param {boolean} [recommended]
15378
+ * @param {number} [rate]
15379
+ * @param {ReviewType} [reviewType]
15380
+ * @param {number} [page]
15381
+ * @param {number} [limit]
15382
+ * @param {Date} [lastRetrieved]
15383
+ * @param {*} [options] Override http request option.
15384
+ * @throws {RequiredError}
15385
+ * @memberof ServiceReviewsApi
15386
+ */
15387
+ ServiceReviewsApi.prototype.apiV2ServicereviewsGet = function (hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options) {
15388
+ var _this = this;
15389
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsGet(hospitalId, serviceId, serviceName, patientId, patientName, recommended, rate, reviewType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15390
+ };
15391
+ /**
15392
+ *
15393
+ * @summary Create a ServiceReview.
15394
+ * @param {CreateServiceReviewCommand} [createServiceReviewCommand]
15395
+ * @param {*} [options] Override http request option.
15396
+ * @throws {RequiredError}
15397
+ * @memberof ServiceReviewsApi
15398
+ */
15399
+ ServiceReviewsApi.prototype.apiV2ServicereviewsPost = function (createServiceReviewCommand, options) {
15400
+ var _this = this;
15401
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsPost(createServiceReviewCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15402
+ };
15403
+ /**
15404
+ *
15405
+ * @summary Delete ServiceReview.
15406
+ * @param {string} serviceReviewId
15407
+ * @param {*} [options] Override http request option.
15408
+ * @throws {RequiredError}
15409
+ * @memberof ServiceReviewsApi
15410
+ */
15411
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdDelete = function (serviceReviewId, options) {
15412
+ var _this = this;
15413
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdDelete(serviceReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15414
+ };
15415
+ /**
15416
+ *
15417
+ * @param {string} serviceReviewId
15418
+ * @param {*} [options] Override http request option.
15419
+ * @throws {RequiredError}
15420
+ * @memberof ServiceReviewsApi
15421
+ */
15422
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdGet = function (serviceReviewId, options) {
15423
+ var _this = this;
15424
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15425
+ };
15426
+ /**
15427
+ *
15428
+ * @summary Get all ServiceReviewMedias.
15429
+ * @param {string} serviceReviewId
15430
+ * @param {string} [id]
15431
+ * @param {MediaType} [mediaType]
15432
+ * @param {number} [page]
15433
+ * @param {number} [limit]
15434
+ * @param {Date} [lastRetrieved]
15435
+ * @param {*} [options] Override http request option.
15436
+ * @throws {RequiredError}
15437
+ * @memberof ServiceReviewsApi
15438
+ */
15439
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdMediasGet = function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
15440
+ var _this = this;
15441
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
15442
+ };
15443
+ /**
15444
+ *
15445
+ * @summary Delete ServiceReviewMedia
15446
+ * @param {string} serviceReviewId
15447
+ * @param {string} mediaId
15448
+ * @param {*} [options] Override http request option.
15449
+ * @throws {RequiredError}
15450
+ * @memberof ServiceReviewsApi
15451
+ */
15452
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete = function (serviceReviewId, mediaId, options) {
15453
+ var _this = this;
15454
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15455
+ };
15456
+ /**
15457
+ *
15458
+ * @summary Get ServiceReviewMedia.
15459
+ * @param {string} serviceReviewId
15460
+ * @param {string} mediaId
15461
+ * @param {*} [options] Override http request option.
15462
+ * @throws {RequiredError}
15463
+ * @memberof ServiceReviewsApi
15464
+ */
15465
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdMediasMediaIdGet = function (serviceReviewId, mediaId, options) {
15466
+ var _this = this;
15467
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
15468
+ };
15469
+ /**
15470
+ *
15471
+ * @summary Update ServiceReviewMedia.
15472
+ * @param {string} serviceReviewId
15473
+ * @param {string} mediaId
15474
+ * @param {UpdateMediaCommand} [updateMediaCommand]
15475
+ * @param {*} [options] Override http request option.
15476
+ * @throws {RequiredError}
15477
+ * @memberof ServiceReviewsApi
15478
+ */
15479
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdMediasMediaIdPut = function (serviceReviewId, mediaId, updateMediaCommand, options) {
15480
+ var _this = this;
15481
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15482
+ };
15483
+ /**
15484
+ *
15485
+ * @summary Create ServiceReviewMedia.
15486
+ * @param {string} serviceReviewId
15487
+ * @param {CreateMediaCommand} [createMediaCommand]
15488
+ * @param {*} [options] Override http request option.
15489
+ * @throws {RequiredError}
15490
+ * @memberof ServiceReviewsApi
15491
+ */
15492
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdMediasPost = function (serviceReviewId, createMediaCommand, options) {
15493
+ var _this = this;
15494
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15495
+ };
15496
+ /**
15497
+ *
15498
+ * @summary Update ServiceReview.
15499
+ * @param {string} serviceReviewId
15500
+ * @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
15501
+ * @param {*} [options] Override http request option.
15502
+ * @throws {RequiredError}
15503
+ * @memberof ServiceReviewsApi
15504
+ */
15505
+ ServiceReviewsApi.prototype.apiV2ServicereviewsServiceReviewIdPut = function (serviceReviewId, updateServiceReviewCommand, options) {
15506
+ var _this = this;
15507
+ return exports.ServiceReviewsApiFp(this.configuration).apiV2ServicereviewsServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
15508
+ };
15509
+ return ServiceReviewsApi;
15510
+ }(base_1.BaseAPI));
15511
+ exports.ServiceReviewsApi = ServiceReviewsApi;
13472
15512
  /**
13473
15513
  * ServicesApi - axios parameter creator
13474
15514
  * @export