ch-api-client-typescript2 2.7.1 → 2.7.4
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.d.ts +741 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1006 -1
- package/package.json +1 -1
- package/src/api.ts +1202 -0
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.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.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;
|
|
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
|
|
@@ -268,6 +268,17 @@ var RejectReason;
|
|
|
268
268
|
RejectReason["ScheduleNotAvailable"] = "ScheduleNotAvailable";
|
|
269
269
|
RejectReason["OtherReason"] = "OtherReason";
|
|
270
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 = {}));
|
|
271
282
|
/**
|
|
272
283
|
*
|
|
273
284
|
* @export
|
|
@@ -14504,6 +14515,1000 @@ var SearchApi = /** @class */ (function (_super) {
|
|
|
14504
14515
|
return SearchApi;
|
|
14505
14516
|
}(base_1.BaseAPI));
|
|
14506
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;
|
|
14507
15512
|
/**
|
|
14508
15513
|
* ServicesApi - axios parameter creator
|
|
14509
15514
|
* @export
|