ch-admin-api-client-typescript 2.1.2 → 2.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +423 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +806 -14
- package/package.json +1 -1
- package/src/api.ts +814 -35
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.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
79
|
+
exports.WeatherForecastApi = exports.WeatherForecastApiFactory = exports.WeatherForecastApiFp = exports.WeatherForecastApiAxiosParamCreator = exports.TranslationApi = exports.TranslationApiFactory = exports.TranslationApiFp = exports.TranslationApiAxiosParamCreator = exports.TagsApi = exports.TagsApiFactory = exports.TagsApiFp = exports.TagsApiAxiosParamCreator = exports.SpecialtyTypesApi = exports.SpecialtyTypesApiFactory = exports.SpecialtyTypesApiFp = exports.SpecialtyTypesApiAxiosParamCreator = exports.SpecialtiesApi = exports.SpecialtiesApiFactory = exports.SpecialtiesApiFp = exports.SpecialtiesApiAxiosParamCreator = exports.ServicesCategoriesApi = exports.ServicesCategoriesApiFactory = exports.ServicesCategoriesApiFp = exports.ServicesCategoriesApiAxiosParamCreator = exports.ServicesApi = exports.ServicesApiFactory = exports.ServicesApiFp = exports.ServicesApiAxiosParamCreator = exports.ImagesApi = exports.ImagesApiFactory = exports.ImagesApiFp = exports.ImagesApiAxiosParamCreator = exports.HospitalsApi = exports.HospitalsApiFactory = exports.HospitalsApiFp = exports.HospitalsApiAxiosParamCreator = exports.DoctorsApi = exports.DoctorsApiFactory = exports.DoctorsApiFp = exports.DoctorsApiAxiosParamCreator = exports.DealsApi = exports.DealsApiFactory = exports.DealsApiFp = exports.DealsApiAxiosParamCreator = exports.CountriesApi = exports.CountriesApiFactory = exports.CountriesApiFp = exports.CountriesApiAxiosParamCreator = exports.ContributorsApi = exports.ContributorsApiFactory = exports.ContributorsApiFp = exports.ContributorsApiAxiosParamCreator = exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = exports.BookingsApi = exports.BookingsApiFactory = exports.BookingsApiFp = exports.BookingsApiAxiosParamCreator = exports.ArticlesApi = exports.ArticlesApiFactory = exports.ArticlesApiFp = exports.ArticlesApiAxiosParamCreator = exports.AccreditationsApi = exports.AccreditationsApiFactory = exports.AccreditationsApiFp = exports.AccreditationsApiAxiosParamCreator = exports.VendorType = exports.UserLocationType = exports.SnsType = exports.ReviewCategory = exports.RejectReason = exports.RefundStatus = exports.RefundPolicy = exports.RecurringInterval = exports.QuestionType = exports.QuestionStatus = exports.Procedure = exports.Platform = exports.PaymentStatus = exports.PaymentMethod = exports.MediaType = exports.MarketingType = exports.Gender = exports.ContributionType = exports.ConsultationType = exports.ConsultationStatus = exports.ChargeStatus = exports.BookingStatus = exports.ArticleStatus = void 0;
|
|
80
80
|
var axios_1 = __importDefault(require("axios"));
|
|
81
81
|
// Some imports not used depending on template conditions
|
|
82
82
|
// @ts-ignore
|
|
@@ -8571,6 +8571,98 @@ exports.DealsApi = DealsApi;
|
|
|
8571
8571
|
exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
8572
8572
|
var _this = this;
|
|
8573
8573
|
return {
|
|
8574
|
+
/**
|
|
8575
|
+
*
|
|
8576
|
+
* @summary Delete DoctorAffiliation.
|
|
8577
|
+
* @param {string} doctorId
|
|
8578
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
8579
|
+
* @param {*} [options] Override http request option.
|
|
8580
|
+
* @throws {RequiredError}
|
|
8581
|
+
*/
|
|
8582
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
8583
|
+
if (options === void 0) { options = {}; }
|
|
8584
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8585
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8586
|
+
return __generator(this, function (_a) {
|
|
8587
|
+
switch (_a.label) {
|
|
8588
|
+
case 0:
|
|
8589
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
8590
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsDelete', 'doctorId', doctorId);
|
|
8591
|
+
localVarPath = "/api/v1/doctors/{doctorId}/affiliations"
|
|
8592
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
8593
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8594
|
+
if (configuration) {
|
|
8595
|
+
baseOptions = configuration.baseOptions;
|
|
8596
|
+
}
|
|
8597
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
8598
|
+
localVarHeaderParameter = {};
|
|
8599
|
+
localVarQueryParameter = {};
|
|
8600
|
+
// authentication oauth2 required
|
|
8601
|
+
// oauth required
|
|
8602
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
8603
|
+
case 1:
|
|
8604
|
+
// authentication oauth2 required
|
|
8605
|
+
// oauth required
|
|
8606
|
+
_a.sent();
|
|
8607
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8608
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8609
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8610
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8611
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(deleteDoctorAffiliationCommand, localVarRequestOptions, configuration);
|
|
8612
|
+
return [2 /*return*/, {
|
|
8613
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
8614
|
+
options: localVarRequestOptions,
|
|
8615
|
+
}];
|
|
8616
|
+
}
|
|
8617
|
+
});
|
|
8618
|
+
});
|
|
8619
|
+
},
|
|
8620
|
+
/**
|
|
8621
|
+
*
|
|
8622
|
+
* @summary Create DoctorAffiliation.
|
|
8623
|
+
* @param {string} doctorId
|
|
8624
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
8625
|
+
* @param {*} [options] Override http request option.
|
|
8626
|
+
* @throws {RequiredError}
|
|
8627
|
+
*/
|
|
8628
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
8629
|
+
if (options === void 0) { options = {}; }
|
|
8630
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
8631
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
8632
|
+
return __generator(this, function (_a) {
|
|
8633
|
+
switch (_a.label) {
|
|
8634
|
+
case 0:
|
|
8635
|
+
// verify required parameter 'doctorId' is not null or undefined
|
|
8636
|
+
common_1.assertParamExists('apiV1DoctorsDoctorIdAffiliationsPost', 'doctorId', doctorId);
|
|
8637
|
+
localVarPath = "/api/v1/doctors/{doctorId}/affiliations"
|
|
8638
|
+
.replace("{" + "doctorId" + "}", encodeURIComponent(String(doctorId)));
|
|
8639
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8640
|
+
if (configuration) {
|
|
8641
|
+
baseOptions = configuration.baseOptions;
|
|
8642
|
+
}
|
|
8643
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
8644
|
+
localVarHeaderParameter = {};
|
|
8645
|
+
localVarQueryParameter = {};
|
|
8646
|
+
// authentication oauth2 required
|
|
8647
|
+
// oauth required
|
|
8648
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
8649
|
+
case 1:
|
|
8650
|
+
// authentication oauth2 required
|
|
8651
|
+
// oauth required
|
|
8652
|
+
_a.sent();
|
|
8653
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8654
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8655
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8656
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8657
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createDoctorAffiliationCommand, localVarRequestOptions, configuration);
|
|
8658
|
+
return [2 /*return*/, {
|
|
8659
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
8660
|
+
options: localVarRequestOptions,
|
|
8661
|
+
}];
|
|
8662
|
+
}
|
|
8663
|
+
});
|
|
8664
|
+
});
|
|
8665
|
+
},
|
|
8574
8666
|
/**
|
|
8575
8667
|
*
|
|
8576
8668
|
* @summary Delete DoctorCertificate.
|
|
@@ -10202,6 +10294,48 @@ exports.DoctorsApiAxiosParamCreator = function (configuration) {
|
|
|
10202
10294
|
exports.DoctorsApiFp = function (configuration) {
|
|
10203
10295
|
var localVarAxiosParamCreator = exports.DoctorsApiAxiosParamCreator(configuration);
|
|
10204
10296
|
return {
|
|
10297
|
+
/**
|
|
10298
|
+
*
|
|
10299
|
+
* @summary Delete DoctorAffiliation.
|
|
10300
|
+
* @param {string} doctorId
|
|
10301
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
10302
|
+
* @param {*} [options] Override http request option.
|
|
10303
|
+
* @throws {RequiredError}
|
|
10304
|
+
*/
|
|
10305
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
10306
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10307
|
+
var localVarAxiosArgs;
|
|
10308
|
+
return __generator(this, function (_a) {
|
|
10309
|
+
switch (_a.label) {
|
|
10310
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options)];
|
|
10311
|
+
case 1:
|
|
10312
|
+
localVarAxiosArgs = _a.sent();
|
|
10313
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10314
|
+
}
|
|
10315
|
+
});
|
|
10316
|
+
});
|
|
10317
|
+
},
|
|
10318
|
+
/**
|
|
10319
|
+
*
|
|
10320
|
+
* @summary Create DoctorAffiliation.
|
|
10321
|
+
* @param {string} doctorId
|
|
10322
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
10323
|
+
* @param {*} [options] Override http request option.
|
|
10324
|
+
* @throws {RequiredError}
|
|
10325
|
+
*/
|
|
10326
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
10327
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
10328
|
+
var localVarAxiosArgs;
|
|
10329
|
+
return __generator(this, function (_a) {
|
|
10330
|
+
switch (_a.label) {
|
|
10331
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options)];
|
|
10332
|
+
case 1:
|
|
10333
|
+
localVarAxiosArgs = _a.sent();
|
|
10334
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
10335
|
+
}
|
|
10336
|
+
});
|
|
10337
|
+
});
|
|
10338
|
+
},
|
|
10205
10339
|
/**
|
|
10206
10340
|
*
|
|
10207
10341
|
* @summary Delete DoctorCertificate.
|
|
@@ -10891,6 +11025,28 @@ exports.DoctorsApiFp = function (configuration) {
|
|
|
10891
11025
|
exports.DoctorsApiFactory = function (configuration, basePath, axios) {
|
|
10892
11026
|
var localVarFp = exports.DoctorsApiFp(configuration);
|
|
10893
11027
|
return {
|
|
11028
|
+
/**
|
|
11029
|
+
*
|
|
11030
|
+
* @summary Delete DoctorAffiliation.
|
|
11031
|
+
* @param {string} doctorId
|
|
11032
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
11033
|
+
* @param {*} [options] Override http request option.
|
|
11034
|
+
* @throws {RequiredError}
|
|
11035
|
+
*/
|
|
11036
|
+
apiV1DoctorsDoctorIdAffiliationsDelete: function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
11037
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
11038
|
+
},
|
|
11039
|
+
/**
|
|
11040
|
+
*
|
|
11041
|
+
* @summary Create DoctorAffiliation.
|
|
11042
|
+
* @param {string} doctorId
|
|
11043
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
11044
|
+
* @param {*} [options] Override http request option.
|
|
11045
|
+
* @throws {RequiredError}
|
|
11046
|
+
*/
|
|
11047
|
+
apiV1DoctorsDoctorIdAffiliationsPost: function (doctorId, createDoctorAffiliationCommand, options) {
|
|
11048
|
+
return localVarFp.apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
11049
|
+
},
|
|
10894
11050
|
/**
|
|
10895
11051
|
*
|
|
10896
11052
|
* @summary Delete DoctorCertificate.
|
|
@@ -11284,6 +11440,32 @@ var DoctorsApi = /** @class */ (function (_super) {
|
|
|
11284
11440
|
function DoctorsApi() {
|
|
11285
11441
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
11286
11442
|
}
|
|
11443
|
+
/**
|
|
11444
|
+
*
|
|
11445
|
+
* @summary Delete DoctorAffiliation.
|
|
11446
|
+
* @param {string} doctorId
|
|
11447
|
+
* @param {DeleteDoctorAffiliationCommand} [deleteDoctorAffiliationCommand]
|
|
11448
|
+
* @param {*} [options] Override http request option.
|
|
11449
|
+
* @throws {RequiredError}
|
|
11450
|
+
* @memberof DoctorsApi
|
|
11451
|
+
*/
|
|
11452
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsDelete = function (doctorId, deleteDoctorAffiliationCommand, options) {
|
|
11453
|
+
var _this = this;
|
|
11454
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsDelete(doctorId, deleteDoctorAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11455
|
+
};
|
|
11456
|
+
/**
|
|
11457
|
+
*
|
|
11458
|
+
* @summary Create DoctorAffiliation.
|
|
11459
|
+
* @param {string} doctorId
|
|
11460
|
+
* @param {CreateDoctorAffiliationCommand} [createDoctorAffiliationCommand]
|
|
11461
|
+
* @param {*} [options] Override http request option.
|
|
11462
|
+
* @throws {RequiredError}
|
|
11463
|
+
* @memberof DoctorsApi
|
|
11464
|
+
*/
|
|
11465
|
+
DoctorsApi.prototype.apiV1DoctorsDoctorIdAffiliationsPost = function (doctorId, createDoctorAffiliationCommand, options) {
|
|
11466
|
+
var _this = this;
|
|
11467
|
+
return exports.DoctorsApiFp(this.configuration).apiV1DoctorsDoctorIdAffiliationsPost(doctorId, createDoctorAffiliationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
11468
|
+
};
|
|
11287
11469
|
/**
|
|
11288
11470
|
*
|
|
11289
11471
|
* @summary Delete DoctorCertificate.
|
|
@@ -15786,6 +15968,121 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
15786
15968
|
return HospitalsApi;
|
|
15787
15969
|
}(base_1.BaseAPI));
|
|
15788
15970
|
exports.HospitalsApi = HospitalsApi;
|
|
15971
|
+
/**
|
|
15972
|
+
* ImagesApi - axios parameter creator
|
|
15973
|
+
* @export
|
|
15974
|
+
*/
|
|
15975
|
+
exports.ImagesApiAxiosParamCreator = function (configuration) {
|
|
15976
|
+
var _this = this;
|
|
15977
|
+
return {
|
|
15978
|
+
/**
|
|
15979
|
+
*
|
|
15980
|
+
* @param {*} [options] Override http request option.
|
|
15981
|
+
* @throws {RequiredError}
|
|
15982
|
+
*/
|
|
15983
|
+
apiV1ImagesPost: function (options) {
|
|
15984
|
+
if (options === void 0) { options = {}; }
|
|
15985
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
15986
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
15987
|
+
return __generator(this, function (_a) {
|
|
15988
|
+
switch (_a.label) {
|
|
15989
|
+
case 0:
|
|
15990
|
+
localVarPath = "/api/v1/images";
|
|
15991
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
15992
|
+
if (configuration) {
|
|
15993
|
+
baseOptions = configuration.baseOptions;
|
|
15994
|
+
}
|
|
15995
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
15996
|
+
localVarHeaderParameter = {};
|
|
15997
|
+
localVarQueryParameter = {};
|
|
15998
|
+
// authentication oauth2 required
|
|
15999
|
+
// oauth required
|
|
16000
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
16001
|
+
case 1:
|
|
16002
|
+
// authentication oauth2 required
|
|
16003
|
+
// oauth required
|
|
16004
|
+
_a.sent();
|
|
16005
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16006
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16007
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16008
|
+
return [2 /*return*/, {
|
|
16009
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16010
|
+
options: localVarRequestOptions,
|
|
16011
|
+
}];
|
|
16012
|
+
}
|
|
16013
|
+
});
|
|
16014
|
+
});
|
|
16015
|
+
},
|
|
16016
|
+
};
|
|
16017
|
+
};
|
|
16018
|
+
/**
|
|
16019
|
+
* ImagesApi - functional programming interface
|
|
16020
|
+
* @export
|
|
16021
|
+
*/
|
|
16022
|
+
exports.ImagesApiFp = function (configuration) {
|
|
16023
|
+
var localVarAxiosParamCreator = exports.ImagesApiAxiosParamCreator(configuration);
|
|
16024
|
+
return {
|
|
16025
|
+
/**
|
|
16026
|
+
*
|
|
16027
|
+
* @param {*} [options] Override http request option.
|
|
16028
|
+
* @throws {RequiredError}
|
|
16029
|
+
*/
|
|
16030
|
+
apiV1ImagesPost: function (options) {
|
|
16031
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
16032
|
+
var localVarAxiosArgs;
|
|
16033
|
+
return __generator(this, function (_a) {
|
|
16034
|
+
switch (_a.label) {
|
|
16035
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ImagesPost(options)];
|
|
16036
|
+
case 1:
|
|
16037
|
+
localVarAxiosArgs = _a.sent();
|
|
16038
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
16039
|
+
}
|
|
16040
|
+
});
|
|
16041
|
+
});
|
|
16042
|
+
},
|
|
16043
|
+
};
|
|
16044
|
+
};
|
|
16045
|
+
/**
|
|
16046
|
+
* ImagesApi - factory interface
|
|
16047
|
+
* @export
|
|
16048
|
+
*/
|
|
16049
|
+
exports.ImagesApiFactory = function (configuration, basePath, axios) {
|
|
16050
|
+
var localVarFp = exports.ImagesApiFp(configuration);
|
|
16051
|
+
return {
|
|
16052
|
+
/**
|
|
16053
|
+
*
|
|
16054
|
+
* @param {*} [options] Override http request option.
|
|
16055
|
+
* @throws {RequiredError}
|
|
16056
|
+
*/
|
|
16057
|
+
apiV1ImagesPost: function (options) {
|
|
16058
|
+
return localVarFp.apiV1ImagesPost(options).then(function (request) { return request(axios, basePath); });
|
|
16059
|
+
},
|
|
16060
|
+
};
|
|
16061
|
+
};
|
|
16062
|
+
/**
|
|
16063
|
+
* ImagesApi - object-oriented interface
|
|
16064
|
+
* @export
|
|
16065
|
+
* @class ImagesApi
|
|
16066
|
+
* @extends {BaseAPI}
|
|
16067
|
+
*/
|
|
16068
|
+
var ImagesApi = /** @class */ (function (_super) {
|
|
16069
|
+
__extends(ImagesApi, _super);
|
|
16070
|
+
function ImagesApi() {
|
|
16071
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
16072
|
+
}
|
|
16073
|
+
/**
|
|
16074
|
+
*
|
|
16075
|
+
* @param {*} [options] Override http request option.
|
|
16076
|
+
* @throws {RequiredError}
|
|
16077
|
+
* @memberof ImagesApi
|
|
16078
|
+
*/
|
|
16079
|
+
ImagesApi.prototype.apiV1ImagesPost = function (options) {
|
|
16080
|
+
var _this = this;
|
|
16081
|
+
return exports.ImagesApiFp(this.configuration).apiV1ImagesPost(options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
16082
|
+
};
|
|
16083
|
+
return ImagesApi;
|
|
16084
|
+
}(base_1.BaseAPI));
|
|
16085
|
+
exports.ImagesApi = ImagesApi;
|
|
15789
16086
|
/**
|
|
15790
16087
|
* ServicesApi - axios parameter creator
|
|
15791
16088
|
* @export
|
|
@@ -16906,13 +17203,17 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16906
17203
|
},
|
|
16907
17204
|
/**
|
|
16908
17205
|
*
|
|
16909
|
-
* @summary
|
|
17206
|
+
* @summary Get all SpecialtyMedias.
|
|
16910
17207
|
* @param {string} specialtyId
|
|
16911
|
-
* @param {
|
|
17208
|
+
* @param {string} [id]
|
|
17209
|
+
* @param {MediaType} [mediaType]
|
|
17210
|
+
* @param {number} [page]
|
|
17211
|
+
* @param {number} [limit]
|
|
17212
|
+
* @param {Date} [lastRetrieved]
|
|
16912
17213
|
* @param {*} [options] Override http request option.
|
|
16913
17214
|
* @throws {RequiredError}
|
|
16914
17215
|
*/
|
|
16915
|
-
|
|
17216
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
16916
17217
|
if (options === void 0) { options = {}; }
|
|
16917
17218
|
return __awaiter(_this, void 0, void 0, function () {
|
|
16918
17219
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -16920,14 +17221,14 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16920
17221
|
switch (_a.label) {
|
|
16921
17222
|
case 0:
|
|
16922
17223
|
// verify required parameter 'specialtyId' is not null or undefined
|
|
16923
|
-
common_1.assertParamExists('
|
|
16924
|
-
localVarPath = "/api/v1/specialties/{specialtyId}"
|
|
17224
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasGet', 'specialtyId', specialtyId);
|
|
17225
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias"
|
|
16925
17226
|
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
16926
17227
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16927
17228
|
if (configuration) {
|
|
16928
17229
|
baseOptions = configuration.baseOptions;
|
|
16929
17230
|
}
|
|
16930
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
17231
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
16931
17232
|
localVarHeaderParameter = {};
|
|
16932
17233
|
localVarQueryParameter = {};
|
|
16933
17234
|
// authentication oauth2 required
|
|
@@ -16937,13 +17238,264 @@ exports.SpecialtiesApiAxiosParamCreator = function (configuration) {
|
|
|
16937
17238
|
// authentication oauth2 required
|
|
16938
17239
|
// oauth required
|
|
16939
17240
|
_a.sent();
|
|
16940
|
-
|
|
16941
|
-
|
|
16942
|
-
|
|
16943
|
-
|
|
16944
|
-
|
|
16945
|
-
|
|
16946
|
-
|
|
17241
|
+
if (id !== undefined) {
|
|
17242
|
+
localVarQueryParameter['Id'] = id;
|
|
17243
|
+
}
|
|
17244
|
+
if (mediaType !== undefined) {
|
|
17245
|
+
localVarQueryParameter['MediaType'] = mediaType;
|
|
17246
|
+
}
|
|
17247
|
+
if (page !== undefined) {
|
|
17248
|
+
localVarQueryParameter['page'] = page;
|
|
17249
|
+
}
|
|
17250
|
+
if (limit !== undefined) {
|
|
17251
|
+
localVarQueryParameter['limit'] = limit;
|
|
17252
|
+
}
|
|
17253
|
+
if (lastRetrieved !== undefined) {
|
|
17254
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
17255
|
+
lastRetrieved.toISOString() :
|
|
17256
|
+
lastRetrieved;
|
|
17257
|
+
}
|
|
17258
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17259
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17260
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17261
|
+
return [2 /*return*/, {
|
|
17262
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17263
|
+
options: localVarRequestOptions,
|
|
17264
|
+
}];
|
|
17265
|
+
}
|
|
17266
|
+
});
|
|
17267
|
+
});
|
|
17268
|
+
},
|
|
17269
|
+
/**
|
|
17270
|
+
*
|
|
17271
|
+
* @summary Delete SpecialtyMedia
|
|
17272
|
+
* @param {string} specialtyId
|
|
17273
|
+
* @param {string} mediaId
|
|
17274
|
+
* @param {*} [options] Override http request option.
|
|
17275
|
+
* @throws {RequiredError}
|
|
17276
|
+
*/
|
|
17277
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: function (specialtyId, mediaId, options) {
|
|
17278
|
+
if (options === void 0) { options = {}; }
|
|
17279
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17280
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17281
|
+
return __generator(this, function (_a) {
|
|
17282
|
+
switch (_a.label) {
|
|
17283
|
+
case 0:
|
|
17284
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
17285
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete', 'specialtyId', specialtyId);
|
|
17286
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
17287
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete', 'mediaId', mediaId);
|
|
17288
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias/{mediaId}"
|
|
17289
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
17290
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
17291
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17292
|
+
if (configuration) {
|
|
17293
|
+
baseOptions = configuration.baseOptions;
|
|
17294
|
+
}
|
|
17295
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
17296
|
+
localVarHeaderParameter = {};
|
|
17297
|
+
localVarQueryParameter = {};
|
|
17298
|
+
// authentication oauth2 required
|
|
17299
|
+
// oauth required
|
|
17300
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17301
|
+
case 1:
|
|
17302
|
+
// authentication oauth2 required
|
|
17303
|
+
// oauth required
|
|
17304
|
+
_a.sent();
|
|
17305
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17306
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17307
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17308
|
+
return [2 /*return*/, {
|
|
17309
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17310
|
+
options: localVarRequestOptions,
|
|
17311
|
+
}];
|
|
17312
|
+
}
|
|
17313
|
+
});
|
|
17314
|
+
});
|
|
17315
|
+
},
|
|
17316
|
+
/**
|
|
17317
|
+
*
|
|
17318
|
+
* @summary Get SpecialtyMedia.
|
|
17319
|
+
* @param {string} specialtyId
|
|
17320
|
+
* @param {string} mediaId
|
|
17321
|
+
* @param {*} [options] Override http request option.
|
|
17322
|
+
* @throws {RequiredError}
|
|
17323
|
+
*/
|
|
17324
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: function (specialtyId, mediaId, options) {
|
|
17325
|
+
if (options === void 0) { options = {}; }
|
|
17326
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17327
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17328
|
+
return __generator(this, function (_a) {
|
|
17329
|
+
switch (_a.label) {
|
|
17330
|
+
case 0:
|
|
17331
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
17332
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdGet', 'specialtyId', specialtyId);
|
|
17333
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
17334
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdGet', 'mediaId', mediaId);
|
|
17335
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias/{mediaId}"
|
|
17336
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
17337
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
17338
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17339
|
+
if (configuration) {
|
|
17340
|
+
baseOptions = configuration.baseOptions;
|
|
17341
|
+
}
|
|
17342
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
17343
|
+
localVarHeaderParameter = {};
|
|
17344
|
+
localVarQueryParameter = {};
|
|
17345
|
+
// authentication oauth2 required
|
|
17346
|
+
// oauth required
|
|
17347
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17348
|
+
case 1:
|
|
17349
|
+
// authentication oauth2 required
|
|
17350
|
+
// oauth required
|
|
17351
|
+
_a.sent();
|
|
17352
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17353
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17354
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17355
|
+
return [2 /*return*/, {
|
|
17356
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17357
|
+
options: localVarRequestOptions,
|
|
17358
|
+
}];
|
|
17359
|
+
}
|
|
17360
|
+
});
|
|
17361
|
+
});
|
|
17362
|
+
},
|
|
17363
|
+
/**
|
|
17364
|
+
*
|
|
17365
|
+
* @summary Update SpecialtyMedia.
|
|
17366
|
+
* @param {string} specialtyId
|
|
17367
|
+
* @param {string} mediaId
|
|
17368
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
17369
|
+
* @param {*} [options] Override http request option.
|
|
17370
|
+
* @throws {RequiredError}
|
|
17371
|
+
*/
|
|
17372
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
17373
|
+
if (options === void 0) { options = {}; }
|
|
17374
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17375
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17376
|
+
return __generator(this, function (_a) {
|
|
17377
|
+
switch (_a.label) {
|
|
17378
|
+
case 0:
|
|
17379
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
17380
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdPut', 'specialtyId', specialtyId);
|
|
17381
|
+
// verify required parameter 'mediaId' is not null or undefined
|
|
17382
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasMediaIdPut', 'mediaId', mediaId);
|
|
17383
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias/{mediaId}"
|
|
17384
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)))
|
|
17385
|
+
.replace("{" + "mediaId" + "}", encodeURIComponent(String(mediaId)));
|
|
17386
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17387
|
+
if (configuration) {
|
|
17388
|
+
baseOptions = configuration.baseOptions;
|
|
17389
|
+
}
|
|
17390
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
17391
|
+
localVarHeaderParameter = {};
|
|
17392
|
+
localVarQueryParameter = {};
|
|
17393
|
+
// authentication oauth2 required
|
|
17394
|
+
// oauth required
|
|
17395
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17396
|
+
case 1:
|
|
17397
|
+
// authentication oauth2 required
|
|
17398
|
+
// oauth required
|
|
17399
|
+
_a.sent();
|
|
17400
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17401
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17402
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17403
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17404
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateMediaCommand, localVarRequestOptions, configuration);
|
|
17405
|
+
return [2 /*return*/, {
|
|
17406
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17407
|
+
options: localVarRequestOptions,
|
|
17408
|
+
}];
|
|
17409
|
+
}
|
|
17410
|
+
});
|
|
17411
|
+
});
|
|
17412
|
+
},
|
|
17413
|
+
/**
|
|
17414
|
+
*
|
|
17415
|
+
* @summary Create SpecialtyMedia.
|
|
17416
|
+
* @param {string} specialtyId
|
|
17417
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
17418
|
+
* @param {*} [options] Override http request option.
|
|
17419
|
+
* @throws {RequiredError}
|
|
17420
|
+
*/
|
|
17421
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: function (specialtyId, createMediaCommand, options) {
|
|
17422
|
+
if (options === void 0) { options = {}; }
|
|
17423
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
17424
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
17425
|
+
return __generator(this, function (_a) {
|
|
17426
|
+
switch (_a.label) {
|
|
17427
|
+
case 0:
|
|
17428
|
+
// verify required parameter 'specialtyId' is not null or undefined
|
|
17429
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdMediasPost', 'specialtyId', specialtyId);
|
|
17430
|
+
localVarPath = "/api/v1/specialties/{specialtyId}/medias"
|
|
17431
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
17432
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17433
|
+
if (configuration) {
|
|
17434
|
+
baseOptions = configuration.baseOptions;
|
|
17435
|
+
}
|
|
17436
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
17437
|
+
localVarHeaderParameter = {};
|
|
17438
|
+
localVarQueryParameter = {};
|
|
17439
|
+
// authentication oauth2 required
|
|
17440
|
+
// oauth required
|
|
17441
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17442
|
+
case 1:
|
|
17443
|
+
// authentication oauth2 required
|
|
17444
|
+
// oauth required
|
|
17445
|
+
_a.sent();
|
|
17446
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17447
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17448
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17449
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17450
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createMediaCommand, localVarRequestOptions, configuration);
|
|
17451
|
+
return [2 /*return*/, {
|
|
17452
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
17453
|
+
options: localVarRequestOptions,
|
|
17454
|
+
}];
|
|
17455
|
+
}
|
|
17456
|
+
});
|
|
17457
|
+
});
|
|
17458
|
+
},
|
|
17459
|
+
/**
|
|
17460
|
+
*
|
|
17461
|
+
* @summary Update Specialty.
|
|
17462
|
+
* @param {string} specialtyId
|
|
17463
|
+
* @param {UpdateSpecialtyCommand} [updateSpecialtyCommand]
|
|
17464
|
+
* @param {*} [options] Override http request option.
|
|
17465
|
+
* @throws {RequiredError}
|
|
17466
|
+
*/
|
|
17467
|
+
apiV1SpecialtiesSpecialtyIdPut: function (specialtyId, updateSpecialtyCommand, 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 'specialtyId' is not null or undefined
|
|
17475
|
+
common_1.assertParamExists('apiV1SpecialtiesSpecialtyIdPut', 'specialtyId', specialtyId);
|
|
17476
|
+
localVarPath = "/api/v1/specialties/{specialtyId}"
|
|
17477
|
+
.replace("{" + "specialtyId" + "}", encodeURIComponent(String(specialtyId)));
|
|
17478
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17479
|
+
if (configuration) {
|
|
17480
|
+
baseOptions = configuration.baseOptions;
|
|
17481
|
+
}
|
|
17482
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
17483
|
+
localVarHeaderParameter = {};
|
|
17484
|
+
localVarQueryParameter = {};
|
|
17485
|
+
// authentication oauth2 required
|
|
17486
|
+
// oauth required
|
|
17487
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
17488
|
+
case 1:
|
|
17489
|
+
// authentication oauth2 required
|
|
17490
|
+
// oauth required
|
|
17491
|
+
_a.sent();
|
|
17492
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17493
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17494
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17495
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17496
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateSpecialtyCommand, localVarRequestOptions, configuration);
|
|
17497
|
+
return [2 /*return*/, {
|
|
17498
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
16947
17499
|
options: localVarRequestOptions,
|
|
16948
17500
|
}];
|
|
16949
17501
|
}
|
|
@@ -17071,6 +17623,116 @@ exports.SpecialtiesApiFp = function (configuration) {
|
|
|
17071
17623
|
});
|
|
17072
17624
|
});
|
|
17073
17625
|
},
|
|
17626
|
+
/**
|
|
17627
|
+
*
|
|
17628
|
+
* @summary Get all SpecialtyMedias.
|
|
17629
|
+
* @param {string} specialtyId
|
|
17630
|
+
* @param {string} [id]
|
|
17631
|
+
* @param {MediaType} [mediaType]
|
|
17632
|
+
* @param {number} [page]
|
|
17633
|
+
* @param {number} [limit]
|
|
17634
|
+
* @param {Date} [lastRetrieved]
|
|
17635
|
+
* @param {*} [options] Override http request option.
|
|
17636
|
+
* @throws {RequiredError}
|
|
17637
|
+
*/
|
|
17638
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
17639
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17640
|
+
var localVarAxiosArgs;
|
|
17641
|
+
return __generator(this, function (_a) {
|
|
17642
|
+
switch (_a.label) {
|
|
17643
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options)];
|
|
17644
|
+
case 1:
|
|
17645
|
+
localVarAxiosArgs = _a.sent();
|
|
17646
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17647
|
+
}
|
|
17648
|
+
});
|
|
17649
|
+
});
|
|
17650
|
+
},
|
|
17651
|
+
/**
|
|
17652
|
+
*
|
|
17653
|
+
* @summary Delete SpecialtyMedia
|
|
17654
|
+
* @param {string} specialtyId
|
|
17655
|
+
* @param {string} mediaId
|
|
17656
|
+
* @param {*} [options] Override http request option.
|
|
17657
|
+
* @throws {RequiredError}
|
|
17658
|
+
*/
|
|
17659
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: function (specialtyId, mediaId, options) {
|
|
17660
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17661
|
+
var localVarAxiosArgs;
|
|
17662
|
+
return __generator(this, function (_a) {
|
|
17663
|
+
switch (_a.label) {
|
|
17664
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options)];
|
|
17665
|
+
case 1:
|
|
17666
|
+
localVarAxiosArgs = _a.sent();
|
|
17667
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17668
|
+
}
|
|
17669
|
+
});
|
|
17670
|
+
});
|
|
17671
|
+
},
|
|
17672
|
+
/**
|
|
17673
|
+
*
|
|
17674
|
+
* @summary Get SpecialtyMedia.
|
|
17675
|
+
* @param {string} specialtyId
|
|
17676
|
+
* @param {string} mediaId
|
|
17677
|
+
* @param {*} [options] Override http request option.
|
|
17678
|
+
* @throws {RequiredError}
|
|
17679
|
+
*/
|
|
17680
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: function (specialtyId, mediaId, options) {
|
|
17681
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17682
|
+
var localVarAxiosArgs;
|
|
17683
|
+
return __generator(this, function (_a) {
|
|
17684
|
+
switch (_a.label) {
|
|
17685
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options)];
|
|
17686
|
+
case 1:
|
|
17687
|
+
localVarAxiosArgs = _a.sent();
|
|
17688
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17689
|
+
}
|
|
17690
|
+
});
|
|
17691
|
+
});
|
|
17692
|
+
},
|
|
17693
|
+
/**
|
|
17694
|
+
*
|
|
17695
|
+
* @summary Update SpecialtyMedia.
|
|
17696
|
+
* @param {string} specialtyId
|
|
17697
|
+
* @param {string} mediaId
|
|
17698
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
17699
|
+
* @param {*} [options] Override http request option.
|
|
17700
|
+
* @throws {RequiredError}
|
|
17701
|
+
*/
|
|
17702
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
17703
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17704
|
+
var localVarAxiosArgs;
|
|
17705
|
+
return __generator(this, function (_a) {
|
|
17706
|
+
switch (_a.label) {
|
|
17707
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options)];
|
|
17708
|
+
case 1:
|
|
17709
|
+
localVarAxiosArgs = _a.sent();
|
|
17710
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17711
|
+
}
|
|
17712
|
+
});
|
|
17713
|
+
});
|
|
17714
|
+
},
|
|
17715
|
+
/**
|
|
17716
|
+
*
|
|
17717
|
+
* @summary Create SpecialtyMedia.
|
|
17718
|
+
* @param {string} specialtyId
|
|
17719
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
17720
|
+
* @param {*} [options] Override http request option.
|
|
17721
|
+
* @throws {RequiredError}
|
|
17722
|
+
*/
|
|
17723
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: function (specialtyId, createMediaCommand, options) {
|
|
17724
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
17725
|
+
var localVarAxiosArgs;
|
|
17726
|
+
return __generator(this, function (_a) {
|
|
17727
|
+
switch (_a.label) {
|
|
17728
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options)];
|
|
17729
|
+
case 1:
|
|
17730
|
+
localVarAxiosArgs = _a.sent();
|
|
17731
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
17732
|
+
}
|
|
17733
|
+
});
|
|
17734
|
+
});
|
|
17735
|
+
},
|
|
17074
17736
|
/**
|
|
17075
17737
|
*
|
|
17076
17738
|
* @summary Update Specialty.
|
|
@@ -17163,6 +17825,66 @@ exports.SpecialtiesApiFactory = function (configuration, basePath, axios) {
|
|
|
17163
17825
|
apiV1SpecialtiesSpecialtyIdGet: function (specialtyId, languageCode, options) {
|
|
17164
17826
|
return localVarFp.apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
17165
17827
|
},
|
|
17828
|
+
/**
|
|
17829
|
+
*
|
|
17830
|
+
* @summary Get all SpecialtyMedias.
|
|
17831
|
+
* @param {string} specialtyId
|
|
17832
|
+
* @param {string} [id]
|
|
17833
|
+
* @param {MediaType} [mediaType]
|
|
17834
|
+
* @param {number} [page]
|
|
17835
|
+
* @param {number} [limit]
|
|
17836
|
+
* @param {Date} [lastRetrieved]
|
|
17837
|
+
* @param {*} [options] Override http request option.
|
|
17838
|
+
* @throws {RequiredError}
|
|
17839
|
+
*/
|
|
17840
|
+
apiV1SpecialtiesSpecialtyIdMediasGet: function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
17841
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
17842
|
+
},
|
|
17843
|
+
/**
|
|
17844
|
+
*
|
|
17845
|
+
* @summary Delete SpecialtyMedia
|
|
17846
|
+
* @param {string} specialtyId
|
|
17847
|
+
* @param {string} mediaId
|
|
17848
|
+
* @param {*} [options] Override http request option.
|
|
17849
|
+
* @throws {RequiredError}
|
|
17850
|
+
*/
|
|
17851
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete: function (specialtyId, mediaId, options) {
|
|
17852
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
17853
|
+
},
|
|
17854
|
+
/**
|
|
17855
|
+
*
|
|
17856
|
+
* @summary Get SpecialtyMedia.
|
|
17857
|
+
* @param {string} specialtyId
|
|
17858
|
+
* @param {string} mediaId
|
|
17859
|
+
* @param {*} [options] Override http request option.
|
|
17860
|
+
* @throws {RequiredError}
|
|
17861
|
+
*/
|
|
17862
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdGet: function (specialtyId, mediaId, options) {
|
|
17863
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options).then(function (request) { return request(axios, basePath); });
|
|
17864
|
+
},
|
|
17865
|
+
/**
|
|
17866
|
+
*
|
|
17867
|
+
* @summary Update SpecialtyMedia.
|
|
17868
|
+
* @param {string} specialtyId
|
|
17869
|
+
* @param {string} mediaId
|
|
17870
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
17871
|
+
* @param {*} [options] Override http request option.
|
|
17872
|
+
* @throws {RequiredError}
|
|
17873
|
+
*/
|
|
17874
|
+
apiV1SpecialtiesSpecialtyIdMediasMediaIdPut: function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
17875
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17876
|
+
},
|
|
17877
|
+
/**
|
|
17878
|
+
*
|
|
17879
|
+
* @summary Create SpecialtyMedia.
|
|
17880
|
+
* @param {string} specialtyId
|
|
17881
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
17882
|
+
* @param {*} [options] Override http request option.
|
|
17883
|
+
* @throws {RequiredError}
|
|
17884
|
+
*/
|
|
17885
|
+
apiV1SpecialtiesSpecialtyIdMediasPost: function (specialtyId, createMediaCommand, options) {
|
|
17886
|
+
return localVarFp.apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
|
|
17887
|
+
},
|
|
17166
17888
|
/**
|
|
17167
17889
|
*
|
|
17168
17890
|
* @summary Update Specialty.
|
|
@@ -17259,6 +17981,76 @@ var SpecialtiesApi = /** @class */ (function (_super) {
|
|
|
17259
17981
|
var _this = this;
|
|
17260
17982
|
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdGet(specialtyId, languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
17261
17983
|
};
|
|
17984
|
+
/**
|
|
17985
|
+
*
|
|
17986
|
+
* @summary Get all SpecialtyMedias.
|
|
17987
|
+
* @param {string} specialtyId
|
|
17988
|
+
* @param {string} [id]
|
|
17989
|
+
* @param {MediaType} [mediaType]
|
|
17990
|
+
* @param {number} [page]
|
|
17991
|
+
* @param {number} [limit]
|
|
17992
|
+
* @param {Date} [lastRetrieved]
|
|
17993
|
+
* @param {*} [options] Override http request option.
|
|
17994
|
+
* @throws {RequiredError}
|
|
17995
|
+
* @memberof SpecialtiesApi
|
|
17996
|
+
*/
|
|
17997
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasGet = function (specialtyId, id, mediaType, page, limit, lastRetrieved, options) {
|
|
17998
|
+
var _this = this;
|
|
17999
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasGet(specialtyId, id, mediaType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18000
|
+
};
|
|
18001
|
+
/**
|
|
18002
|
+
*
|
|
18003
|
+
* @summary Delete SpecialtyMedia
|
|
18004
|
+
* @param {string} specialtyId
|
|
18005
|
+
* @param {string} mediaId
|
|
18006
|
+
* @param {*} [options] Override http request option.
|
|
18007
|
+
* @throws {RequiredError}
|
|
18008
|
+
* @memberof SpecialtiesApi
|
|
18009
|
+
*/
|
|
18010
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete = function (specialtyId, mediaId, options) {
|
|
18011
|
+
var _this = this;
|
|
18012
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdDelete(specialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18013
|
+
};
|
|
18014
|
+
/**
|
|
18015
|
+
*
|
|
18016
|
+
* @summary Get SpecialtyMedia.
|
|
18017
|
+
* @param {string} specialtyId
|
|
18018
|
+
* @param {string} mediaId
|
|
18019
|
+
* @param {*} [options] Override http request option.
|
|
18020
|
+
* @throws {RequiredError}
|
|
18021
|
+
* @memberof SpecialtiesApi
|
|
18022
|
+
*/
|
|
18023
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasMediaIdGet = function (specialtyId, mediaId, options) {
|
|
18024
|
+
var _this = this;
|
|
18025
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdGet(specialtyId, mediaId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18026
|
+
};
|
|
18027
|
+
/**
|
|
18028
|
+
*
|
|
18029
|
+
* @summary Update SpecialtyMedia.
|
|
18030
|
+
* @param {string} specialtyId
|
|
18031
|
+
* @param {string} mediaId
|
|
18032
|
+
* @param {UpdateMediaCommand} [updateMediaCommand]
|
|
18033
|
+
* @param {*} [options] Override http request option.
|
|
18034
|
+
* @throws {RequiredError}
|
|
18035
|
+
* @memberof SpecialtiesApi
|
|
18036
|
+
*/
|
|
18037
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasMediaIdPut = function (specialtyId, mediaId, updateMediaCommand, options) {
|
|
18038
|
+
var _this = this;
|
|
18039
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasMediaIdPut(specialtyId, mediaId, updateMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18040
|
+
};
|
|
18041
|
+
/**
|
|
18042
|
+
*
|
|
18043
|
+
* @summary Create SpecialtyMedia.
|
|
18044
|
+
* @param {string} specialtyId
|
|
18045
|
+
* @param {CreateMediaCommand} [createMediaCommand]
|
|
18046
|
+
* @param {*} [options] Override http request option.
|
|
18047
|
+
* @throws {RequiredError}
|
|
18048
|
+
* @memberof SpecialtiesApi
|
|
18049
|
+
*/
|
|
18050
|
+
SpecialtiesApi.prototype.apiV1SpecialtiesSpecialtyIdMediasPost = function (specialtyId, createMediaCommand, options) {
|
|
18051
|
+
var _this = this;
|
|
18052
|
+
return exports.SpecialtiesApiFp(this.configuration).apiV1SpecialtiesSpecialtyIdMediasPost(specialtyId, createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
18053
|
+
};
|
|
17262
18054
|
/**
|
|
17263
18055
|
*
|
|
17264
18056
|
* @summary Update Specialty.
|