ch-admin-api-client-typescript 2.6.3 → 2.6.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +689 -48
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1279 -185
- package/package.json +1 -1
- package/src/api.ts +1220 -83
package/lib/api.js
CHANGED
|
@@ -76,7 +76,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
76
76
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
77
77
|
};
|
|
78
78
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
79
|
-
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ServiceReviewApi = exports.ServiceReviewApiFactory = exports.ServiceReviewApiFp = exports.ServiceReviewApiAxiosParamCreator = exports.ProfilesApi = exports.ProfilesApiFactory = exports.ProfilesApiFp = exports.ProfilesApiAxiosParamCreator = exports.PlansApi = exports.PlansApiFactory = exports.PlansApiFp = exports.PlansApiAxiosParamCreator = exports.PaymentsApi = exports.PaymentsApiFactory = exports.PaymentsApiFp = exports.PaymentsApiAxiosParamCreator = exports.PatientsApi = exports.PatientsApiFactory = exports.PatientsApiFp = exports.PatientsApiAxiosParamCreator = exports.NotificationsApi = exports.NotificationsApiFactory = exports.NotificationsApiFp = exports.NotificationsApiAxiosParamCreator = exports.MembershipsApi = exports.MembershipsApiFactory = exports.MembershipsApiFp = exports.MembershipsApiAxiosParamCreator = exports.ManagersApi = exports.ManagersApiFactory = exports.ManagersApiFp = exports.ManagersApiAxiosParamCreator = exports.LanguagesApi = exports.LanguagesApiFactory = exports.LanguagesApiFp = exports.LanguagesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.FaqsApi = exports.FaqsApiFactory = exports.FaqsApiFp = exports.FaqsApiAxiosParamCreator = exports.FaqCategoriesApi = exports.FaqCategoriesApiFactory = exports.FaqCategoriesApiFp = exports.FaqCategoriesApiAxiosParamCreator = exports.EmailMarketingsApi = exports.EmailMarketingsApiFactory = exports.EmailMarketingsApiFp = exports.EmailMarketingsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.CommunicationsApi = exports.CommunicationsApiFactory = exports.CommunicationsApiFp = exports.CommunicationsApiAxiosParamCreator = exports.ChatUsersApi = exports.ChatUsersApiFactory = exports.ChatUsersApiFp = exports.ChatUsersApiAxiosParamCreator = exports.CHManagersApi = exports.CHManagersApiFactory = exports.CHManagersApiFp = exports.CHManagersApiAxiosParamCreator = exports.CHAdminsApi = exports.CHAdminsApiFactory = exports.CHAdminsApiFp = exports.CHAdminsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.UserLocationType = exports.SnsType = exports.RejectReason = exports.RefundPolicy = exports.RecurringInterval = exports.Procedure = exports.NotificationCode = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -181,6 +181,9 @@ var MediaType;
|
|
|
181
181
|
MediaType["Video"] = "Video";
|
|
182
182
|
MediaType["Youtube"] = "Youtube";
|
|
183
183
|
MediaType["Document"] = "Document";
|
|
184
|
+
MediaType["Frontal"] = "Frontal";
|
|
185
|
+
MediaType["Diagonal"] = "Diagonal";
|
|
186
|
+
MediaType["Side"] = "Side";
|
|
184
187
|
})(MediaType = exports.MediaType || (exports.MediaType = {}));
|
|
185
188
|
/**
|
|
186
189
|
*
|
|
@@ -8120,7 +8123,7 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
|
|
|
8120
8123
|
* @param {*} [options] Override http request option.
|
|
8121
8124
|
* @throws {RequiredError}
|
|
8122
8125
|
*/
|
|
8123
|
-
|
|
8126
|
+
apiV1CountriesCountryIdReactivePut: function (countryId, options) {
|
|
8124
8127
|
if (options === void 0) { options = {}; }
|
|
8125
8128
|
return __awaiter(_this, void 0, void 0, function () {
|
|
8126
8129
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -8128,8 +8131,8 @@ exports.CountriesApiAxiosParamCreator = function (configuration) {
|
|
|
8128
8131
|
switch (_a.label) {
|
|
8129
8132
|
case 0:
|
|
8130
8133
|
// verify required parameter 'countryId' is not null or undefined
|
|
8131
|
-
common_1.assertParamExists('
|
|
8132
|
-
localVarPath = "/api/v1/countries/{countryId}/
|
|
8134
|
+
common_1.assertParamExists('apiV1CountriesCountryIdReactivePut', 'countryId', countryId);
|
|
8135
|
+
localVarPath = "/api/v1/countries/{countryId}/reactive"
|
|
8133
8136
|
.replace("{" + "countryId" + "}", encodeURIComponent(String(countryId)));
|
|
8134
8137
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8135
8138
|
if (configuration) {
|
|
@@ -8520,12 +8523,12 @@ exports.CountriesApiFp = function (configuration) {
|
|
|
8520
8523
|
* @param {*} [options] Override http request option.
|
|
8521
8524
|
* @throws {RequiredError}
|
|
8522
8525
|
*/
|
|
8523
|
-
|
|
8526
|
+
apiV1CountriesCountryIdReactivePut: function (countryId, options) {
|
|
8524
8527
|
return __awaiter(this, void 0, void 0, function () {
|
|
8525
8528
|
var localVarAxiosArgs;
|
|
8526
8529
|
return __generator(this, function (_a) {
|
|
8527
8530
|
switch (_a.label) {
|
|
8528
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
8531
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1CountriesCountryIdReactivePut(countryId, options)];
|
|
8529
8532
|
case 1:
|
|
8530
8533
|
localVarAxiosArgs = _a.sent();
|
|
8531
8534
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -8712,8 +8715,8 @@ exports.CountriesApiFactory = function (configuration, basePath, axios) {
|
|
|
8712
8715
|
* @param {*} [options] Override http request option.
|
|
8713
8716
|
* @throws {RequiredError}
|
|
8714
8717
|
*/
|
|
8715
|
-
|
|
8716
|
-
return localVarFp.
|
|
8718
|
+
apiV1CountriesCountryIdReactivePut: function (countryId, options) {
|
|
8719
|
+
return localVarFp.apiV1CountriesCountryIdReactivePut(countryId, options).then(function (request) { return request(axios, basePath); });
|
|
8717
8720
|
},
|
|
8718
8721
|
/**
|
|
8719
8722
|
*
|
|
@@ -8885,9 +8888,9 @@ var CountriesApi = /** @class */ (function (_super) {
|
|
|
8885
8888
|
* @throws {RequiredError}
|
|
8886
8889
|
* @memberof CountriesApi
|
|
8887
8890
|
*/
|
|
8888
|
-
CountriesApi.prototype.
|
|
8891
|
+
CountriesApi.prototype.apiV1CountriesCountryIdReactivePut = function (countryId, options) {
|
|
8889
8892
|
var _this = this;
|
|
8890
|
-
return exports.CountriesApiFp(this.configuration).
|
|
8893
|
+
return exports.CountriesApiFp(this.configuration).apiV1CountriesCountryIdReactivePut(countryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
8891
8894
|
};
|
|
8892
8895
|
/**
|
|
8893
8896
|
*
|
|
@@ -17453,6 +17456,53 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
17453
17456
|
});
|
|
17454
17457
|
});
|
|
17455
17458
|
},
|
|
17459
|
+
/**
|
|
17460
|
+
*
|
|
17461
|
+
* @summary Reactivate HospitalEquipment.
|
|
17462
|
+
* @param {string} hospitalId
|
|
17463
|
+
* @param {string} equipmentId
|
|
17464
|
+
* @param {*} [options] Override http request option.
|
|
17465
|
+
* @throws {RequiredError}
|
|
17466
|
+
*/
|
|
17467
|
+
apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut: function (hospitalId, equipmentId, options) {
|
|
17468
|
+
if (options === void 0) { options = {}; }
|
|
17469
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17470
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17471
|
+
return __generator(this, function (_a) {
|
|
17472
|
+
switch (_a.label) {
|
|
17473
|
+
case 0:
|
|
17474
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
17475
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut', 'hospitalId', hospitalId);
|
|
17476
|
+
// verify required parameter 'equipmentId' is not null or undefined
|
|
17477
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut', 'equipmentId', equipmentId);
|
|
17478
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/equipments/{equipmentId}/reactive"
|
|
17479
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
17480
|
+
.replace("{" + "equipmentId" + "}", encodeURIComponent(String(equipmentId)));
|
|
17481
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17482
|
+
if (configuration) {
|
|
17483
|
+
baseOptions = configuration.baseOptions;
|
|
17484
|
+
}
|
|
17485
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
17486
|
+
localVarHeaderParameter = {};
|
|
17487
|
+
localVarQueryParameter = {};
|
|
17488
|
+
// authentication oauth2 required
|
|
17489
|
+
// oauth required
|
|
17490
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17491
|
+
case 1:
|
|
17492
|
+
// authentication oauth2 required
|
|
17493
|
+
// oauth required
|
|
17494
|
+
_a.sent();
|
|
17495
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17496
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17497
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17498
|
+
return [2 /*return*/, {
|
|
17499
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17500
|
+
options: localVarRequestOptions,
|
|
17501
|
+
}];
|
|
17502
|
+
}
|
|
17503
|
+
});
|
|
17504
|
+
});
|
|
17505
|
+
},
|
|
17456
17506
|
/**
|
|
17457
17507
|
*
|
|
17458
17508
|
* @summary Get all HospitalEquipments.
|
|
@@ -19582,6 +19632,27 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
19582
19632
|
});
|
|
19583
19633
|
});
|
|
19584
19634
|
},
|
|
19635
|
+
/**
|
|
19636
|
+
*
|
|
19637
|
+
* @summary Reactivate HospitalEquipment.
|
|
19638
|
+
* @param {string} hospitalId
|
|
19639
|
+
* @param {string} equipmentId
|
|
19640
|
+
* @param {*} [options] Override http request option.
|
|
19641
|
+
* @throws {RequiredError}
|
|
19642
|
+
*/
|
|
19643
|
+
apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut: function (hospitalId, equipmentId, options) {
|
|
19644
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
19645
|
+
var localVarAxiosArgs;
|
|
19646
|
+
return __generator(this, function (_a) {
|
|
19647
|
+
switch (_a.label) {
|
|
19648
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut(hospitalId, equipmentId, options)];
|
|
19649
|
+
case 1:
|
|
19650
|
+
localVarAxiosArgs = _a.sent();
|
|
19651
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
19652
|
+
}
|
|
19653
|
+
});
|
|
19654
|
+
});
|
|
19655
|
+
},
|
|
19585
19656
|
/**
|
|
19586
19657
|
*
|
|
19587
19658
|
* @summary Get all HospitalEquipments.
|
|
@@ -20506,6 +20577,17 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
20506
20577
|
apiV1HospitalsHospitalIdEquipmentsEquipmentIdPut: function (hospitalId, equipmentId, updateHospitalEquipmentCommand, options) {
|
|
20507
20578
|
return localVarFp.apiV1HospitalsHospitalIdEquipmentsEquipmentIdPut(hospitalId, equipmentId, updateHospitalEquipmentCommand, options).then(function (request) { return request(axios, basePath); });
|
|
20508
20579
|
},
|
|
20580
|
+
/**
|
|
20581
|
+
*
|
|
20582
|
+
* @summary Reactivate HospitalEquipment.
|
|
20583
|
+
* @param {string} hospitalId
|
|
20584
|
+
* @param {string} equipmentId
|
|
20585
|
+
* @param {*} [options] Override http request option.
|
|
20586
|
+
* @throws {RequiredError}
|
|
20587
|
+
*/
|
|
20588
|
+
apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut: function (hospitalId, equipmentId, options) {
|
|
20589
|
+
return localVarFp.apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut(hospitalId, equipmentId, options).then(function (request) { return request(axios, basePath); });
|
|
20590
|
+
},
|
|
20509
20591
|
/**
|
|
20510
20592
|
*
|
|
20511
20593
|
* @summary Get all HospitalEquipments.
|
|
@@ -21152,6 +21234,19 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
21152
21234
|
var _this = this;
|
|
21153
21235
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdEquipmentsEquipmentIdPut(hospitalId, equipmentId, updateHospitalEquipmentCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21154
21236
|
};
|
|
21237
|
+
/**
|
|
21238
|
+
*
|
|
21239
|
+
* @summary Reactivate HospitalEquipment.
|
|
21240
|
+
* @param {string} hospitalId
|
|
21241
|
+
* @param {string} equipmentId
|
|
21242
|
+
* @param {*} [options] Override http request option.
|
|
21243
|
+
* @throws {RequiredError}
|
|
21244
|
+
* @memberof HospitalsApi
|
|
21245
|
+
*/
|
|
21246
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut = function (hospitalId, equipmentId, options) {
|
|
21247
|
+
var _this = this;
|
|
21248
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdEquipmentsEquipmentIdReactivePut(hospitalId, equipmentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21249
|
+
};
|
|
21155
21250
|
/**
|
|
21156
21251
|
*
|
|
21157
21252
|
* @summary Get all HospitalEquipments.
|
|
@@ -25642,45 +25737,35 @@ var ProfilesApi = /** @class */ (function (_super) {
|
|
|
25642
25737
|
}(base_1.BaseAPI));
|
|
25643
25738
|
exports.ProfilesApi = ProfilesApi;
|
|
25644
25739
|
/**
|
|
25645
|
-
*
|
|
25740
|
+
* ServiceReviewApi - axios parameter creator
|
|
25646
25741
|
* @export
|
|
25647
25742
|
*/
|
|
25648
|
-
exports.
|
|
25743
|
+
exports.ServiceReviewApiAxiosParamCreator = function (configuration) {
|
|
25649
25744
|
var _this = this;
|
|
25650
25745
|
return {
|
|
25651
25746
|
/**
|
|
25652
25747
|
*
|
|
25653
|
-
* @summary Get all
|
|
25654
|
-
* @param {string} [
|
|
25655
|
-
* @param {string} [
|
|
25656
|
-
* @param {string} [
|
|
25657
|
-
* @param {string} [
|
|
25658
|
-
* @param {
|
|
25659
|
-
* @param {
|
|
25660
|
-
* @param {string} [specialtyId]
|
|
25661
|
-
* @param {string} [specialtyName]
|
|
25662
|
-
* @param {string} [specialtyTypeId]
|
|
25663
|
-
* @param {string} [specialtyTypeName]
|
|
25664
|
-
* @param {string} [serviceCategoryId]
|
|
25665
|
-
* @param {MarketingType} [marketingType]
|
|
25666
|
-
* @param {Procedure} [procedure]
|
|
25667
|
-
* @param {Date} [created]
|
|
25668
|
-
* @param {string} [languageCode]
|
|
25669
|
-
* @param {boolean} [returnDefaultValue]
|
|
25748
|
+
* @summary Get all ServiceReviews.
|
|
25749
|
+
* @param {string} [serviceId]
|
|
25750
|
+
* @param {string} [serviceName]
|
|
25751
|
+
* @param {string} [patientId]
|
|
25752
|
+
* @param {string} [patientName]
|
|
25753
|
+
* @param {boolean} [recommended]
|
|
25754
|
+
* @param {number} [rate]
|
|
25670
25755
|
* @param {number} [page]
|
|
25671
25756
|
* @param {number} [limit]
|
|
25672
25757
|
* @param {Date} [lastRetrieved]
|
|
25673
25758
|
* @param {*} [options] Override http request option.
|
|
25674
25759
|
* @throws {RequiredError}
|
|
25675
25760
|
*/
|
|
25676
|
-
|
|
25761
|
+
apiV1ServicereviewGet: function (serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options) {
|
|
25677
25762
|
if (options === void 0) { options = {}; }
|
|
25678
25763
|
return __awaiter(_this, void 0, void 0, function () {
|
|
25679
25764
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
25680
25765
|
return __generator(this, function (_a) {
|
|
25681
25766
|
switch (_a.label) {
|
|
25682
25767
|
case 0:
|
|
25683
|
-
localVarPath = "/api/v1/
|
|
25768
|
+
localVarPath = "/api/v1/servicereview";
|
|
25684
25769
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25685
25770
|
if (configuration) {
|
|
25686
25771
|
baseOptions = configuration.baseOptions;
|
|
@@ -25695,55 +25780,23 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
25695
25780
|
// authentication oauth2 required
|
|
25696
25781
|
// oauth required
|
|
25697
25782
|
_a.sent();
|
|
25698
|
-
if (
|
|
25699
|
-
localVarQueryParameter['
|
|
25700
|
-
}
|
|
25701
|
-
if (hospitalName !== undefined) {
|
|
25702
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
25703
|
-
}
|
|
25704
|
-
if (hospitalSlug !== undefined) {
|
|
25705
|
-
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
25706
|
-
}
|
|
25707
|
-
if (id !== undefined) {
|
|
25708
|
-
localVarQueryParameter['Id'] = id;
|
|
25709
|
-
}
|
|
25710
|
-
if (name !== undefined) {
|
|
25711
|
-
localVarQueryParameter['Name'] = name;
|
|
25712
|
-
}
|
|
25713
|
-
if (description !== undefined) {
|
|
25714
|
-
localVarQueryParameter['Description'] = description;
|
|
25715
|
-
}
|
|
25716
|
-
if (specialtyId !== undefined) {
|
|
25717
|
-
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
25718
|
-
}
|
|
25719
|
-
if (specialtyName !== undefined) {
|
|
25720
|
-
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
25721
|
-
}
|
|
25722
|
-
if (specialtyTypeId !== undefined) {
|
|
25723
|
-
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
25724
|
-
}
|
|
25725
|
-
if (specialtyTypeName !== undefined) {
|
|
25726
|
-
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
25727
|
-
}
|
|
25728
|
-
if (serviceCategoryId !== undefined) {
|
|
25729
|
-
localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
|
|
25783
|
+
if (serviceId !== undefined) {
|
|
25784
|
+
localVarQueryParameter['ServiceId'] = serviceId;
|
|
25730
25785
|
}
|
|
25731
|
-
if (
|
|
25732
|
-
localVarQueryParameter['
|
|
25786
|
+
if (serviceName !== undefined) {
|
|
25787
|
+
localVarQueryParameter['ServiceName'] = serviceName;
|
|
25733
25788
|
}
|
|
25734
|
-
if (
|
|
25735
|
-
localVarQueryParameter['
|
|
25789
|
+
if (patientId !== undefined) {
|
|
25790
|
+
localVarQueryParameter['PatientId'] = patientId;
|
|
25736
25791
|
}
|
|
25737
|
-
if (
|
|
25738
|
-
localVarQueryParameter['
|
|
25739
|
-
created.toISOString() :
|
|
25740
|
-
created;
|
|
25792
|
+
if (patientName !== undefined) {
|
|
25793
|
+
localVarQueryParameter['PatientName'] = patientName;
|
|
25741
25794
|
}
|
|
25742
|
-
if (
|
|
25743
|
-
localVarQueryParameter['
|
|
25795
|
+
if (recommended !== undefined) {
|
|
25796
|
+
localVarQueryParameter['Recommended'] = recommended;
|
|
25744
25797
|
}
|
|
25745
|
-
if (
|
|
25746
|
-
localVarQueryParameter['
|
|
25798
|
+
if (rate !== undefined) {
|
|
25799
|
+
localVarQueryParameter['Rate'] = rate;
|
|
25747
25800
|
}
|
|
25748
25801
|
if (page !== undefined) {
|
|
25749
25802
|
localVarQueryParameter['page'] = page;
|
|
@@ -25769,28 +25822,24 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
25769
25822
|
},
|
|
25770
25823
|
/**
|
|
25771
25824
|
*
|
|
25772
|
-
* @
|
|
25773
|
-
* @param {
|
|
25774
|
-
* @param {boolean} [returnDefaultValue]
|
|
25825
|
+
* @summary Create a ServiceReview.
|
|
25826
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
25775
25827
|
* @param {*} [options] Override http request option.
|
|
25776
25828
|
* @throws {RequiredError}
|
|
25777
25829
|
*/
|
|
25778
|
-
|
|
25830
|
+
apiV1ServicereviewPost: function (createServiceReviewCommand, options) {
|
|
25779
25831
|
if (options === void 0) { options = {}; }
|
|
25780
25832
|
return __awaiter(_this, void 0, void 0, function () {
|
|
25781
25833
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
25782
25834
|
return __generator(this, function (_a) {
|
|
25783
25835
|
switch (_a.label) {
|
|
25784
25836
|
case 0:
|
|
25785
|
-
|
|
25786
|
-
common_1.assertParamExists('apiV1ServicesServiceIdGet', 'serviceId', serviceId);
|
|
25787
|
-
localVarPath = "/api/v1/services/{serviceId}"
|
|
25788
|
-
.replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
|
|
25837
|
+
localVarPath = "/api/v1/servicereview";
|
|
25789
25838
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25790
25839
|
if (configuration) {
|
|
25791
25840
|
baseOptions = configuration.baseOptions;
|
|
25792
25841
|
}
|
|
25793
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
25842
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
25794
25843
|
localVarHeaderParameter = {};
|
|
25795
25844
|
localVarQueryParameter = {};
|
|
25796
25845
|
// authentication oauth2 required
|
|
@@ -25800,15 +25849,11 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
25800
25849
|
// authentication oauth2 required
|
|
25801
25850
|
// oauth required
|
|
25802
25851
|
_a.sent();
|
|
25803
|
-
|
|
25804
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
25805
|
-
}
|
|
25806
|
-
if (returnDefaultValue !== undefined) {
|
|
25807
|
-
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
25808
|
-
}
|
|
25852
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
25809
25853
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25810
25854
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25811
25855
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25856
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createServiceReviewCommand, localVarRequestOptions, configuration);
|
|
25812
25857
|
return [2 /*return*/, {
|
|
25813
25858
|
url: common_1.toPathString(localVarUrlObj),
|
|
25814
25859
|
options: localVarRequestOptions,
|
|
@@ -25819,28 +25864,27 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
25819
25864
|
},
|
|
25820
25865
|
/**
|
|
25821
25866
|
*
|
|
25822
|
-
* @
|
|
25823
|
-
* @param {string}
|
|
25824
|
-
* @param {boolean} [returnDefaultValue]
|
|
25867
|
+
* @summary Delete ServiceReview.
|
|
25868
|
+
* @param {string} serviceReviewId
|
|
25825
25869
|
* @param {*} [options] Override http request option.
|
|
25826
25870
|
* @throws {RequiredError}
|
|
25827
25871
|
*/
|
|
25828
|
-
|
|
25872
|
+
apiV1ServicereviewServiceReviewIdDelete: function (serviceReviewId, options) {
|
|
25829
25873
|
if (options === void 0) { options = {}; }
|
|
25830
25874
|
return __awaiter(_this, void 0, void 0, function () {
|
|
25831
25875
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
25832
25876
|
return __generator(this, function (_a) {
|
|
25833
25877
|
switch (_a.label) {
|
|
25834
25878
|
case 0:
|
|
25835
|
-
// verify required parameter '
|
|
25836
|
-
common_1.assertParamExists('
|
|
25837
|
-
localVarPath = "/api/v1/
|
|
25838
|
-
.replace("{" + "
|
|
25879
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
25880
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdDelete', 'serviceReviewId', serviceReviewId);
|
|
25881
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}"
|
|
25882
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
|
|
25839
25883
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25840
25884
|
if (configuration) {
|
|
25841
25885
|
baseOptions = configuration.baseOptions;
|
|
25842
25886
|
}
|
|
25843
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
25887
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
25844
25888
|
localVarHeaderParameter = {};
|
|
25845
25889
|
localVarQueryParameter = {};
|
|
25846
25890
|
// authentication oauth2 required
|
|
@@ -25850,12 +25894,6 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
25850
25894
|
// authentication oauth2 required
|
|
25851
25895
|
// oauth required
|
|
25852
25896
|
_a.sent();
|
|
25853
|
-
if (languageCode !== undefined) {
|
|
25854
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
25855
|
-
}
|
|
25856
|
-
if (returnDefaultValue !== undefined) {
|
|
25857
|
-
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
25858
|
-
}
|
|
25859
25897
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25860
25898
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25861
25899
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -25867,70 +25905,1147 @@ exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
|
25867
25905
|
});
|
|
25868
25906
|
});
|
|
25869
25907
|
},
|
|
25870
|
-
};
|
|
25871
|
-
};
|
|
25872
|
-
/**
|
|
25873
|
-
* ServicesApi - functional programming interface
|
|
25874
|
-
* @export
|
|
25875
|
-
*/
|
|
25876
|
-
exports.ServicesApiFp = function (configuration) {
|
|
25877
|
-
var localVarAxiosParamCreator = exports.ServicesApiAxiosParamCreator(configuration);
|
|
25878
|
-
return {
|
|
25879
25908
|
/**
|
|
25880
25909
|
*
|
|
25881
|
-
* @
|
|
25882
|
-
* @param {string} [hospitalId]
|
|
25883
|
-
* @param {string} [hospitalName]
|
|
25884
|
-
* @param {string} [hospitalSlug]
|
|
25885
|
-
* @param {string} [id]
|
|
25886
|
-
* @param {string} [name]
|
|
25887
|
-
* @param {string} [description]
|
|
25888
|
-
* @param {string} [specialtyId]
|
|
25889
|
-
* @param {string} [specialtyName]
|
|
25890
|
-
* @param {string} [specialtyTypeId]
|
|
25891
|
-
* @param {string} [specialtyTypeName]
|
|
25892
|
-
* @param {string} [serviceCategoryId]
|
|
25893
|
-
* @param {MarketingType} [marketingType]
|
|
25894
|
-
* @param {Procedure} [procedure]
|
|
25895
|
-
* @param {Date} [created]
|
|
25896
|
-
* @param {string} [languageCode]
|
|
25897
|
-
* @param {boolean} [returnDefaultValue]
|
|
25898
|
-
* @param {number} [page]
|
|
25899
|
-
* @param {number} [limit]
|
|
25900
|
-
* @param {Date} [lastRetrieved]
|
|
25910
|
+
* @param {string} serviceReviewId
|
|
25901
25911
|
* @param {*} [options] Override http request option.
|
|
25902
25912
|
* @throws {RequiredError}
|
|
25903
25913
|
*/
|
|
25904
|
-
|
|
25905
|
-
|
|
25906
|
-
|
|
25914
|
+
apiV1ServicereviewServiceReviewIdGet: function (serviceReviewId, options) {
|
|
25915
|
+
if (options === void 0) { options = {}; }
|
|
25916
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
25917
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
25907
25918
|
return __generator(this, function (_a) {
|
|
25908
25919
|
switch (_a.label) {
|
|
25909
|
-
case 0:
|
|
25920
|
+
case 0:
|
|
25921
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
25922
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdGet', 'serviceReviewId', serviceReviewId);
|
|
25923
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}"
|
|
25924
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
|
|
25925
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25926
|
+
if (configuration) {
|
|
25927
|
+
baseOptions = configuration.baseOptions;
|
|
25928
|
+
}
|
|
25929
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
25930
|
+
localVarHeaderParameter = {};
|
|
25931
|
+
localVarQueryParameter = {};
|
|
25932
|
+
// authentication oauth2 required
|
|
25933
|
+
// oauth required
|
|
25934
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
25910
25935
|
case 1:
|
|
25911
|
-
|
|
25912
|
-
|
|
25936
|
+
// authentication oauth2 required
|
|
25937
|
+
// oauth required
|
|
25938
|
+
_a.sent();
|
|
25939
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25940
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25941
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25942
|
+
return [2 /*return*/, {
|
|
25943
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
25944
|
+
options: localVarRequestOptions,
|
|
25945
|
+
}];
|
|
25913
25946
|
}
|
|
25914
25947
|
});
|
|
25915
25948
|
});
|
|
25916
25949
|
},
|
|
25917
25950
|
/**
|
|
25918
25951
|
*
|
|
25919
|
-
* @
|
|
25920
|
-
* @param {string}
|
|
25921
|
-
* @param {
|
|
25952
|
+
* @summary Get all ServiceReviewMedias.
|
|
25953
|
+
* @param {string} serviceReviewId
|
|
25954
|
+
* @param {string} [id]
|
|
25955
|
+
* @param {MediaType} [mediaType]
|
|
25956
|
+
* @param {number} [page]
|
|
25957
|
+
* @param {number} [limit]
|
|
25958
|
+
* @param {Date} [lastRetrieved]
|
|
25922
25959
|
* @param {*} [options] Override http request option.
|
|
25923
25960
|
* @throws {RequiredError}
|
|
25924
25961
|
*/
|
|
25925
|
-
|
|
25926
|
-
|
|
25927
|
-
|
|
25962
|
+
apiV1ServicereviewServiceReviewIdMediasGet: function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
25963
|
+
if (options === void 0) { options = {}; }
|
|
25964
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
25965
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
25928
25966
|
return __generator(this, function (_a) {
|
|
25929
25967
|
switch (_a.label) {
|
|
25930
|
-
case 0:
|
|
25931
|
-
|
|
25932
|
-
|
|
25933
|
-
|
|
25968
|
+
case 0:
|
|
25969
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
25970
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasGet', 'serviceReviewId', serviceReviewId);
|
|
25971
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}/medias"
|
|
25972
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
|
|
25973
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
25974
|
+
if (configuration) {
|
|
25975
|
+
baseOptions = configuration.baseOptions;
|
|
25976
|
+
}
|
|
25977
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
25978
|
+
localVarHeaderParameter = {};
|
|
25979
|
+
localVarQueryParameter = {};
|
|
25980
|
+
// authentication oauth2 required
|
|
25981
|
+
// oauth required
|
|
25982
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
25983
|
+
case 1:
|
|
25984
|
+
// authentication oauth2 required
|
|
25985
|
+
// oauth required
|
|
25986
|
+
_a.sent();
|
|
25987
|
+
if (id !== undefined) {
|
|
25988
|
+
localVarQueryParameter['Id'] = id;
|
|
25989
|
+
}
|
|
25990
|
+
if (mediaType !== undefined) {
|
|
25991
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
25992
|
+
}
|
|
25993
|
+
if (page !== undefined) {
|
|
25994
|
+
localVarQueryParameter['page'] = page;
|
|
25995
|
+
}
|
|
25996
|
+
if (limit !== undefined) {
|
|
25997
|
+
localVarQueryParameter['limit'] = limit;
|
|
25998
|
+
}
|
|
25999
|
+
if (lastRetrieved !== undefined) {
|
|
26000
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
26001
|
+
lastRetrieved.toISOString() :
|
|
26002
|
+
lastRetrieved;
|
|
26003
|
+
}
|
|
26004
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26005
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26006
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26007
|
+
return [2 /*return*/, {
|
|
26008
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26009
|
+
options: localVarRequestOptions,
|
|
26010
|
+
}];
|
|
26011
|
+
}
|
|
26012
|
+
});
|
|
26013
|
+
});
|
|
26014
|
+
},
|
|
26015
|
+
/**
|
|
26016
|
+
*
|
|
26017
|
+
* @summary Delete ServiceReviewMedia
|
|
26018
|
+
* @param {string} serviceReviewId
|
|
26019
|
+
* @param {string} mediaId
|
|
26020
|
+
* @param {*} [options] Override http request option.
|
|
26021
|
+
* @throws {RequiredError}
|
|
26022
|
+
*/
|
|
26023
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdDelete: function (serviceReviewId, mediaId, options) {
|
|
26024
|
+
if (options === void 0) { options = {}; }
|
|
26025
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26026
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26027
|
+
return __generator(this, function (_a) {
|
|
26028
|
+
switch (_a.label) {
|
|
26029
|
+
case 0:
|
|
26030
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
26031
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdDelete', 'serviceReviewId', serviceReviewId);
|
|
26032
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
26033
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
26034
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}"
|
|
26035
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)))
|
|
26036
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
26037
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26038
|
+
if (configuration) {
|
|
26039
|
+
baseOptions = configuration.baseOptions;
|
|
26040
|
+
}
|
|
26041
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
26042
|
+
localVarHeaderParameter = {};
|
|
26043
|
+
localVarQueryParameter = {};
|
|
26044
|
+
// authentication oauth2 required
|
|
26045
|
+
// oauth required
|
|
26046
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26047
|
+
case 1:
|
|
26048
|
+
// authentication oauth2 required
|
|
26049
|
+
// oauth required
|
|
26050
|
+
_a.sent();
|
|
26051
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26052
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26053
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26054
|
+
return [2 /*return*/, {
|
|
26055
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26056
|
+
options: localVarRequestOptions,
|
|
26057
|
+
}];
|
|
26058
|
+
}
|
|
26059
|
+
});
|
|
26060
|
+
});
|
|
26061
|
+
},
|
|
26062
|
+
/**
|
|
26063
|
+
*
|
|
26064
|
+
* @summary Get ServiceReviewMedia.
|
|
26065
|
+
* @param {string} serviceReviewId
|
|
26066
|
+
* @param {string} mediaId
|
|
26067
|
+
* @param {*} [options] Override http request option.
|
|
26068
|
+
* @throws {RequiredError}
|
|
26069
|
+
*/
|
|
26070
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdGet: function (serviceReviewId, mediaId, options) {
|
|
26071
|
+
if (options === void 0) { options = {}; }
|
|
26072
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26073
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26074
|
+
return __generator(this, function (_a) {
|
|
26075
|
+
switch (_a.label) {
|
|
26076
|
+
case 0:
|
|
26077
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
26078
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdGet', 'serviceReviewId', serviceReviewId);
|
|
26079
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
26080
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
26081
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}"
|
|
26082
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)))
|
|
26083
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
26084
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26085
|
+
if (configuration) {
|
|
26086
|
+
baseOptions = configuration.baseOptions;
|
|
26087
|
+
}
|
|
26088
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
26089
|
+
localVarHeaderParameter = {};
|
|
26090
|
+
localVarQueryParameter = {};
|
|
26091
|
+
// authentication oauth2 required
|
|
26092
|
+
// oauth required
|
|
26093
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26094
|
+
case 1:
|
|
26095
|
+
// authentication oauth2 required
|
|
26096
|
+
// oauth required
|
|
26097
|
+
_a.sent();
|
|
26098
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26099
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26100
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26101
|
+
return [2 /*return*/, {
|
|
26102
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26103
|
+
options: localVarRequestOptions,
|
|
26104
|
+
}];
|
|
26105
|
+
}
|
|
26106
|
+
});
|
|
26107
|
+
});
|
|
26108
|
+
},
|
|
26109
|
+
/**
|
|
26110
|
+
*
|
|
26111
|
+
* @summary Update ServiceReviewMedia.
|
|
26112
|
+
* @param {string} serviceReviewId
|
|
26113
|
+
* @param {string} mediaId
|
|
26114
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
26115
|
+
* @param {*} [options] Override http request option.
|
|
26116
|
+
* @throws {RequiredError}
|
|
26117
|
+
*/
|
|
26118
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdPut: function (serviceReviewId, mediaId, updateMediaCommand, options) {
|
|
26119
|
+
if (options === void 0) { options = {}; }
|
|
26120
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26121
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26122
|
+
return __generator(this, function (_a) {
|
|
26123
|
+
switch (_a.label) {
|
|
26124
|
+
case 0:
|
|
26125
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
26126
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdPut', 'serviceReviewId', serviceReviewId);
|
|
26127
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
26128
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
26129
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}/medias/{mediaId}"
|
|
26130
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)))
|
|
26131
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
26132
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26133
|
+
if (configuration) {
|
|
26134
|
+
baseOptions = configuration.baseOptions;
|
|
26135
|
+
}
|
|
26136
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
26137
|
+
localVarHeaderParameter = {};
|
|
26138
|
+
localVarQueryParameter = {};
|
|
26139
|
+
// authentication oauth2 required
|
|
26140
|
+
// oauth required
|
|
26141
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26142
|
+
case 1:
|
|
26143
|
+
// authentication oauth2 required
|
|
26144
|
+
// oauth required
|
|
26145
|
+
_a.sent();
|
|
26146
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26147
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26148
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26149
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26150
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
26151
|
+
return [2 /*return*/, {
|
|
26152
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26153
|
+
options: localVarRequestOptions,
|
|
26154
|
+
}];
|
|
26155
|
+
}
|
|
26156
|
+
});
|
|
26157
|
+
});
|
|
26158
|
+
},
|
|
26159
|
+
/**
|
|
26160
|
+
*
|
|
26161
|
+
* @summary Create ServiceReviewMedia.
|
|
26162
|
+
* @param {string} serviceReviewId
|
|
26163
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
26164
|
+
* @param {*} [options] Override http request option.
|
|
26165
|
+
* @throws {RequiredError}
|
|
26166
|
+
*/
|
|
26167
|
+
apiV1ServicereviewServiceReviewIdMediasPost: function (serviceReviewId, createMediaCommand, options) {
|
|
26168
|
+
if (options === void 0) { options = {}; }
|
|
26169
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26170
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26171
|
+
return __generator(this, function (_a) {
|
|
26172
|
+
switch (_a.label) {
|
|
26173
|
+
case 0:
|
|
26174
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
26175
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdMediasPost', 'serviceReviewId', serviceReviewId);
|
|
26176
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}/medias"
|
|
26177
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
|
|
26178
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26179
|
+
if (configuration) {
|
|
26180
|
+
baseOptions = configuration.baseOptions;
|
|
26181
|
+
}
|
|
26182
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
26183
|
+
localVarHeaderParameter = {};
|
|
26184
|
+
localVarQueryParameter = {};
|
|
26185
|
+
// authentication oauth2 required
|
|
26186
|
+
// oauth required
|
|
26187
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26188
|
+
case 1:
|
|
26189
|
+
// authentication oauth2 required
|
|
26190
|
+
// oauth required
|
|
26191
|
+
_a.sent();
|
|
26192
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26193
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26194
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26195
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26196
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
26197
|
+
return [2 /*return*/, {
|
|
26198
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26199
|
+
options: localVarRequestOptions,
|
|
26200
|
+
}];
|
|
26201
|
+
}
|
|
26202
|
+
});
|
|
26203
|
+
});
|
|
26204
|
+
},
|
|
26205
|
+
/**
|
|
26206
|
+
*
|
|
26207
|
+
* @summary Update ServiceReview.
|
|
26208
|
+
* @param {string} serviceReviewId
|
|
26209
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
26210
|
+
* @param {*} [options] Override http request option.
|
|
26211
|
+
* @throws {RequiredError}
|
|
26212
|
+
*/
|
|
26213
|
+
apiV1ServicereviewServiceReviewIdPut: function (serviceReviewId, updateServiceReviewCommand, options) {
|
|
26214
|
+
if (options === void 0) { options = {}; }
|
|
26215
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26216
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26217
|
+
return __generator(this, function (_a) {
|
|
26218
|
+
switch (_a.label) {
|
|
26219
|
+
case 0:
|
|
26220
|
+
// verify required parameter 'serviceReviewId' is not null or undefined
|
|
26221
|
+
common_1.assertParamExists('apiV1ServicereviewServiceReviewIdPut', 'serviceReviewId', serviceReviewId);
|
|
26222
|
+
localVarPath = "/api/v1/servicereview/{serviceReviewId}"
|
|
26223
|
+
.replace("{" + "serviceReviewId" + "}", encodeURIComponent(String(serviceReviewId)));
|
|
26224
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26225
|
+
if (configuration) {
|
|
26226
|
+
baseOptions = configuration.baseOptions;
|
|
26227
|
+
}
|
|
26228
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
26229
|
+
localVarHeaderParameter = {};
|
|
26230
|
+
localVarQueryParameter = {};
|
|
26231
|
+
// authentication oauth2 required
|
|
26232
|
+
// oauth required
|
|
26233
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26234
|
+
case 1:
|
|
26235
|
+
// authentication oauth2 required
|
|
26236
|
+
// oauth required
|
|
26237
|
+
_a.sent();
|
|
26238
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26239
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26240
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26241
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26242
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateServiceReviewCommand, localVarRequestOptions, configuration);
|
|
26243
|
+
return [2 /*return*/, {
|
|
26244
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26245
|
+
options: localVarRequestOptions,
|
|
26246
|
+
}];
|
|
26247
|
+
}
|
|
26248
|
+
});
|
|
26249
|
+
});
|
|
26250
|
+
},
|
|
26251
|
+
};
|
|
26252
|
+
};
|
|
26253
|
+
/**
|
|
26254
|
+
* ServiceReviewApi - functional programming interface
|
|
26255
|
+
* @export
|
|
26256
|
+
*/
|
|
26257
|
+
exports.ServiceReviewApiFp = function (configuration) {
|
|
26258
|
+
var localVarAxiosParamCreator = exports.ServiceReviewApiAxiosParamCreator(configuration);
|
|
26259
|
+
return {
|
|
26260
|
+
/**
|
|
26261
|
+
*
|
|
26262
|
+
* @summary Get all ServiceReviews.
|
|
26263
|
+
* @param {string} [serviceId]
|
|
26264
|
+
* @param {string} [serviceName]
|
|
26265
|
+
* @param {string} [patientId]
|
|
26266
|
+
* @param {string} [patientName]
|
|
26267
|
+
* @param {boolean} [recommended]
|
|
26268
|
+
* @param {number} [rate]
|
|
26269
|
+
* @param {number} [page]
|
|
26270
|
+
* @param {number} [limit]
|
|
26271
|
+
* @param {Date} [lastRetrieved]
|
|
26272
|
+
* @param {*} [options] Override http request option.
|
|
26273
|
+
* @throws {RequiredError}
|
|
26274
|
+
*/
|
|
26275
|
+
apiV1ServicereviewGet: function (serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options) {
|
|
26276
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26277
|
+
var localVarAxiosArgs;
|
|
26278
|
+
return __generator(this, function (_a) {
|
|
26279
|
+
switch (_a.label) {
|
|
26280
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options)];
|
|
26281
|
+
case 1:
|
|
26282
|
+
localVarAxiosArgs = _a.sent();
|
|
26283
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26284
|
+
}
|
|
26285
|
+
});
|
|
26286
|
+
});
|
|
26287
|
+
},
|
|
26288
|
+
/**
|
|
26289
|
+
*
|
|
26290
|
+
* @summary Create a ServiceReview.
|
|
26291
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
26292
|
+
* @param {*} [options] Override http request option.
|
|
26293
|
+
* @throws {RequiredError}
|
|
26294
|
+
*/
|
|
26295
|
+
apiV1ServicereviewPost: function (createServiceReviewCommand, options) {
|
|
26296
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26297
|
+
var localVarAxiosArgs;
|
|
26298
|
+
return __generator(this, function (_a) {
|
|
26299
|
+
switch (_a.label) {
|
|
26300
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewPost(createServiceReviewCommand, options)];
|
|
26301
|
+
case 1:
|
|
26302
|
+
localVarAxiosArgs = _a.sent();
|
|
26303
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26304
|
+
}
|
|
26305
|
+
});
|
|
26306
|
+
});
|
|
26307
|
+
},
|
|
26308
|
+
/**
|
|
26309
|
+
*
|
|
26310
|
+
* @summary Delete ServiceReview.
|
|
26311
|
+
* @param {string} serviceReviewId
|
|
26312
|
+
* @param {*} [options] Override http request option.
|
|
26313
|
+
* @throws {RequiredError}
|
|
26314
|
+
*/
|
|
26315
|
+
apiV1ServicereviewServiceReviewIdDelete: function (serviceReviewId, options) {
|
|
26316
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26317
|
+
var localVarAxiosArgs;
|
|
26318
|
+
return __generator(this, function (_a) {
|
|
26319
|
+
switch (_a.label) {
|
|
26320
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options)];
|
|
26321
|
+
case 1:
|
|
26322
|
+
localVarAxiosArgs = _a.sent();
|
|
26323
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26324
|
+
}
|
|
26325
|
+
});
|
|
26326
|
+
});
|
|
26327
|
+
},
|
|
26328
|
+
/**
|
|
26329
|
+
*
|
|
26330
|
+
* @param {string} serviceReviewId
|
|
26331
|
+
* @param {*} [options] Override http request option.
|
|
26332
|
+
* @throws {RequiredError}
|
|
26333
|
+
*/
|
|
26334
|
+
apiV1ServicereviewServiceReviewIdGet: function (serviceReviewId, options) {
|
|
26335
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26336
|
+
var localVarAxiosArgs;
|
|
26337
|
+
return __generator(this, function (_a) {
|
|
26338
|
+
switch (_a.label) {
|
|
26339
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options)];
|
|
26340
|
+
case 1:
|
|
26341
|
+
localVarAxiosArgs = _a.sent();
|
|
26342
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26343
|
+
}
|
|
26344
|
+
});
|
|
26345
|
+
});
|
|
26346
|
+
},
|
|
26347
|
+
/**
|
|
26348
|
+
*
|
|
26349
|
+
* @summary Get all ServiceReviewMedias.
|
|
26350
|
+
* @param {string} serviceReviewId
|
|
26351
|
+
* @param {string} [id]
|
|
26352
|
+
* @param {MediaType} [mediaType]
|
|
26353
|
+
* @param {number} [page]
|
|
26354
|
+
* @param {number} [limit]
|
|
26355
|
+
* @param {Date} [lastRetrieved]
|
|
26356
|
+
* @param {*} [options] Override http request option.
|
|
26357
|
+
* @throws {RequiredError}
|
|
26358
|
+
*/
|
|
26359
|
+
apiV1ServicereviewServiceReviewIdMediasGet: function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
26360
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26361
|
+
var localVarAxiosArgs;
|
|
26362
|
+
return __generator(this, function (_a) {
|
|
26363
|
+
switch (_a.label) {
|
|
26364
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
26365
|
+
case 1:
|
|
26366
|
+
localVarAxiosArgs = _a.sent();
|
|
26367
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26368
|
+
}
|
|
26369
|
+
});
|
|
26370
|
+
});
|
|
26371
|
+
},
|
|
26372
|
+
/**
|
|
26373
|
+
*
|
|
26374
|
+
* @summary Delete ServiceReviewMedia
|
|
26375
|
+
* @param {string} serviceReviewId
|
|
26376
|
+
* @param {string} mediaId
|
|
26377
|
+
* @param {*} [options] Override http request option.
|
|
26378
|
+
* @throws {RequiredError}
|
|
26379
|
+
*/
|
|
26380
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdDelete: function (serviceReviewId, mediaId, options) {
|
|
26381
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26382
|
+
var localVarAxiosArgs;
|
|
26383
|
+
return __generator(this, function (_a) {
|
|
26384
|
+
switch (_a.label) {
|
|
26385
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options)];
|
|
26386
|
+
case 1:
|
|
26387
|
+
localVarAxiosArgs = _a.sent();
|
|
26388
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26389
|
+
}
|
|
26390
|
+
});
|
|
26391
|
+
});
|
|
26392
|
+
},
|
|
26393
|
+
/**
|
|
26394
|
+
*
|
|
26395
|
+
* @summary Get ServiceReviewMedia.
|
|
26396
|
+
* @param {string} serviceReviewId
|
|
26397
|
+
* @param {string} mediaId
|
|
26398
|
+
* @param {*} [options] Override http request option.
|
|
26399
|
+
* @throws {RequiredError}
|
|
26400
|
+
*/
|
|
26401
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdGet: function (serviceReviewId, mediaId, options) {
|
|
26402
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26403
|
+
var localVarAxiosArgs;
|
|
26404
|
+
return __generator(this, function (_a) {
|
|
26405
|
+
switch (_a.label) {
|
|
26406
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options)];
|
|
26407
|
+
case 1:
|
|
26408
|
+
localVarAxiosArgs = _a.sent();
|
|
26409
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26410
|
+
}
|
|
26411
|
+
});
|
|
26412
|
+
});
|
|
26413
|
+
},
|
|
26414
|
+
/**
|
|
26415
|
+
*
|
|
26416
|
+
* @summary Update ServiceReviewMedia.
|
|
26417
|
+
* @param {string} serviceReviewId
|
|
26418
|
+
* @param {string} mediaId
|
|
26419
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
26420
|
+
* @param {*} [options] Override http request option.
|
|
26421
|
+
* @throws {RequiredError}
|
|
26422
|
+
*/
|
|
26423
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdPut: function (serviceReviewId, mediaId, updateMediaCommand, options) {
|
|
26424
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26425
|
+
var localVarAxiosArgs;
|
|
26426
|
+
return __generator(this, function (_a) {
|
|
26427
|
+
switch (_a.label) {
|
|
26428
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options)];
|
|
26429
|
+
case 1:
|
|
26430
|
+
localVarAxiosArgs = _a.sent();
|
|
26431
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26432
|
+
}
|
|
26433
|
+
});
|
|
26434
|
+
});
|
|
26435
|
+
},
|
|
26436
|
+
/**
|
|
26437
|
+
*
|
|
26438
|
+
* @summary Create ServiceReviewMedia.
|
|
26439
|
+
* @param {string} serviceReviewId
|
|
26440
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
26441
|
+
* @param {*} [options] Override http request option.
|
|
26442
|
+
* @throws {RequiredError}
|
|
26443
|
+
*/
|
|
26444
|
+
apiV1ServicereviewServiceReviewIdMediasPost: function (serviceReviewId, createMediaCommand, options) {
|
|
26445
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26446
|
+
var localVarAxiosArgs;
|
|
26447
|
+
return __generator(this, function (_a) {
|
|
26448
|
+
switch (_a.label) {
|
|
26449
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options)];
|
|
26450
|
+
case 1:
|
|
26451
|
+
localVarAxiosArgs = _a.sent();
|
|
26452
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26453
|
+
}
|
|
26454
|
+
});
|
|
26455
|
+
});
|
|
26456
|
+
},
|
|
26457
|
+
/**
|
|
26458
|
+
*
|
|
26459
|
+
* @summary Update ServiceReview.
|
|
26460
|
+
* @param {string} serviceReviewId
|
|
26461
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
26462
|
+
* @param {*} [options] Override http request option.
|
|
26463
|
+
* @throws {RequiredError}
|
|
26464
|
+
*/
|
|
26465
|
+
apiV1ServicereviewServiceReviewIdPut: function (serviceReviewId, updateServiceReviewCommand, options) {
|
|
26466
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
26467
|
+
var localVarAxiosArgs;
|
|
26468
|
+
return __generator(this, function (_a) {
|
|
26469
|
+
switch (_a.label) {
|
|
26470
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options)];
|
|
26471
|
+
case 1:
|
|
26472
|
+
localVarAxiosArgs = _a.sent();
|
|
26473
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
26474
|
+
}
|
|
26475
|
+
});
|
|
26476
|
+
});
|
|
26477
|
+
},
|
|
26478
|
+
};
|
|
26479
|
+
};
|
|
26480
|
+
/**
|
|
26481
|
+
* ServiceReviewApi - factory interface
|
|
26482
|
+
* @export
|
|
26483
|
+
*/
|
|
26484
|
+
exports.ServiceReviewApiFactory = function (configuration, basePath, axios) {
|
|
26485
|
+
var localVarFp = exports.ServiceReviewApiFp(configuration);
|
|
26486
|
+
return {
|
|
26487
|
+
/**
|
|
26488
|
+
*
|
|
26489
|
+
* @summary Get all ServiceReviews.
|
|
26490
|
+
* @param {string} [serviceId]
|
|
26491
|
+
* @param {string} [serviceName]
|
|
26492
|
+
* @param {string} [patientId]
|
|
26493
|
+
* @param {string} [patientName]
|
|
26494
|
+
* @param {boolean} [recommended]
|
|
26495
|
+
* @param {number} [rate]
|
|
26496
|
+
* @param {number} [page]
|
|
26497
|
+
* @param {number} [limit]
|
|
26498
|
+
* @param {Date} [lastRetrieved]
|
|
26499
|
+
* @param {*} [options] Override http request option.
|
|
26500
|
+
* @throws {RequiredError}
|
|
26501
|
+
*/
|
|
26502
|
+
apiV1ServicereviewGet: function (serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options) {
|
|
26503
|
+
return localVarFp.apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
26504
|
+
},
|
|
26505
|
+
/**
|
|
26506
|
+
*
|
|
26507
|
+
* @summary Create a ServiceReview.
|
|
26508
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
26509
|
+
* @param {*} [options] Override http request option.
|
|
26510
|
+
* @throws {RequiredError}
|
|
26511
|
+
*/
|
|
26512
|
+
apiV1ServicereviewPost: function (createServiceReviewCommand, options) {
|
|
26513
|
+
return localVarFp.apiV1ServicereviewPost(createServiceReviewCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26514
|
+
},
|
|
26515
|
+
/**
|
|
26516
|
+
*
|
|
26517
|
+
* @summary Delete ServiceReview.
|
|
26518
|
+
* @param {string} serviceReviewId
|
|
26519
|
+
* @param {*} [options] Override http request option.
|
|
26520
|
+
* @throws {RequiredError}
|
|
26521
|
+
*/
|
|
26522
|
+
apiV1ServicereviewServiceReviewIdDelete: function (serviceReviewId, options) {
|
|
26523
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options).then(function (request) { return request(axios, basePath); });
|
|
26524
|
+
},
|
|
26525
|
+
/**
|
|
26526
|
+
*
|
|
26527
|
+
* @param {string} serviceReviewId
|
|
26528
|
+
* @param {*} [options] Override http request option.
|
|
26529
|
+
* @throws {RequiredError}
|
|
26530
|
+
*/
|
|
26531
|
+
apiV1ServicereviewServiceReviewIdGet: function (serviceReviewId, options) {
|
|
26532
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(axios, basePath); });
|
|
26533
|
+
},
|
|
26534
|
+
/**
|
|
26535
|
+
*
|
|
26536
|
+
* @summary Get all ServiceReviewMedias.
|
|
26537
|
+
* @param {string} serviceReviewId
|
|
26538
|
+
* @param {string} [id]
|
|
26539
|
+
* @param {MediaType} [mediaType]
|
|
26540
|
+
* @param {number} [page]
|
|
26541
|
+
* @param {number} [limit]
|
|
26542
|
+
* @param {Date} [lastRetrieved]
|
|
26543
|
+
* @param {*} [options] Override http request option.
|
|
26544
|
+
* @throws {RequiredError}
|
|
26545
|
+
*/
|
|
26546
|
+
apiV1ServicereviewServiceReviewIdMediasGet: function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
26547
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
26548
|
+
},
|
|
26549
|
+
/**
|
|
26550
|
+
*
|
|
26551
|
+
* @summary Delete ServiceReviewMedia
|
|
26552
|
+
* @param {string} serviceReviewId
|
|
26553
|
+
* @param {string} mediaId
|
|
26554
|
+
* @param {*} [options] Override http request option.
|
|
26555
|
+
* @throws {RequiredError}
|
|
26556
|
+
*/
|
|
26557
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdDelete: function (serviceReviewId, mediaId, options) {
|
|
26558
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
26559
|
+
},
|
|
26560
|
+
/**
|
|
26561
|
+
*
|
|
26562
|
+
* @summary Get ServiceReviewMedia.
|
|
26563
|
+
* @param {string} serviceReviewId
|
|
26564
|
+
* @param {string} mediaId
|
|
26565
|
+
* @param {*} [options] Override http request option.
|
|
26566
|
+
* @throws {RequiredError}
|
|
26567
|
+
*/
|
|
26568
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdGet: function (serviceReviewId, mediaId, options) {
|
|
26569
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
26570
|
+
},
|
|
26571
|
+
/**
|
|
26572
|
+
*
|
|
26573
|
+
* @summary Update ServiceReviewMedia.
|
|
26574
|
+
* @param {string} serviceReviewId
|
|
26575
|
+
* @param {string} mediaId
|
|
26576
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
26577
|
+
* @param {*} [options] Override http request option.
|
|
26578
|
+
* @throws {RequiredError}
|
|
26579
|
+
*/
|
|
26580
|
+
apiV1ServicereviewServiceReviewIdMediasMediaIdPut: function (serviceReviewId, mediaId, updateMediaCommand, options) {
|
|
26581
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26582
|
+
},
|
|
26583
|
+
/**
|
|
26584
|
+
*
|
|
26585
|
+
* @summary Create ServiceReviewMedia.
|
|
26586
|
+
* @param {string} serviceReviewId
|
|
26587
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
26588
|
+
* @param {*} [options] Override http request option.
|
|
26589
|
+
* @throws {RequiredError}
|
|
26590
|
+
*/
|
|
26591
|
+
apiV1ServicereviewServiceReviewIdMediasPost: function (serviceReviewId, createMediaCommand, options) {
|
|
26592
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26593
|
+
},
|
|
26594
|
+
/**
|
|
26595
|
+
*
|
|
26596
|
+
* @summary Update ServiceReview.
|
|
26597
|
+
* @param {string} serviceReviewId
|
|
26598
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
26599
|
+
* @param {*} [options] Override http request option.
|
|
26600
|
+
* @throws {RequiredError}
|
|
26601
|
+
*/
|
|
26602
|
+
apiV1ServicereviewServiceReviewIdPut: function (serviceReviewId, updateServiceReviewCommand, options) {
|
|
26603
|
+
return localVarFp.apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then(function (request) { return request(axios, basePath); });
|
|
26604
|
+
},
|
|
26605
|
+
};
|
|
26606
|
+
};
|
|
26607
|
+
/**
|
|
26608
|
+
* ServiceReviewApi - object-oriented interface
|
|
26609
|
+
* @export
|
|
26610
|
+
* @class ServiceReviewApi
|
|
26611
|
+
* @extends {BaseAPI}
|
|
26612
|
+
*/
|
|
26613
|
+
var ServiceReviewApi = /** @class */ (function (_super) {
|
|
26614
|
+
__extends(ServiceReviewApi, _super);
|
|
26615
|
+
function ServiceReviewApi() {
|
|
26616
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
26617
|
+
}
|
|
26618
|
+
/**
|
|
26619
|
+
*
|
|
26620
|
+
* @summary Get all ServiceReviews.
|
|
26621
|
+
* @param {string} [serviceId]
|
|
26622
|
+
* @param {string} [serviceName]
|
|
26623
|
+
* @param {string} [patientId]
|
|
26624
|
+
* @param {string} [patientName]
|
|
26625
|
+
* @param {boolean} [recommended]
|
|
26626
|
+
* @param {number} [rate]
|
|
26627
|
+
* @param {number} [page]
|
|
26628
|
+
* @param {number} [limit]
|
|
26629
|
+
* @param {Date} [lastRetrieved]
|
|
26630
|
+
* @param {*} [options] Override http request option.
|
|
26631
|
+
* @throws {RequiredError}
|
|
26632
|
+
* @memberof ServiceReviewApi
|
|
26633
|
+
*/
|
|
26634
|
+
ServiceReviewApi.prototype.apiV1ServicereviewGet = function (serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options) {
|
|
26635
|
+
var _this = this;
|
|
26636
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewGet(serviceId, serviceName, patientId, patientName, recommended, rate, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26637
|
+
};
|
|
26638
|
+
/**
|
|
26639
|
+
*
|
|
26640
|
+
* @summary Create a ServiceReview.
|
|
26641
|
+
* @param {CreateServiceReviewCommand} [createServiceReviewCommand]
|
|
26642
|
+
* @param {*} [options] Override http request option.
|
|
26643
|
+
* @throws {RequiredError}
|
|
26644
|
+
* @memberof ServiceReviewApi
|
|
26645
|
+
*/
|
|
26646
|
+
ServiceReviewApi.prototype.apiV1ServicereviewPost = function (createServiceReviewCommand, options) {
|
|
26647
|
+
var _this = this;
|
|
26648
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewPost(createServiceReviewCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26649
|
+
};
|
|
26650
|
+
/**
|
|
26651
|
+
*
|
|
26652
|
+
* @summary Delete ServiceReview.
|
|
26653
|
+
* @param {string} serviceReviewId
|
|
26654
|
+
* @param {*} [options] Override http request option.
|
|
26655
|
+
* @throws {RequiredError}
|
|
26656
|
+
* @memberof ServiceReviewApi
|
|
26657
|
+
*/
|
|
26658
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdDelete = function (serviceReviewId, options) {
|
|
26659
|
+
var _this = this;
|
|
26660
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdDelete(serviceReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26661
|
+
};
|
|
26662
|
+
/**
|
|
26663
|
+
*
|
|
26664
|
+
* @param {string} serviceReviewId
|
|
26665
|
+
* @param {*} [options] Override http request option.
|
|
26666
|
+
* @throws {RequiredError}
|
|
26667
|
+
* @memberof ServiceReviewApi
|
|
26668
|
+
*/
|
|
26669
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdGet = function (serviceReviewId, options) {
|
|
26670
|
+
var _this = this;
|
|
26671
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdGet(serviceReviewId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26672
|
+
};
|
|
26673
|
+
/**
|
|
26674
|
+
*
|
|
26675
|
+
* @summary Get all ServiceReviewMedias.
|
|
26676
|
+
* @param {string} serviceReviewId
|
|
26677
|
+
* @param {string} [id]
|
|
26678
|
+
* @param {MediaType} [mediaType]
|
|
26679
|
+
* @param {number} [page]
|
|
26680
|
+
* @param {number} [limit]
|
|
26681
|
+
* @param {Date} [lastRetrieved]
|
|
26682
|
+
* @param {*} [options] Override http request option.
|
|
26683
|
+
* @throws {RequiredError}
|
|
26684
|
+
* @memberof ServiceReviewApi
|
|
26685
|
+
*/
|
|
26686
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdMediasGet = function (serviceReviewId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
26687
|
+
var _this = this;
|
|
26688
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasGet(serviceReviewId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26689
|
+
};
|
|
26690
|
+
/**
|
|
26691
|
+
*
|
|
26692
|
+
* @summary Delete ServiceReviewMedia
|
|
26693
|
+
* @param {string} serviceReviewId
|
|
26694
|
+
* @param {string} mediaId
|
|
26695
|
+
* @param {*} [options] Override http request option.
|
|
26696
|
+
* @throws {RequiredError}
|
|
26697
|
+
* @memberof ServiceReviewApi
|
|
26698
|
+
*/
|
|
26699
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdMediasMediaIdDelete = function (serviceReviewId, mediaId, options) {
|
|
26700
|
+
var _this = this;
|
|
26701
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdDelete(serviceReviewId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26702
|
+
};
|
|
26703
|
+
/**
|
|
26704
|
+
*
|
|
26705
|
+
* @summary Get ServiceReviewMedia.
|
|
26706
|
+
* @param {string} serviceReviewId
|
|
26707
|
+
* @param {string} mediaId
|
|
26708
|
+
* @param {*} [options] Override http request option.
|
|
26709
|
+
* @throws {RequiredError}
|
|
26710
|
+
* @memberof ServiceReviewApi
|
|
26711
|
+
*/
|
|
26712
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdMediasMediaIdGet = function (serviceReviewId, mediaId, options) {
|
|
26713
|
+
var _this = this;
|
|
26714
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdGet(serviceReviewId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26715
|
+
};
|
|
26716
|
+
/**
|
|
26717
|
+
*
|
|
26718
|
+
* @summary Update ServiceReviewMedia.
|
|
26719
|
+
* @param {string} serviceReviewId
|
|
26720
|
+
* @param {string} mediaId
|
|
26721
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
26722
|
+
* @param {*} [options] Override http request option.
|
|
26723
|
+
* @throws {RequiredError}
|
|
26724
|
+
* @memberof ServiceReviewApi
|
|
26725
|
+
*/
|
|
26726
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdMediasMediaIdPut = function (serviceReviewId, mediaId, updateMediaCommand, options) {
|
|
26727
|
+
var _this = this;
|
|
26728
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasMediaIdPut(serviceReviewId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26729
|
+
};
|
|
26730
|
+
/**
|
|
26731
|
+
*
|
|
26732
|
+
* @summary Create ServiceReviewMedia.
|
|
26733
|
+
* @param {string} serviceReviewId
|
|
26734
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
26735
|
+
* @param {*} [options] Override http request option.
|
|
26736
|
+
* @throws {RequiredError}
|
|
26737
|
+
* @memberof ServiceReviewApi
|
|
26738
|
+
*/
|
|
26739
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdMediasPost = function (serviceReviewId, createMediaCommand, options) {
|
|
26740
|
+
var _this = this;
|
|
26741
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdMediasPost(serviceReviewId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26742
|
+
};
|
|
26743
|
+
/**
|
|
26744
|
+
*
|
|
26745
|
+
* @summary Update ServiceReview.
|
|
26746
|
+
* @param {string} serviceReviewId
|
|
26747
|
+
* @param {UpdateServiceReviewCommand} [updateServiceReviewCommand]
|
|
26748
|
+
* @param {*} [options] Override http request option.
|
|
26749
|
+
* @throws {RequiredError}
|
|
26750
|
+
* @memberof ServiceReviewApi
|
|
26751
|
+
*/
|
|
26752
|
+
ServiceReviewApi.prototype.apiV1ServicereviewServiceReviewIdPut = function (serviceReviewId, updateServiceReviewCommand, options) {
|
|
26753
|
+
var _this = this;
|
|
26754
|
+
return exports.ServiceReviewApiFp(this.configuration).apiV1ServicereviewServiceReviewIdPut(serviceReviewId, updateServiceReviewCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26755
|
+
};
|
|
26756
|
+
return ServiceReviewApi;
|
|
26757
|
+
}(base_1.BaseAPI));
|
|
26758
|
+
exports.ServiceReviewApi = ServiceReviewApi;
|
|
26759
|
+
/**
|
|
26760
|
+
* ServicesApi - axios parameter creator
|
|
26761
|
+
* @export
|
|
26762
|
+
*/
|
|
26763
|
+
exports.ServicesApiAxiosParamCreator = function (configuration) {
|
|
26764
|
+
var _this = this;
|
|
26765
|
+
return {
|
|
26766
|
+
/**
|
|
26767
|
+
*
|
|
26768
|
+
* @summary Get all HospitalServices.
|
|
26769
|
+
* @param {string} [hospitalId]
|
|
26770
|
+
* @param {string} [hospitalName]
|
|
26771
|
+
* @param {string} [hospitalSlug]
|
|
26772
|
+
* @param {string} [id]
|
|
26773
|
+
* @param {string} [name]
|
|
26774
|
+
* @param {string} [description]
|
|
26775
|
+
* @param {string} [specialtyId]
|
|
26776
|
+
* @param {string} [specialtyName]
|
|
26777
|
+
* @param {string} [specialtyTypeId]
|
|
26778
|
+
* @param {string} [specialtyTypeName]
|
|
26779
|
+
* @param {string} [serviceCategoryId]
|
|
26780
|
+
* @param {MarketingType} [marketingType]
|
|
26781
|
+
* @param {Procedure} [procedure]
|
|
26782
|
+
* @param {Date} [created]
|
|
26783
|
+
* @param {string} [languageCode]
|
|
26784
|
+
* @param {boolean} [returnDefaultValue]
|
|
26785
|
+
* @param {number} [page]
|
|
26786
|
+
* @param {number} [limit]
|
|
26787
|
+
* @param {Date} [lastRetrieved]
|
|
26788
|
+
* @param {*} [options] Override http request option.
|
|
26789
|
+
* @throws {RequiredError}
|
|
26790
|
+
*/
|
|
26791
|
+
apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
26792
|
+
if (options === void 0) { options = {}; }
|
|
26793
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26794
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26795
|
+
return __generator(this, function (_a) {
|
|
26796
|
+
switch (_a.label) {
|
|
26797
|
+
case 0:
|
|
26798
|
+
localVarPath = "/api/v1/services";
|
|
26799
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26800
|
+
if (configuration) {
|
|
26801
|
+
baseOptions = configuration.baseOptions;
|
|
26802
|
+
}
|
|
26803
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
26804
|
+
localVarHeaderParameter = {};
|
|
26805
|
+
localVarQueryParameter = {};
|
|
26806
|
+
// authentication oauth2 required
|
|
26807
|
+
// oauth required
|
|
26808
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26809
|
+
case 1:
|
|
26810
|
+
// authentication oauth2 required
|
|
26811
|
+
// oauth required
|
|
26812
|
+
_a.sent();
|
|
26813
|
+
if (hospitalId !== undefined) {
|
|
26814
|
+
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
26815
|
+
}
|
|
26816
|
+
if (hospitalName !== undefined) {
|
|
26817
|
+
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
26818
|
+
}
|
|
26819
|
+
if (hospitalSlug !== undefined) {
|
|
26820
|
+
localVarQueryParameter['HospitalSlug'] = hospitalSlug;
|
|
26821
|
+
}
|
|
26822
|
+
if (id !== undefined) {
|
|
26823
|
+
localVarQueryParameter['Id'] = id;
|
|
26824
|
+
}
|
|
26825
|
+
if (name !== undefined) {
|
|
26826
|
+
localVarQueryParameter['Name'] = name;
|
|
26827
|
+
}
|
|
26828
|
+
if (description !== undefined) {
|
|
26829
|
+
localVarQueryParameter['Description'] = description;
|
|
26830
|
+
}
|
|
26831
|
+
if (specialtyId !== undefined) {
|
|
26832
|
+
localVarQueryParameter['SpecialtyId'] = specialtyId;
|
|
26833
|
+
}
|
|
26834
|
+
if (specialtyName !== undefined) {
|
|
26835
|
+
localVarQueryParameter['SpecialtyName'] = specialtyName;
|
|
26836
|
+
}
|
|
26837
|
+
if (specialtyTypeId !== undefined) {
|
|
26838
|
+
localVarQueryParameter['SpecialtyTypeId'] = specialtyTypeId;
|
|
26839
|
+
}
|
|
26840
|
+
if (specialtyTypeName !== undefined) {
|
|
26841
|
+
localVarQueryParameter['SpecialtyTypeName'] = specialtyTypeName;
|
|
26842
|
+
}
|
|
26843
|
+
if (serviceCategoryId !== undefined) {
|
|
26844
|
+
localVarQueryParameter['ServiceCategoryId'] = serviceCategoryId;
|
|
26845
|
+
}
|
|
26846
|
+
if (marketingType !== undefined) {
|
|
26847
|
+
localVarQueryParameter['MarketingType'] = marketingType;
|
|
26848
|
+
}
|
|
26849
|
+
if (procedure !== undefined) {
|
|
26850
|
+
localVarQueryParameter['Procedure'] = procedure;
|
|
26851
|
+
}
|
|
26852
|
+
if (created !== undefined) {
|
|
26853
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
26854
|
+
created.toISOString() :
|
|
26855
|
+
created;
|
|
26856
|
+
}
|
|
26857
|
+
if (languageCode !== undefined) {
|
|
26858
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
26859
|
+
}
|
|
26860
|
+
if (returnDefaultValue !== undefined) {
|
|
26861
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
26862
|
+
}
|
|
26863
|
+
if (page !== undefined) {
|
|
26864
|
+
localVarQueryParameter['page'] = page;
|
|
26865
|
+
}
|
|
26866
|
+
if (limit !== undefined) {
|
|
26867
|
+
localVarQueryParameter['limit'] = limit;
|
|
26868
|
+
}
|
|
26869
|
+
if (lastRetrieved !== undefined) {
|
|
26870
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
26871
|
+
lastRetrieved.toISOString() :
|
|
26872
|
+
lastRetrieved;
|
|
26873
|
+
}
|
|
26874
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26875
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26876
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26877
|
+
return [2 /*return*/, {
|
|
26878
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26879
|
+
options: localVarRequestOptions,
|
|
26880
|
+
}];
|
|
26881
|
+
}
|
|
26882
|
+
});
|
|
26883
|
+
});
|
|
26884
|
+
},
|
|
26885
|
+
/**
|
|
26886
|
+
*
|
|
26887
|
+
* @param {string} serviceId
|
|
26888
|
+
* @param {string} [languageCode]
|
|
26889
|
+
* @param {boolean} [returnDefaultValue]
|
|
26890
|
+
* @param {*} [options] Override http request option.
|
|
26891
|
+
* @throws {RequiredError}
|
|
26892
|
+
*/
|
|
26893
|
+
apiV1ServicesServiceIdGet: function (serviceId, languageCode, returnDefaultValue, options) {
|
|
26894
|
+
if (options === void 0) { options = {}; }
|
|
26895
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26896
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26897
|
+
return __generator(this, function (_a) {
|
|
26898
|
+
switch (_a.label) {
|
|
26899
|
+
case 0:
|
|
26900
|
+
// verify required parameter 'serviceId' is not null or undefined
|
|
26901
|
+
common_1.assertParamExists('apiV1ServicesServiceIdGet', 'serviceId', serviceId);
|
|
26902
|
+
localVarPath = "/api/v1/services/{serviceId}"
|
|
26903
|
+
.replace("{" + "serviceId" + "}", encodeURIComponent(String(serviceId)));
|
|
26904
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26905
|
+
if (configuration) {
|
|
26906
|
+
baseOptions = configuration.baseOptions;
|
|
26907
|
+
}
|
|
26908
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
26909
|
+
localVarHeaderParameter = {};
|
|
26910
|
+
localVarQueryParameter = {};
|
|
26911
|
+
// authentication oauth2 required
|
|
26912
|
+
// oauth required
|
|
26913
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26914
|
+
case 1:
|
|
26915
|
+
// authentication oauth2 required
|
|
26916
|
+
// oauth required
|
|
26917
|
+
_a.sent();
|
|
26918
|
+
if (languageCode !== undefined) {
|
|
26919
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
26920
|
+
}
|
|
26921
|
+
if (returnDefaultValue !== undefined) {
|
|
26922
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
26923
|
+
}
|
|
26924
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26925
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26926
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26927
|
+
return [2 /*return*/, {
|
|
26928
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26929
|
+
options: localVarRequestOptions,
|
|
26930
|
+
}];
|
|
26931
|
+
}
|
|
26932
|
+
});
|
|
26933
|
+
});
|
|
26934
|
+
},
|
|
26935
|
+
/**
|
|
26936
|
+
*
|
|
26937
|
+
* @param {string} slug
|
|
26938
|
+
* @param {string} [languageCode]
|
|
26939
|
+
* @param {boolean} [returnDefaultValue]
|
|
26940
|
+
* @param {*} [options] Override http request option.
|
|
26941
|
+
* @throws {RequiredError}
|
|
26942
|
+
*/
|
|
26943
|
+
apiV1ServicesSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
26944
|
+
if (options === void 0) { options = {}; }
|
|
26945
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
26946
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
26947
|
+
return __generator(this, function (_a) {
|
|
26948
|
+
switch (_a.label) {
|
|
26949
|
+
case 0:
|
|
26950
|
+
// verify required parameter 'slug' is not null or undefined
|
|
26951
|
+
common_1.assertParamExists('apiV1ServicesSlugGet', 'slug', slug);
|
|
26952
|
+
localVarPath = "/api/v1/services/{slug}"
|
|
26953
|
+
.replace("{" + "slug" + "}", encodeURIComponent(String(slug)));
|
|
26954
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26955
|
+
if (configuration) {
|
|
26956
|
+
baseOptions = configuration.baseOptions;
|
|
26957
|
+
}
|
|
26958
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
26959
|
+
localVarHeaderParameter = {};
|
|
26960
|
+
localVarQueryParameter = {};
|
|
26961
|
+
// authentication oauth2 required
|
|
26962
|
+
// oauth required
|
|
26963
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
26964
|
+
case 1:
|
|
26965
|
+
// authentication oauth2 required
|
|
26966
|
+
// oauth required
|
|
26967
|
+
_a.sent();
|
|
26968
|
+
if (languageCode !== undefined) {
|
|
26969
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
26970
|
+
}
|
|
26971
|
+
if (returnDefaultValue !== undefined) {
|
|
26972
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
26973
|
+
}
|
|
26974
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26975
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26976
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26977
|
+
return [2 /*return*/, {
|
|
26978
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
26979
|
+
options: localVarRequestOptions,
|
|
26980
|
+
}];
|
|
26981
|
+
}
|
|
26982
|
+
});
|
|
26983
|
+
});
|
|
26984
|
+
},
|
|
26985
|
+
};
|
|
26986
|
+
};
|
|
26987
|
+
/**
|
|
26988
|
+
* ServicesApi - functional programming interface
|
|
26989
|
+
* @export
|
|
26990
|
+
*/
|
|
26991
|
+
exports.ServicesApiFp = function (configuration) {
|
|
26992
|
+
var localVarAxiosParamCreator = exports.ServicesApiAxiosParamCreator(configuration);
|
|
26993
|
+
return {
|
|
26994
|
+
/**
|
|
26995
|
+
*
|
|
26996
|
+
* @summary Get all HospitalServices.
|
|
26997
|
+
* @param {string} [hospitalId]
|
|
26998
|
+
* @param {string} [hospitalName]
|
|
26999
|
+
* @param {string} [hospitalSlug]
|
|
27000
|
+
* @param {string} [id]
|
|
27001
|
+
* @param {string} [name]
|
|
27002
|
+
* @param {string} [description]
|
|
27003
|
+
* @param {string} [specialtyId]
|
|
27004
|
+
* @param {string} [specialtyName]
|
|
27005
|
+
* @param {string} [specialtyTypeId]
|
|
27006
|
+
* @param {string} [specialtyTypeName]
|
|
27007
|
+
* @param {string} [serviceCategoryId]
|
|
27008
|
+
* @param {MarketingType} [marketingType]
|
|
27009
|
+
* @param {Procedure} [procedure]
|
|
27010
|
+
* @param {Date} [created]
|
|
27011
|
+
* @param {string} [languageCode]
|
|
27012
|
+
* @param {boolean} [returnDefaultValue]
|
|
27013
|
+
* @param {number} [page]
|
|
27014
|
+
* @param {number} [limit]
|
|
27015
|
+
* @param {Date} [lastRetrieved]
|
|
27016
|
+
* @param {*} [options] Override http request option.
|
|
27017
|
+
* @throws {RequiredError}
|
|
27018
|
+
*/
|
|
27019
|
+
apiV1ServicesGet: function (hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
27020
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27021
|
+
var localVarAxiosArgs;
|
|
27022
|
+
return __generator(this, function (_a) {
|
|
27023
|
+
switch (_a.label) {
|
|
27024
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesGet(hospitalId, hospitalName, hospitalSlug, id, name, description, specialtyId, specialtyName, specialtyTypeId, specialtyTypeName, serviceCategoryId, marketingType, procedure, created, languageCode, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
27025
|
+
case 1:
|
|
27026
|
+
localVarAxiosArgs = _a.sent();
|
|
27027
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
27028
|
+
}
|
|
27029
|
+
});
|
|
27030
|
+
});
|
|
27031
|
+
},
|
|
27032
|
+
/**
|
|
27033
|
+
*
|
|
27034
|
+
* @param {string} serviceId
|
|
27035
|
+
* @param {string} [languageCode]
|
|
27036
|
+
* @param {boolean} [returnDefaultValue]
|
|
27037
|
+
* @param {*} [options] Override http request option.
|
|
27038
|
+
* @throws {RequiredError}
|
|
27039
|
+
*/
|
|
27040
|
+
apiV1ServicesServiceIdGet: function (serviceId, languageCode, returnDefaultValue, options) {
|
|
27041
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
27042
|
+
var localVarAxiosArgs;
|
|
27043
|
+
return __generator(this, function (_a) {
|
|
27044
|
+
switch (_a.label) {
|
|
27045
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicesServiceIdGet(serviceId, languageCode, returnDefaultValue, options)];
|
|
27046
|
+
case 1:
|
|
27047
|
+
localVarAxiosArgs = _a.sent();
|
|
27048
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
25934
27049
|
}
|
|
25935
27050
|
});
|
|
25936
27051
|
});
|
|
@@ -26100,15 +27215,13 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
26100
27215
|
* @param {string} [id]
|
|
26101
27216
|
* @param {string} [name]
|
|
26102
27217
|
* @param {string} [description]
|
|
26103
|
-
* @param {string} [languageCode]
|
|
26104
|
-
* @param {boolean} [returnDefaultValue]
|
|
26105
27218
|
* @param {number} [page]
|
|
26106
27219
|
* @param {number} [limit]
|
|
26107
27220
|
* @param {Date} [lastRetrieved]
|
|
26108
27221
|
* @param {*} [options] Override http request option.
|
|
26109
27222
|
* @throws {RequiredError}
|
|
26110
27223
|
*/
|
|
26111
|
-
apiV1ServicescategoriesGet: function (id, name, description,
|
|
27224
|
+
apiV1ServicescategoriesGet: function (id, name, description, page, limit, lastRetrieved, options) {
|
|
26112
27225
|
if (options === void 0) { options = {}; }
|
|
26113
27226
|
return __awaiter(_this, void 0, void 0, function () {
|
|
26114
27227
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -26139,12 +27252,6 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
26139
27252
|
if (description !== undefined) {
|
|
26140
27253
|
localVarQueryParameter['Description'] = description;
|
|
26141
27254
|
}
|
|
26142
|
-
if (languageCode !== undefined) {
|
|
26143
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
26144
|
-
}
|
|
26145
|
-
if (returnDefaultValue !== undefined) {
|
|
26146
|
-
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
26147
|
-
}
|
|
26148
27255
|
if (page !== undefined) {
|
|
26149
27256
|
localVarQueryParameter['page'] = page;
|
|
26150
27257
|
}
|
|
@@ -26255,11 +27362,10 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
26255
27362
|
*
|
|
26256
27363
|
* @summary Get ServiceCategory.
|
|
26257
27364
|
* @param {string} serviceCategoryId
|
|
26258
|
-
* @param {string} [languageCode]
|
|
26259
27365
|
* @param {*} [options] Override http request option.
|
|
26260
27366
|
* @throws {RequiredError}
|
|
26261
27367
|
*/
|
|
26262
|
-
apiV1ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId,
|
|
27368
|
+
apiV1ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId, options) {
|
|
26263
27369
|
if (options === void 0) { options = {}; }
|
|
26264
27370
|
return __awaiter(_this, void 0, void 0, function () {
|
|
26265
27371
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -26284,9 +27390,6 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
26284
27390
|
// authentication oauth2 required
|
|
26285
27391
|
// oauth required
|
|
26286
27392
|
_a.sent();
|
|
26287
|
-
if (languageCode !== undefined) {
|
|
26288
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
26289
|
-
}
|
|
26290
27393
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26291
27394
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26292
27395
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -26359,20 +27462,18 @@ exports.ServicesCategoriesApiFp = function (configuration) {
|
|
|
26359
27462
|
* @param {string} [id]
|
|
26360
27463
|
* @param {string} [name]
|
|
26361
27464
|
* @param {string} [description]
|
|
26362
|
-
* @param {string} [languageCode]
|
|
26363
|
-
* @param {boolean} [returnDefaultValue]
|
|
26364
27465
|
* @param {number} [page]
|
|
26365
27466
|
* @param {number} [limit]
|
|
26366
27467
|
* @param {Date} [lastRetrieved]
|
|
26367
27468
|
* @param {*} [options] Override http request option.
|
|
26368
27469
|
* @throws {RequiredError}
|
|
26369
27470
|
*/
|
|
26370
|
-
apiV1ServicescategoriesGet: function (id, name, description,
|
|
27471
|
+
apiV1ServicescategoriesGet: function (id, name, description, page, limit, lastRetrieved, options) {
|
|
26371
27472
|
return __awaiter(this, void 0, void 0, function () {
|
|
26372
27473
|
var localVarAxiosArgs;
|
|
26373
27474
|
return __generator(this, function (_a) {
|
|
26374
27475
|
switch (_a.label) {
|
|
26375
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicescategoriesGet(id, name, description,
|
|
27476
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options)];
|
|
26376
27477
|
case 1:
|
|
26377
27478
|
localVarAxiosArgs = _a.sent();
|
|
26378
27479
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -26423,16 +27524,15 @@ exports.ServicesCategoriesApiFp = function (configuration) {
|
|
|
26423
27524
|
*
|
|
26424
27525
|
* @summary Get ServiceCategory.
|
|
26425
27526
|
* @param {string} serviceCategoryId
|
|
26426
|
-
* @param {string} [languageCode]
|
|
26427
27527
|
* @param {*} [options] Override http request option.
|
|
26428
27528
|
* @throws {RequiredError}
|
|
26429
27529
|
*/
|
|
26430
|
-
apiV1ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId,
|
|
27530
|
+
apiV1ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId, options) {
|
|
26431
27531
|
return __awaiter(this, void 0, void 0, function () {
|
|
26432
27532
|
var localVarAxiosArgs;
|
|
26433
27533
|
return __generator(this, function (_a) {
|
|
26434
27534
|
switch (_a.label) {
|
|
26435
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
27535
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options)];
|
|
26436
27536
|
case 1:
|
|
26437
27537
|
localVarAxiosArgs = _a.sent();
|
|
26438
27538
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -26476,16 +27576,14 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
|
|
|
26476
27576
|
* @param {string} [id]
|
|
26477
27577
|
* @param {string} [name]
|
|
26478
27578
|
* @param {string} [description]
|
|
26479
|
-
* @param {string} [languageCode]
|
|
26480
|
-
* @param {boolean} [returnDefaultValue]
|
|
26481
27579
|
* @param {number} [page]
|
|
26482
27580
|
* @param {number} [limit]
|
|
26483
27581
|
* @param {Date} [lastRetrieved]
|
|
26484
27582
|
* @param {*} [options] Override http request option.
|
|
26485
27583
|
* @throws {RequiredError}
|
|
26486
27584
|
*/
|
|
26487
|
-
apiV1ServicescategoriesGet: function (id, name, description,
|
|
26488
|
-
return localVarFp.apiV1ServicescategoriesGet(id, name, description,
|
|
27585
|
+
apiV1ServicescategoriesGet: function (id, name, description, page, limit, lastRetrieved, options) {
|
|
27586
|
+
return localVarFp.apiV1ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
26489
27587
|
},
|
|
26490
27588
|
/**
|
|
26491
27589
|
*
|
|
@@ -26510,12 +27608,11 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
|
|
|
26510
27608
|
*
|
|
26511
27609
|
* @summary Get ServiceCategory.
|
|
26512
27610
|
* @param {string} serviceCategoryId
|
|
26513
|
-
* @param {string} [languageCode]
|
|
26514
27611
|
* @param {*} [options] Override http request option.
|
|
26515
27612
|
* @throws {RequiredError}
|
|
26516
27613
|
*/
|
|
26517
|
-
apiV1ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId,
|
|
26518
|
-
return localVarFp.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
27614
|
+
apiV1ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId, options) {
|
|
27615
|
+
return localVarFp.apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then(function (request) { return request(axios, basePath); });
|
|
26519
27616
|
},
|
|
26520
27617
|
/**
|
|
26521
27618
|
*
|
|
@@ -26547,8 +27644,6 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
|
|
|
26547
27644
|
* @param {string} [id]
|
|
26548
27645
|
* @param {string} [name]
|
|
26549
27646
|
* @param {string} [description]
|
|
26550
|
-
* @param {string} [languageCode]
|
|
26551
|
-
* @param {boolean} [returnDefaultValue]
|
|
26552
27647
|
* @param {number} [page]
|
|
26553
27648
|
* @param {number} [limit]
|
|
26554
27649
|
* @param {Date} [lastRetrieved]
|
|
@@ -26556,9 +27651,9 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
|
|
|
26556
27651
|
* @throws {RequiredError}
|
|
26557
27652
|
* @memberof ServicesCategoriesApi
|
|
26558
27653
|
*/
|
|
26559
|
-
ServicesCategoriesApi.prototype.apiV1ServicescategoriesGet = function (id, name, description,
|
|
27654
|
+
ServicesCategoriesApi.prototype.apiV1ServicescategoriesGet = function (id, name, description, page, limit, lastRetrieved, options) {
|
|
26560
27655
|
var _this = this;
|
|
26561
|
-
return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesGet(id, name, description,
|
|
27656
|
+
return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26562
27657
|
};
|
|
26563
27658
|
/**
|
|
26564
27659
|
*
|
|
@@ -26587,14 +27682,13 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
|
|
|
26587
27682
|
*
|
|
26588
27683
|
* @summary Get ServiceCategory.
|
|
26589
27684
|
* @param {string} serviceCategoryId
|
|
26590
|
-
* @param {string} [languageCode]
|
|
26591
27685
|
* @param {*} [options] Override http request option.
|
|
26592
27686
|
* @throws {RequiredError}
|
|
26593
27687
|
* @memberof ServicesCategoriesApi
|
|
26594
27688
|
*/
|
|
26595
|
-
ServicesCategoriesApi.prototype.apiV1ServicescategoriesServiceCategoryIdGet = function (serviceCategoryId,
|
|
27689
|
+
ServicesCategoriesApi.prototype.apiV1ServicescategoriesServiceCategoryIdGet = function (serviceCategoryId, options) {
|
|
26596
27690
|
var _this = this;
|
|
26597
|
-
return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
27691
|
+
return exports.ServicesCategoriesApiFp(this.configuration).apiV1ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26598
27692
|
};
|
|
26599
27693
|
/**
|
|
26600
27694
|
*
|