ch-admin-api-client-typescript 3.3.1 → 3.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api.d.ts +211 -573
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +170 -0
- package/package.json +1 -1
- package/src/api.ts +282 -568
package/lib/api.js
CHANGED
|
@@ -20947,6 +20947,49 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
20947
20947
|
});
|
|
20948
20948
|
});
|
|
20949
20949
|
},
|
|
20950
|
+
/**
|
|
20951
|
+
*
|
|
20952
|
+
* @summary Delete HospitalSpecialty.
|
|
20953
|
+
* @param {string} hospitalId
|
|
20954
|
+
* @param {*} [options] Override http request option.
|
|
20955
|
+
* @throws {RequiredError}
|
|
20956
|
+
*/
|
|
20957
|
+
apiV1HospitalsHospitalIdReactivePut: function (hospitalId, options) {
|
|
20958
|
+
if (options === void 0) { options = {}; }
|
|
20959
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
20960
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20961
|
+
return __generator(this, function (_a) {
|
|
20962
|
+
switch (_a.label) {
|
|
20963
|
+
case 0:
|
|
20964
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
20965
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdReactivePut', 'hospitalId', hospitalId);
|
|
20966
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/reactive"
|
|
20967
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
20968
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20969
|
+
if (configuration) {
|
|
20970
|
+
baseOptions = configuration.baseOptions;
|
|
20971
|
+
}
|
|
20972
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
20973
|
+
localVarHeaderParameter = {};
|
|
20974
|
+
localVarQueryParameter = {};
|
|
20975
|
+
// authentication oauth2 required
|
|
20976
|
+
// oauth required
|
|
20977
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20978
|
+
case 1:
|
|
20979
|
+
// authentication oauth2 required
|
|
20980
|
+
// oauth required
|
|
20981
|
+
_a.sent();
|
|
20982
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20983
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20984
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20985
|
+
return [2 /*return*/, {
|
|
20986
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
20987
|
+
options: localVarRequestOptions,
|
|
20988
|
+
}];
|
|
20989
|
+
}
|
|
20990
|
+
});
|
|
20991
|
+
});
|
|
20992
|
+
},
|
|
20950
20993
|
/**
|
|
20951
20994
|
*
|
|
20952
20995
|
* @summary Get all HospitalSpecialties.
|
|
@@ -22570,6 +22613,49 @@ exports.HospitalsApiAxiosParamCreator = function (configuration) {
|
|
|
22570
22613
|
});
|
|
22571
22614
|
});
|
|
22572
22615
|
},
|
|
22616
|
+
/**
|
|
22617
|
+
*
|
|
22618
|
+
* @summary Delete HospitalSpecialty.
|
|
22619
|
+
* @param {string} hospitalSpecialtyId
|
|
22620
|
+
* @param {*} [options] Override http request option.
|
|
22621
|
+
* @throws {RequiredError}
|
|
22622
|
+
*/
|
|
22623
|
+
apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut: function (hospitalSpecialtyId, options) {
|
|
22624
|
+
if (options === void 0) { options = {}; }
|
|
22625
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
22626
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
22627
|
+
return __generator(this, function (_a) {
|
|
22628
|
+
switch (_a.label) {
|
|
22629
|
+
case 0:
|
|
22630
|
+
// verify required parameter 'hospitalSpecialtyId' is not null or undefined
|
|
22631
|
+
common_1.assertParamExists('apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut', 'hospitalSpecialtyId', hospitalSpecialtyId);
|
|
22632
|
+
localVarPath = "/api/v1/hospitals/{hospitalSpecialtyId}/specialties/reactive"
|
|
22633
|
+
.replace("{" + "hospitalSpecialtyId" + "}", encodeURIComponent(String(hospitalSpecialtyId)));
|
|
22634
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
22635
|
+
if (configuration) {
|
|
22636
|
+
baseOptions = configuration.baseOptions;
|
|
22637
|
+
}
|
|
22638
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
22639
|
+
localVarHeaderParameter = {};
|
|
22640
|
+
localVarQueryParameter = {};
|
|
22641
|
+
// authentication oauth2 required
|
|
22642
|
+
// oauth required
|
|
22643
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
22644
|
+
case 1:
|
|
22645
|
+
// authentication oauth2 required
|
|
22646
|
+
// oauth required
|
|
22647
|
+
_a.sent();
|
|
22648
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
22649
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22650
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22651
|
+
return [2 /*return*/, {
|
|
22652
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
22653
|
+
options: localVarRequestOptions,
|
|
22654
|
+
}];
|
|
22655
|
+
}
|
|
22656
|
+
});
|
|
22657
|
+
});
|
|
22658
|
+
},
|
|
22573
22659
|
/**
|
|
22574
22660
|
*
|
|
22575
22661
|
* @summary Create Hospital.
|
|
@@ -23526,6 +23612,26 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
23526
23612
|
});
|
|
23527
23613
|
});
|
|
23528
23614
|
},
|
|
23615
|
+
/**
|
|
23616
|
+
*
|
|
23617
|
+
* @summary Delete HospitalSpecialty.
|
|
23618
|
+
* @param {string} hospitalId
|
|
23619
|
+
* @param {*} [options] Override http request option.
|
|
23620
|
+
* @throws {RequiredError}
|
|
23621
|
+
*/
|
|
23622
|
+
apiV1HospitalsHospitalIdReactivePut: function (hospitalId, options) {
|
|
23623
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
23624
|
+
var localVarAxiosArgs;
|
|
23625
|
+
return __generator(this, function (_a) {
|
|
23626
|
+
switch (_a.label) {
|
|
23627
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdReactivePut(hospitalId, options)];
|
|
23628
|
+
case 1:
|
|
23629
|
+
localVarAxiosArgs = _a.sent();
|
|
23630
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
23631
|
+
}
|
|
23632
|
+
});
|
|
23633
|
+
});
|
|
23634
|
+
},
|
|
23529
23635
|
/**
|
|
23530
23636
|
*
|
|
23531
23637
|
* @summary Get all HospitalSpecialties.
|
|
@@ -24178,6 +24284,26 @@ exports.HospitalsApiFp = function (configuration) {
|
|
|
24178
24284
|
});
|
|
24179
24285
|
});
|
|
24180
24286
|
},
|
|
24287
|
+
/**
|
|
24288
|
+
*
|
|
24289
|
+
* @summary Delete HospitalSpecialty.
|
|
24290
|
+
* @param {string} hospitalSpecialtyId
|
|
24291
|
+
* @param {*} [options] Override http request option.
|
|
24292
|
+
* @throws {RequiredError}
|
|
24293
|
+
*/
|
|
24294
|
+
apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut: function (hospitalSpecialtyId, options) {
|
|
24295
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
24296
|
+
var localVarAxiosArgs;
|
|
24297
|
+
return __generator(this, function (_a) {
|
|
24298
|
+
switch (_a.label) {
|
|
24299
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut(hospitalSpecialtyId, options)];
|
|
24300
|
+
case 1:
|
|
24301
|
+
localVarAxiosArgs = _a.sent();
|
|
24302
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
24303
|
+
}
|
|
24304
|
+
});
|
|
24305
|
+
});
|
|
24306
|
+
},
|
|
24181
24307
|
/**
|
|
24182
24308
|
*
|
|
24183
24309
|
* @summary Create Hospital.
|
|
@@ -24681,6 +24807,16 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
24681
24807
|
apiV1HospitalsHospitalIdPut: function (hospitalId, updateHospitalCommand, options) {
|
|
24682
24808
|
return localVarFp.apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(axios, basePath); });
|
|
24683
24809
|
},
|
|
24810
|
+
/**
|
|
24811
|
+
*
|
|
24812
|
+
* @summary Delete HospitalSpecialty.
|
|
24813
|
+
* @param {string} hospitalId
|
|
24814
|
+
* @param {*} [options] Override http request option.
|
|
24815
|
+
* @throws {RequiredError}
|
|
24816
|
+
*/
|
|
24817
|
+
apiV1HospitalsHospitalIdReactivePut: function (hospitalId, options) {
|
|
24818
|
+
return localVarFp.apiV1HospitalsHospitalIdReactivePut(hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
24819
|
+
},
|
|
24684
24820
|
/**
|
|
24685
24821
|
*
|
|
24686
24822
|
* @summary Get all HospitalSpecialties.
|
|
@@ -25063,6 +25199,16 @@ exports.HospitalsApiFactory = function (configuration, basePath, axios) {
|
|
|
25063
25199
|
apiV1HospitalsHospitalIdWorkingdaysWorkingDayIdPut: function (hospitalId, workingDayId, updateHospitalWorkingDayCommand, options) {
|
|
25064
25200
|
return localVarFp.apiV1HospitalsHospitalIdWorkingdaysWorkingDayIdPut(hospitalId, workingDayId, updateHospitalWorkingDayCommand, options).then(function (request) { return request(axios, basePath); });
|
|
25065
25201
|
},
|
|
25202
|
+
/**
|
|
25203
|
+
*
|
|
25204
|
+
* @summary Delete HospitalSpecialty.
|
|
25205
|
+
* @param {string} hospitalSpecialtyId
|
|
25206
|
+
* @param {*} [options] Override http request option.
|
|
25207
|
+
* @throws {RequiredError}
|
|
25208
|
+
*/
|
|
25209
|
+
apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut: function (hospitalSpecialtyId, options) {
|
|
25210
|
+
return localVarFp.apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut(hospitalSpecialtyId, options).then(function (request) { return request(axios, basePath); });
|
|
25211
|
+
},
|
|
25066
25212
|
/**
|
|
25067
25213
|
*
|
|
25068
25214
|
* @summary Create Hospital.
|
|
@@ -25606,6 +25752,18 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
25606
25752
|
var _this = this;
|
|
25607
25753
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPut(hospitalId, updateHospitalCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25608
25754
|
};
|
|
25755
|
+
/**
|
|
25756
|
+
*
|
|
25757
|
+
* @summary Delete HospitalSpecialty.
|
|
25758
|
+
* @param {string} hospitalId
|
|
25759
|
+
* @param {*} [options] Override http request option.
|
|
25760
|
+
* @throws {RequiredError}
|
|
25761
|
+
* @memberof HospitalsApi
|
|
25762
|
+
*/
|
|
25763
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalIdReactivePut = function (hospitalId, options) {
|
|
25764
|
+
var _this = this;
|
|
25765
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdReactivePut(hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
25766
|
+
};
|
|
25609
25767
|
/**
|
|
25610
25768
|
*
|
|
25611
25769
|
* @summary Get all HospitalSpecialties.
|
|
@@ -26042,6 +26200,18 @@ var HospitalsApi = /** @class */ (function (_super) {
|
|
|
26042
26200
|
var _this = this;
|
|
26043
26201
|
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdWorkingdaysWorkingDayIdPut(hospitalId, workingDayId, updateHospitalWorkingDayCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26044
26202
|
};
|
|
26203
|
+
/**
|
|
26204
|
+
*
|
|
26205
|
+
* @summary Delete HospitalSpecialty.
|
|
26206
|
+
* @param {string} hospitalSpecialtyId
|
|
26207
|
+
* @param {*} [options] Override http request option.
|
|
26208
|
+
* @throws {RequiredError}
|
|
26209
|
+
* @memberof HospitalsApi
|
|
26210
|
+
*/
|
|
26211
|
+
HospitalsApi.prototype.apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut = function (hospitalSpecialtyId, options) {
|
|
26212
|
+
var _this = this;
|
|
26213
|
+
return exports.HospitalsApiFp(this.configuration).apiV1HospitalsHospitalSpecialtyIdSpecialtiesReactivePut(hospitalSpecialtyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
26214
|
+
};
|
|
26045
26215
|
/**
|
|
26046
26216
|
*
|
|
26047
26217
|
* @summary Create Hospital.
|