ch-admin-api-client-typescript 4.4.6 → 4.4.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 +248 -613
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +151 -474
- package/package.json +1 -1
- package/src/api.ts +296 -806
package/lib/api.js
CHANGED
|
@@ -20601,63 +20601,24 @@ exports.GroupChannelsApi = GroupChannelsApi;
|
|
|
20601
20601
|
exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
20602
20602
|
var _this = this;
|
|
20603
20603
|
return {
|
|
20604
|
-
/**
|
|
20605
|
-
*
|
|
20606
|
-
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
20607
|
-
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
20608
|
-
* @param {*} [options] Override http request option.
|
|
20609
|
-
* @throws {RequiredError}
|
|
20610
|
-
*/
|
|
20611
|
-
apiV1HeadernavigationsBatchPost: function (batchHeaderNavigationItemsCommand, options) {
|
|
20612
|
-
if (options === void 0) { options = {}; }
|
|
20613
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
20614
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20615
|
-
return __generator(this, function (_a) {
|
|
20616
|
-
switch (_a.label) {
|
|
20617
|
-
case 0:
|
|
20618
|
-
localVarPath = "/api/v1/headernavigations/batch";
|
|
20619
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20620
|
-
if (configuration) {
|
|
20621
|
-
baseOptions = configuration.baseOptions;
|
|
20622
|
-
}
|
|
20623
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
20624
|
-
localVarHeaderParameter = {};
|
|
20625
|
-
localVarQueryParameter = {};
|
|
20626
|
-
// authentication oauth2 required
|
|
20627
|
-
// oauth required
|
|
20628
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20629
|
-
case 1:
|
|
20630
|
-
// authentication oauth2 required
|
|
20631
|
-
// oauth required
|
|
20632
|
-
_a.sent();
|
|
20633
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20634
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20635
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20636
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20637
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(batchHeaderNavigationItemsCommand, localVarRequestOptions, configuration);
|
|
20638
|
-
return [2 /*return*/, {
|
|
20639
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
20640
|
-
options: localVarRequestOptions,
|
|
20641
|
-
}];
|
|
20642
|
-
}
|
|
20643
|
-
});
|
|
20644
|
-
});
|
|
20645
|
-
},
|
|
20646
20604
|
/**
|
|
20647
20605
|
*
|
|
20648
20606
|
* @summary Get all HeaderNavigationItems
|
|
20649
|
-
* @param {string}
|
|
20607
|
+
* @param {string} languageCode
|
|
20650
20608
|
* @param {*} [options] Override http request option.
|
|
20651
20609
|
* @throws {RequiredError}
|
|
20652
20610
|
*/
|
|
20653
|
-
|
|
20611
|
+
apiV1HeadernavigationsLanguageCodeGet: function (languageCode, options) {
|
|
20654
20612
|
if (options === void 0) { options = {}; }
|
|
20655
20613
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20656
20614
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20657
20615
|
return __generator(this, function (_a) {
|
|
20658
20616
|
switch (_a.label) {
|
|
20659
20617
|
case 0:
|
|
20660
|
-
|
|
20618
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
20619
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeGet', 'languageCode', languageCode);
|
|
20620
|
+
localVarPath = "/api/v1/headernavigations/{languageCode}"
|
|
20621
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)));
|
|
20661
20622
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20662
20623
|
if (configuration) {
|
|
20663
20624
|
baseOptions = configuration.baseOptions;
|
|
@@ -20672,9 +20633,6 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20672
20633
|
// authentication oauth2 required
|
|
20673
20634
|
// oauth required
|
|
20674
20635
|
_a.sent();
|
|
20675
|
-
if (languageCode !== undefined) {
|
|
20676
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
20677
|
-
}
|
|
20678
20636
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20679
20637
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20680
20638
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -20689,20 +20647,24 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20689
20647
|
/**
|
|
20690
20648
|
*
|
|
20691
20649
|
* @summary Delete HeaderNavigationItem
|
|
20650
|
+
* @param {string} languageCode
|
|
20692
20651
|
* @param {string} id
|
|
20693
20652
|
* @param {*} [options] Override http request option.
|
|
20694
20653
|
* @throws {RequiredError}
|
|
20695
20654
|
*/
|
|
20696
|
-
|
|
20655
|
+
apiV1HeadernavigationsLanguageCodeIdDelete: function (languageCode, id, options) {
|
|
20697
20656
|
if (options === void 0) { options = {}; }
|
|
20698
20657
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20699
20658
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20700
20659
|
return __generator(this, function (_a) {
|
|
20701
20660
|
switch (_a.label) {
|
|
20702
20661
|
case 0:
|
|
20662
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
20663
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeIdDelete', 'languageCode', languageCode);
|
|
20703
20664
|
// verify required parameter 'id' is not null or undefined
|
|
20704
|
-
common_1.assertParamExists('
|
|
20705
|
-
localVarPath = "/api/v1/headernavigations/{id}"
|
|
20665
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeIdDelete', 'id', id);
|
|
20666
|
+
localVarPath = "/api/v1/headernavigations/{languageCode}/{id}"
|
|
20667
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)))
|
|
20706
20668
|
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
20707
20669
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20708
20670
|
if (configuration) {
|
|
@@ -20732,20 +20694,24 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20732
20694
|
/**
|
|
20733
20695
|
*
|
|
20734
20696
|
* @summary Get HeaderNavigationItem by id
|
|
20697
|
+
* @param {string} languageCode
|
|
20735
20698
|
* @param {string} id
|
|
20736
20699
|
* @param {*} [options] Override http request option.
|
|
20737
20700
|
* @throws {RequiredError}
|
|
20738
20701
|
*/
|
|
20739
|
-
|
|
20702
|
+
apiV1HeadernavigationsLanguageCodeIdGet: function (languageCode, id, options) {
|
|
20740
20703
|
if (options === void 0) { options = {}; }
|
|
20741
20704
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20742
20705
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20743
20706
|
return __generator(this, function (_a) {
|
|
20744
20707
|
switch (_a.label) {
|
|
20745
20708
|
case 0:
|
|
20709
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
20710
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeIdGet', 'languageCode', languageCode);
|
|
20746
20711
|
// verify required parameter 'id' is not null or undefined
|
|
20747
|
-
common_1.assertParamExists('
|
|
20748
|
-
localVarPath = "/api/v1/headernavigations/{id}"
|
|
20712
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeIdGet', 'id', id);
|
|
20713
|
+
localVarPath = "/api/v1/headernavigations/{languageCode}/{id}"
|
|
20714
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)))
|
|
20749
20715
|
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
20750
20716
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20751
20717
|
if (configuration) {
|
|
@@ -20772,69 +20738,27 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20772
20738
|
});
|
|
20773
20739
|
});
|
|
20774
20740
|
},
|
|
20775
|
-
/**
|
|
20776
|
-
*
|
|
20777
|
-
* @summary Update HeaderNavigationItem
|
|
20778
|
-
* @param {string} id
|
|
20779
|
-
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
20780
|
-
* @param {*} [options] Override http request option.
|
|
20781
|
-
* @throws {RequiredError}
|
|
20782
|
-
*/
|
|
20783
|
-
apiV1HeadernavigationsIdPut: function (id, updateHeaderNavigationItemCommand, options) {
|
|
20784
|
-
if (options === void 0) { options = {}; }
|
|
20785
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
20786
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20787
|
-
return __generator(this, function (_a) {
|
|
20788
|
-
switch (_a.label) {
|
|
20789
|
-
case 0:
|
|
20790
|
-
// verify required parameter 'id' is not null or undefined
|
|
20791
|
-
common_1.assertParamExists('apiV1HeadernavigationsIdPut', 'id', id);
|
|
20792
|
-
localVarPath = "/api/v1/headernavigations/{id}"
|
|
20793
|
-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
20794
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20795
|
-
if (configuration) {
|
|
20796
|
-
baseOptions = configuration.baseOptions;
|
|
20797
|
-
}
|
|
20798
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
20799
|
-
localVarHeaderParameter = {};
|
|
20800
|
-
localVarQueryParameter = {};
|
|
20801
|
-
// authentication oauth2 required
|
|
20802
|
-
// oauth required
|
|
20803
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
20804
|
-
case 1:
|
|
20805
|
-
// authentication oauth2 required
|
|
20806
|
-
// oauth required
|
|
20807
|
-
_a.sent();
|
|
20808
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
20809
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20810
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20811
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20812
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateHeaderNavigationItemCommand, localVarRequestOptions, configuration);
|
|
20813
|
-
return [2 /*return*/, {
|
|
20814
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
20815
|
-
options: localVarRequestOptions,
|
|
20816
|
-
}];
|
|
20817
|
-
}
|
|
20818
|
-
});
|
|
20819
|
-
});
|
|
20820
|
-
},
|
|
20821
20741
|
/**
|
|
20822
20742
|
*
|
|
20823
20743
|
* @summary Get HeaderNavigationItems by parent id
|
|
20744
|
+
* @param {string} languageCode
|
|
20824
20745
|
* @param {string} parentId
|
|
20825
20746
|
* @param {*} [options] Override http request option.
|
|
20826
20747
|
* @throws {RequiredError}
|
|
20827
20748
|
*/
|
|
20828
|
-
|
|
20749
|
+
apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet: function (languageCode, parentId, options) {
|
|
20829
20750
|
if (options === void 0) { options = {}; }
|
|
20830
20751
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20831
20752
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20832
20753
|
return __generator(this, function (_a) {
|
|
20833
20754
|
switch (_a.label) {
|
|
20834
20755
|
case 0:
|
|
20756
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
20757
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet', 'languageCode', languageCode);
|
|
20835
20758
|
// verify required parameter 'parentId' is not null or undefined
|
|
20836
|
-
common_1.assertParamExists('
|
|
20837
|
-
localVarPath = "/api/v1/headernavigations/{parentId}/subitems"
|
|
20759
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet', 'parentId', parentId);
|
|
20760
|
+
localVarPath = "/api/v1/headernavigations/{languageCode}/{parentId}/subitems"
|
|
20761
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)))
|
|
20838
20762
|
.replace("{" + "parentId" + "}", encodeURIComponent(String(parentId)));
|
|
20839
20763
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20840
20764
|
if (configuration) {
|
|
@@ -20863,19 +20787,23 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20863
20787
|
},
|
|
20864
20788
|
/**
|
|
20865
20789
|
*
|
|
20866
|
-
* @summary
|
|
20867
|
-
* @param {
|
|
20790
|
+
* @summary Save HeaderNavigationItem
|
|
20791
|
+
* @param {string} languageCode
|
|
20792
|
+
* @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
|
|
20868
20793
|
* @param {*} [options] Override http request option.
|
|
20869
20794
|
* @throws {RequiredError}
|
|
20870
20795
|
*/
|
|
20871
|
-
|
|
20796
|
+
apiV1HeadernavigationsLanguageCodePost: function (languageCode, saveHeaderNavigationsCommand, options) {
|
|
20872
20797
|
if (options === void 0) { options = {}; }
|
|
20873
20798
|
return __awaiter(_this, void 0, void 0, function () {
|
|
20874
20799
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
20875
20800
|
return __generator(this, function (_a) {
|
|
20876
20801
|
switch (_a.label) {
|
|
20877
20802
|
case 0:
|
|
20878
|
-
|
|
20803
|
+
// verify required parameter 'languageCode' is not null or undefined
|
|
20804
|
+
common_1.assertParamExists('apiV1HeadernavigationsLanguageCodePost', 'languageCode', languageCode);
|
|
20805
|
+
localVarPath = "/api/v1/headernavigations/{languageCode}"
|
|
20806
|
+
.replace("{" + "languageCode" + "}", encodeURIComponent(String(languageCode)));
|
|
20879
20807
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
20880
20808
|
if (configuration) {
|
|
20881
20809
|
baseOptions = configuration.baseOptions;
|
|
@@ -20894,7 +20822,7 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20894
20822
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
20895
20823
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
20896
20824
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
20897
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
20825
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(saveHeaderNavigationsCommand, localVarRequestOptions, configuration);
|
|
20898
20826
|
return [2 /*return*/, {
|
|
20899
20827
|
url: common_1.toPathString(localVarUrlObj),
|
|
20900
20828
|
options: localVarRequestOptions,
|
|
@@ -20912,39 +20840,19 @@ exports.HeaderNavigationsApiAxiosParamCreator = function (configuration) {
|
|
|
20912
20840
|
exports.HeaderNavigationsApiFp = function (configuration) {
|
|
20913
20841
|
var localVarAxiosParamCreator = exports.HeaderNavigationsApiAxiosParamCreator(configuration);
|
|
20914
20842
|
return {
|
|
20915
|
-
/**
|
|
20916
|
-
*
|
|
20917
|
-
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
20918
|
-
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
20919
|
-
* @param {*} [options] Override http request option.
|
|
20920
|
-
* @throws {RequiredError}
|
|
20921
|
-
*/
|
|
20922
|
-
apiV1HeadernavigationsBatchPost: function (batchHeaderNavigationItemsCommand, options) {
|
|
20923
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
20924
|
-
var localVarAxiosArgs;
|
|
20925
|
-
return __generator(this, function (_a) {
|
|
20926
|
-
switch (_a.label) {
|
|
20927
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand, options)];
|
|
20928
|
-
case 1:
|
|
20929
|
-
localVarAxiosArgs = _a.sent();
|
|
20930
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20931
|
-
}
|
|
20932
|
-
});
|
|
20933
|
-
});
|
|
20934
|
-
},
|
|
20935
20843
|
/**
|
|
20936
20844
|
*
|
|
20937
20845
|
* @summary Get all HeaderNavigationItems
|
|
20938
|
-
* @param {string}
|
|
20846
|
+
* @param {string} languageCode
|
|
20939
20847
|
* @param {*} [options] Override http request option.
|
|
20940
20848
|
* @throws {RequiredError}
|
|
20941
20849
|
*/
|
|
20942
|
-
|
|
20850
|
+
apiV1HeadernavigationsLanguageCodeGet: function (languageCode, options) {
|
|
20943
20851
|
return __awaiter(this, void 0, void 0, function () {
|
|
20944
20852
|
var localVarAxiosArgs;
|
|
20945
20853
|
return __generator(this, function (_a) {
|
|
20946
20854
|
switch (_a.label) {
|
|
20947
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
20855
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeGet(languageCode, options)];
|
|
20948
20856
|
case 1:
|
|
20949
20857
|
localVarAxiosArgs = _a.sent();
|
|
20950
20858
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -20955,16 +20863,17 @@ exports.HeaderNavigationsApiFp = function (configuration) {
|
|
|
20955
20863
|
/**
|
|
20956
20864
|
*
|
|
20957
20865
|
* @summary Delete HeaderNavigationItem
|
|
20866
|
+
* @param {string} languageCode
|
|
20958
20867
|
* @param {string} id
|
|
20959
20868
|
* @param {*} [options] Override http request option.
|
|
20960
20869
|
* @throws {RequiredError}
|
|
20961
20870
|
*/
|
|
20962
|
-
|
|
20871
|
+
apiV1HeadernavigationsLanguageCodeIdDelete: function (languageCode, id, options) {
|
|
20963
20872
|
return __awaiter(this, void 0, void 0, function () {
|
|
20964
20873
|
var localVarAxiosArgs;
|
|
20965
20874
|
return __generator(this, function (_a) {
|
|
20966
20875
|
switch (_a.label) {
|
|
20967
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
20876
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeIdDelete(languageCode, id, options)];
|
|
20968
20877
|
case 1:
|
|
20969
20878
|
localVarAxiosArgs = _a.sent();
|
|
20970
20879
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -20975,37 +20884,17 @@ exports.HeaderNavigationsApiFp = function (configuration) {
|
|
|
20975
20884
|
/**
|
|
20976
20885
|
*
|
|
20977
20886
|
* @summary Get HeaderNavigationItem by id
|
|
20887
|
+
* @param {string} languageCode
|
|
20978
20888
|
* @param {string} id
|
|
20979
20889
|
* @param {*} [options] Override http request option.
|
|
20980
20890
|
* @throws {RequiredError}
|
|
20981
20891
|
*/
|
|
20982
|
-
|
|
20983
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
20984
|
-
var localVarAxiosArgs;
|
|
20985
|
-
return __generator(this, function (_a) {
|
|
20986
|
-
switch (_a.label) {
|
|
20987
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsIdGet(id, options)];
|
|
20988
|
-
case 1:
|
|
20989
|
-
localVarAxiosArgs = _a.sent();
|
|
20990
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
20991
|
-
}
|
|
20992
|
-
});
|
|
20993
|
-
});
|
|
20994
|
-
},
|
|
20995
|
-
/**
|
|
20996
|
-
*
|
|
20997
|
-
* @summary Update HeaderNavigationItem
|
|
20998
|
-
* @param {string} id
|
|
20999
|
-
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
21000
|
-
* @param {*} [options] Override http request option.
|
|
21001
|
-
* @throws {RequiredError}
|
|
21002
|
-
*/
|
|
21003
|
-
apiV1HeadernavigationsIdPut: function (id, updateHeaderNavigationItemCommand, options) {
|
|
20892
|
+
apiV1HeadernavigationsLanguageCodeIdGet: function (languageCode, id, options) {
|
|
21004
20893
|
return __awaiter(this, void 0, void 0, function () {
|
|
21005
20894
|
var localVarAxiosArgs;
|
|
21006
20895
|
return __generator(this, function (_a) {
|
|
21007
20896
|
switch (_a.label) {
|
|
21008
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
20897
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeIdGet(languageCode, id, options)];
|
|
21009
20898
|
case 1:
|
|
21010
20899
|
localVarAxiosArgs = _a.sent();
|
|
21011
20900
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -21016,16 +20905,17 @@ exports.HeaderNavigationsApiFp = function (configuration) {
|
|
|
21016
20905
|
/**
|
|
21017
20906
|
*
|
|
21018
20907
|
* @summary Get HeaderNavigationItems by parent id
|
|
20908
|
+
* @param {string} languageCode
|
|
21019
20909
|
* @param {string} parentId
|
|
21020
20910
|
* @param {*} [options] Override http request option.
|
|
21021
20911
|
* @throws {RequiredError}
|
|
21022
20912
|
*/
|
|
21023
|
-
|
|
20913
|
+
apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet: function (languageCode, parentId, options) {
|
|
21024
20914
|
return __awaiter(this, void 0, void 0, function () {
|
|
21025
20915
|
var localVarAxiosArgs;
|
|
21026
20916
|
return __generator(this, function (_a) {
|
|
21027
20917
|
switch (_a.label) {
|
|
21028
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
20918
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet(languageCode, parentId, options)];
|
|
21029
20919
|
case 1:
|
|
21030
20920
|
localVarAxiosArgs = _a.sent();
|
|
21031
20921
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -21035,17 +20925,18 @@ exports.HeaderNavigationsApiFp = function (configuration) {
|
|
|
21035
20925
|
},
|
|
21036
20926
|
/**
|
|
21037
20927
|
*
|
|
21038
|
-
* @summary
|
|
21039
|
-
* @param {
|
|
20928
|
+
* @summary Save HeaderNavigationItem
|
|
20929
|
+
* @param {string} languageCode
|
|
20930
|
+
* @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
|
|
21040
20931
|
* @param {*} [options] Override http request option.
|
|
21041
20932
|
* @throws {RequiredError}
|
|
21042
20933
|
*/
|
|
21043
|
-
|
|
20934
|
+
apiV1HeadernavigationsLanguageCodePost: function (languageCode, saveHeaderNavigationsCommand, options) {
|
|
21044
20935
|
return __awaiter(this, void 0, void 0, function () {
|
|
21045
20936
|
var localVarAxiosArgs;
|
|
21046
20937
|
return __generator(this, function (_a) {
|
|
21047
20938
|
switch (_a.label) {
|
|
21048
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
20939
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HeadernavigationsLanguageCodePost(languageCode, saveHeaderNavigationsCommand, options)];
|
|
21049
20940
|
case 1:
|
|
21050
20941
|
localVarAxiosArgs = _a.sent();
|
|
21051
20942
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -21062,76 +20953,59 @@ exports.HeaderNavigationsApiFp = function (configuration) {
|
|
|
21062
20953
|
exports.HeaderNavigationsApiFactory = function (configuration, basePath, axios) {
|
|
21063
20954
|
var localVarFp = exports.HeaderNavigationsApiFp(configuration);
|
|
21064
20955
|
return {
|
|
21065
|
-
/**
|
|
21066
|
-
*
|
|
21067
|
-
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
21068
|
-
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
21069
|
-
* @param {*} [options] Override http request option.
|
|
21070
|
-
* @throws {RequiredError}
|
|
21071
|
-
*/
|
|
21072
|
-
apiV1HeadernavigationsBatchPost: function (batchHeaderNavigationItemsCommand, options) {
|
|
21073
|
-
return localVarFp.apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
21074
|
-
},
|
|
21075
20956
|
/**
|
|
21076
20957
|
*
|
|
21077
20958
|
* @summary Get all HeaderNavigationItems
|
|
21078
|
-
* @param {string}
|
|
20959
|
+
* @param {string} languageCode
|
|
21079
20960
|
* @param {*} [options] Override http request option.
|
|
21080
20961
|
* @throws {RequiredError}
|
|
21081
20962
|
*/
|
|
21082
|
-
|
|
21083
|
-
return localVarFp.
|
|
20963
|
+
apiV1HeadernavigationsLanguageCodeGet: function (languageCode, options) {
|
|
20964
|
+
return localVarFp.apiV1HeadernavigationsLanguageCodeGet(languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
21084
20965
|
},
|
|
21085
20966
|
/**
|
|
21086
20967
|
*
|
|
21087
20968
|
* @summary Delete HeaderNavigationItem
|
|
20969
|
+
* @param {string} languageCode
|
|
21088
20970
|
* @param {string} id
|
|
21089
20971
|
* @param {*} [options] Override http request option.
|
|
21090
20972
|
* @throws {RequiredError}
|
|
21091
20973
|
*/
|
|
21092
|
-
|
|
21093
|
-
return localVarFp.
|
|
20974
|
+
apiV1HeadernavigationsLanguageCodeIdDelete: function (languageCode, id, options) {
|
|
20975
|
+
return localVarFp.apiV1HeadernavigationsLanguageCodeIdDelete(languageCode, id, options).then(function (request) { return request(axios, basePath); });
|
|
21094
20976
|
},
|
|
21095
20977
|
/**
|
|
21096
20978
|
*
|
|
21097
20979
|
* @summary Get HeaderNavigationItem by id
|
|
20980
|
+
* @param {string} languageCode
|
|
21098
20981
|
* @param {string} id
|
|
21099
20982
|
* @param {*} [options] Override http request option.
|
|
21100
20983
|
* @throws {RequiredError}
|
|
21101
20984
|
*/
|
|
21102
|
-
|
|
21103
|
-
return localVarFp.
|
|
21104
|
-
},
|
|
21105
|
-
/**
|
|
21106
|
-
*
|
|
21107
|
-
* @summary Update HeaderNavigationItem
|
|
21108
|
-
* @param {string} id
|
|
21109
|
-
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
21110
|
-
* @param {*} [options] Override http request option.
|
|
21111
|
-
* @throws {RequiredError}
|
|
21112
|
-
*/
|
|
21113
|
-
apiV1HeadernavigationsIdPut: function (id, updateHeaderNavigationItemCommand, options) {
|
|
21114
|
-
return localVarFp.apiV1HeadernavigationsIdPut(id, updateHeaderNavigationItemCommand, options).then(function (request) { return request(axios, basePath); });
|
|
20985
|
+
apiV1HeadernavigationsLanguageCodeIdGet: function (languageCode, id, options) {
|
|
20986
|
+
return localVarFp.apiV1HeadernavigationsLanguageCodeIdGet(languageCode, id, options).then(function (request) { return request(axios, basePath); });
|
|
21115
20987
|
},
|
|
21116
20988
|
/**
|
|
21117
20989
|
*
|
|
21118
20990
|
* @summary Get HeaderNavigationItems by parent id
|
|
20991
|
+
* @param {string} languageCode
|
|
21119
20992
|
* @param {string} parentId
|
|
21120
20993
|
* @param {*} [options] Override http request option.
|
|
21121
20994
|
* @throws {RequiredError}
|
|
21122
20995
|
*/
|
|
21123
|
-
|
|
21124
|
-
return localVarFp.
|
|
20996
|
+
apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet: function (languageCode, parentId, options) {
|
|
20997
|
+
return localVarFp.apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet(languageCode, parentId, options).then(function (request) { return request(axios, basePath); });
|
|
21125
20998
|
},
|
|
21126
20999
|
/**
|
|
21127
21000
|
*
|
|
21128
|
-
* @summary
|
|
21129
|
-
* @param {
|
|
21001
|
+
* @summary Save HeaderNavigationItem
|
|
21002
|
+
* @param {string} languageCode
|
|
21003
|
+
* @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
|
|
21130
21004
|
* @param {*} [options] Override http request option.
|
|
21131
21005
|
* @throws {RequiredError}
|
|
21132
21006
|
*/
|
|
21133
|
-
|
|
21134
|
-
return localVarFp.
|
|
21007
|
+
apiV1HeadernavigationsLanguageCodePost: function (languageCode, saveHeaderNavigationsCommand, options) {
|
|
21008
|
+
return localVarFp.apiV1HeadernavigationsLanguageCodePost(languageCode, saveHeaderNavigationsCommand, options).then(function (request) { return request(axios, basePath); });
|
|
21135
21009
|
},
|
|
21136
21010
|
};
|
|
21137
21011
|
};
|
|
@@ -21146,90 +21020,69 @@ var HeaderNavigationsApi = /** @class */ (function (_super) {
|
|
|
21146
21020
|
function HeaderNavigationsApi() {
|
|
21147
21021
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
21148
21022
|
}
|
|
21149
|
-
/**
|
|
21150
|
-
*
|
|
21151
|
-
* @summary Batch HeaderNavigationItems; Do Add, update, delete at one request
|
|
21152
|
-
* @param {BatchHeaderNavigationItemsCommand} [batchHeaderNavigationItemsCommand]
|
|
21153
|
-
* @param {*} [options] Override http request option.
|
|
21154
|
-
* @throws {RequiredError}
|
|
21155
|
-
* @memberof HeaderNavigationsApi
|
|
21156
|
-
*/
|
|
21157
|
-
HeaderNavigationsApi.prototype.apiV1HeadernavigationsBatchPost = function (batchHeaderNavigationItemsCommand, options) {
|
|
21158
|
-
var _this = this;
|
|
21159
|
-
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsBatchPost(batchHeaderNavigationItemsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21160
|
-
};
|
|
21161
21023
|
/**
|
|
21162
21024
|
*
|
|
21163
21025
|
* @summary Get all HeaderNavigationItems
|
|
21164
|
-
* @param {string}
|
|
21026
|
+
* @param {string} languageCode
|
|
21165
21027
|
* @param {*} [options] Override http request option.
|
|
21166
21028
|
* @throws {RequiredError}
|
|
21167
21029
|
* @memberof HeaderNavigationsApi
|
|
21168
21030
|
*/
|
|
21169
|
-
HeaderNavigationsApi.prototype.
|
|
21031
|
+
HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeGet = function (languageCode, options) {
|
|
21170
21032
|
var _this = this;
|
|
21171
|
-
return exports.HeaderNavigationsApiFp(this.configuration).
|
|
21033
|
+
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsLanguageCodeGet(languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21172
21034
|
};
|
|
21173
21035
|
/**
|
|
21174
21036
|
*
|
|
21175
21037
|
* @summary Delete HeaderNavigationItem
|
|
21038
|
+
* @param {string} languageCode
|
|
21176
21039
|
* @param {string} id
|
|
21177
21040
|
* @param {*} [options] Override http request option.
|
|
21178
21041
|
* @throws {RequiredError}
|
|
21179
21042
|
* @memberof HeaderNavigationsApi
|
|
21180
21043
|
*/
|
|
21181
|
-
HeaderNavigationsApi.prototype.
|
|
21044
|
+
HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeIdDelete = function (languageCode, id, options) {
|
|
21182
21045
|
var _this = this;
|
|
21183
|
-
return exports.HeaderNavigationsApiFp(this.configuration).
|
|
21046
|
+
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsLanguageCodeIdDelete(languageCode, id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21184
21047
|
};
|
|
21185
21048
|
/**
|
|
21186
21049
|
*
|
|
21187
21050
|
* @summary Get HeaderNavigationItem by id
|
|
21051
|
+
* @param {string} languageCode
|
|
21188
21052
|
* @param {string} id
|
|
21189
21053
|
* @param {*} [options] Override http request option.
|
|
21190
21054
|
* @throws {RequiredError}
|
|
21191
21055
|
* @memberof HeaderNavigationsApi
|
|
21192
21056
|
*/
|
|
21193
|
-
HeaderNavigationsApi.prototype.
|
|
21194
|
-
var _this = this;
|
|
21195
|
-
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsIdGet(id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21196
|
-
};
|
|
21197
|
-
/**
|
|
21198
|
-
*
|
|
21199
|
-
* @summary Update HeaderNavigationItem
|
|
21200
|
-
* @param {string} id
|
|
21201
|
-
* @param {UpdateHeaderNavigationItemCommand} [updateHeaderNavigationItemCommand]
|
|
21202
|
-
* @param {*} [options] Override http request option.
|
|
21203
|
-
* @throws {RequiredError}
|
|
21204
|
-
* @memberof HeaderNavigationsApi
|
|
21205
|
-
*/
|
|
21206
|
-
HeaderNavigationsApi.prototype.apiV1HeadernavigationsIdPut = function (id, updateHeaderNavigationItemCommand, options) {
|
|
21057
|
+
HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeIdGet = function (languageCode, id, options) {
|
|
21207
21058
|
var _this = this;
|
|
21208
|
-
return exports.HeaderNavigationsApiFp(this.configuration).
|
|
21059
|
+
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsLanguageCodeIdGet(languageCode, id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21209
21060
|
};
|
|
21210
21061
|
/**
|
|
21211
21062
|
*
|
|
21212
21063
|
* @summary Get HeaderNavigationItems by parent id
|
|
21064
|
+
* @param {string} languageCode
|
|
21213
21065
|
* @param {string} parentId
|
|
21214
21066
|
* @param {*} [options] Override http request option.
|
|
21215
21067
|
* @throws {RequiredError}
|
|
21216
21068
|
* @memberof HeaderNavigationsApi
|
|
21217
21069
|
*/
|
|
21218
|
-
HeaderNavigationsApi.prototype.
|
|
21070
|
+
HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet = function (languageCode, parentId, options) {
|
|
21219
21071
|
var _this = this;
|
|
21220
|
-
return exports.HeaderNavigationsApiFp(this.configuration).
|
|
21072
|
+
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsLanguageCodeParentIdSubitemsGet(languageCode, parentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21221
21073
|
};
|
|
21222
21074
|
/**
|
|
21223
21075
|
*
|
|
21224
|
-
* @summary
|
|
21225
|
-
* @param {
|
|
21076
|
+
* @summary Save HeaderNavigationItem
|
|
21077
|
+
* @param {string} languageCode
|
|
21078
|
+
* @param {SaveHeaderNavigationsCommand} [saveHeaderNavigationsCommand]
|
|
21226
21079
|
* @param {*} [options] Override http request option.
|
|
21227
21080
|
* @throws {RequiredError}
|
|
21228
21081
|
* @memberof HeaderNavigationsApi
|
|
21229
21082
|
*/
|
|
21230
|
-
HeaderNavigationsApi.prototype.
|
|
21083
|
+
HeaderNavigationsApi.prototype.apiV1HeadernavigationsLanguageCodePost = function (languageCode, saveHeaderNavigationsCommand, options) {
|
|
21231
21084
|
var _this = this;
|
|
21232
|
-
return exports.HeaderNavigationsApiFp(this.configuration).
|
|
21085
|
+
return exports.HeaderNavigationsApiFp(this.configuration).apiV1HeadernavigationsLanguageCodePost(languageCode, saveHeaderNavigationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
21233
21086
|
};
|
|
21234
21087
|
return HeaderNavigationsApi;
|
|
21235
21088
|
}(base_1.BaseAPI));
|
|
@@ -29295,52 +29148,6 @@ exports.HospitalsApi = HospitalsApi;
|
|
|
29295
29148
|
exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (configuration) {
|
|
29296
29149
|
var _this = this;
|
|
29297
29150
|
return {
|
|
29298
|
-
/**
|
|
29299
|
-
*
|
|
29300
|
-
* @summary Add, Update and Delete item at once
|
|
29301
|
-
* @param {string} hospitalId
|
|
29302
|
-
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
29303
|
-
* @param {*} [options] Override http request option.
|
|
29304
|
-
* @throws {RequiredError}
|
|
29305
|
-
*/
|
|
29306
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost: function (hospitalId, batchHospitalConsultationTimetableOverridesCommand, options) {
|
|
29307
|
-
if (options === void 0) { options = {}; }
|
|
29308
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
29309
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
29310
|
-
return __generator(this, function (_a) {
|
|
29311
|
-
switch (_a.label) {
|
|
29312
|
-
case 0:
|
|
29313
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
29314
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost', 'hospitalId', hospitalId);
|
|
29315
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/batch"
|
|
29316
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
29317
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29318
|
-
if (configuration) {
|
|
29319
|
-
baseOptions = configuration.baseOptions;
|
|
29320
|
-
}
|
|
29321
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
29322
|
-
localVarHeaderParameter = {};
|
|
29323
|
-
localVarQueryParameter = {};
|
|
29324
|
-
// authentication oauth2 required
|
|
29325
|
-
// oauth required
|
|
29326
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
29327
|
-
case 1:
|
|
29328
|
-
// authentication oauth2 required
|
|
29329
|
-
// oauth required
|
|
29330
|
-
_a.sent();
|
|
29331
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
29332
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29333
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29334
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29335
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(batchHospitalConsultationTimetableOverridesCommand, localVarRequestOptions, configuration);
|
|
29336
|
-
return [2 /*return*/, {
|
|
29337
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
29338
|
-
options: localVarRequestOptions,
|
|
29339
|
-
}];
|
|
29340
|
-
}
|
|
29341
|
-
});
|
|
29342
|
-
});
|
|
29343
|
-
},
|
|
29344
29151
|
/**
|
|
29345
29152
|
*
|
|
29346
29153
|
* @summary Get consultation timetable override items
|
|
@@ -29348,13 +29155,14 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29348
29155
|
* @param {boolean} [includesPreviousItems]
|
|
29349
29156
|
* @param {Date} [startDate]
|
|
29350
29157
|
* @param {Date} [endDate]
|
|
29158
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
29351
29159
|
* @param {number} [page]
|
|
29352
29160
|
* @param {number} [limit]
|
|
29353
29161
|
* @param {Date} [lastRetrieved]
|
|
29354
29162
|
* @param {*} [options] Override http request option.
|
|
29355
29163
|
* @throws {RequiredError}
|
|
29356
29164
|
*/
|
|
29357
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
29165
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
29358
29166
|
if (options === void 0) { options = {}; }
|
|
29359
29167
|
return __awaiter(_this, void 0, void 0, function () {
|
|
29360
29168
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -29392,6 +29200,9 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29392
29200
|
endDate.toISOString() :
|
|
29393
29201
|
endDate;
|
|
29394
29202
|
}
|
|
29203
|
+
if (dayOfWeek !== undefined) {
|
|
29204
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
29205
|
+
}
|
|
29395
29206
|
if (page !== undefined) {
|
|
29396
29207
|
localVarQueryParameter['page'] = page;
|
|
29397
29208
|
}
|
|
@@ -29414,53 +29225,6 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29414
29225
|
});
|
|
29415
29226
|
});
|
|
29416
29227
|
},
|
|
29417
|
-
/**
|
|
29418
|
-
*
|
|
29419
|
-
* @summary Delete timetable item
|
|
29420
|
-
* @param {string} hospitalId
|
|
29421
|
-
* @param {string} id
|
|
29422
|
-
* @param {*} [options] Override http request option.
|
|
29423
|
-
* @throws {RequiredError}
|
|
29424
|
-
*/
|
|
29425
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete: function (hospitalId, id, options) {
|
|
29426
|
-
if (options === void 0) { options = {}; }
|
|
29427
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
29428
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
29429
|
-
return __generator(this, function (_a) {
|
|
29430
|
-
switch (_a.label) {
|
|
29431
|
-
case 0:
|
|
29432
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
29433
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete', 'hospitalId', hospitalId);
|
|
29434
|
-
// verify required parameter 'id' is not null or undefined
|
|
29435
|
-
common_1.assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete', 'id', id);
|
|
29436
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/{id}"
|
|
29437
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
29438
|
-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
29439
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29440
|
-
if (configuration) {
|
|
29441
|
-
baseOptions = configuration.baseOptions;
|
|
29442
|
-
}
|
|
29443
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
29444
|
-
localVarHeaderParameter = {};
|
|
29445
|
-
localVarQueryParameter = {};
|
|
29446
|
-
// authentication oauth2 required
|
|
29447
|
-
// oauth required
|
|
29448
|
-
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
29449
|
-
case 1:
|
|
29450
|
-
// authentication oauth2 required
|
|
29451
|
-
// oauth required
|
|
29452
|
-
_a.sent();
|
|
29453
|
-
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29454
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29455
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29456
|
-
return [2 /*return*/, {
|
|
29457
|
-
url: common_1.toPathString(localVarUrlObj),
|
|
29458
|
-
options: localVarRequestOptions,
|
|
29459
|
-
}];
|
|
29460
|
-
}
|
|
29461
|
-
});
|
|
29462
|
-
});
|
|
29463
|
-
},
|
|
29464
29228
|
/**
|
|
29465
29229
|
*
|
|
29466
29230
|
* @summary Get consultation timetable override item
|
|
@@ -29510,14 +29274,13 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29510
29274
|
},
|
|
29511
29275
|
/**
|
|
29512
29276
|
*
|
|
29513
|
-
* @summary
|
|
29277
|
+
* @summary Delete timetable item
|
|
29514
29278
|
* @param {string} hospitalId
|
|
29515
|
-
* @param {
|
|
29516
|
-
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
29279
|
+
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
29517
29280
|
* @param {*} [options] Override http request option.
|
|
29518
29281
|
* @throws {RequiredError}
|
|
29519
29282
|
*/
|
|
29520
|
-
|
|
29283
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch: function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
29521
29284
|
if (options === void 0) { options = {}; }
|
|
29522
29285
|
return __awaiter(_this, void 0, void 0, function () {
|
|
29523
29286
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -29525,17 +29288,14 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29525
29288
|
switch (_a.label) {
|
|
29526
29289
|
case 0:
|
|
29527
29290
|
// verify required parameter 'hospitalId' is not null or undefined
|
|
29528
|
-
common_1.assertParamExists('
|
|
29529
|
-
|
|
29530
|
-
|
|
29531
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/{id}"
|
|
29532
|
-
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)))
|
|
29533
|
-
.replace("{" + "id" + "}", encodeURIComponent(String(id)));
|
|
29291
|
+
common_1.assertParamExists('apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch', 'hospitalId', hospitalId);
|
|
29292
|
+
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides"
|
|
29293
|
+
.replace("{" + "hospitalId" + "}", encodeURIComponent(String(hospitalId)));
|
|
29534
29294
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
29535
29295
|
if (configuration) {
|
|
29536
29296
|
baseOptions = configuration.baseOptions;
|
|
29537
29297
|
}
|
|
29538
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
29298
|
+
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
29539
29299
|
localVarHeaderParameter = {};
|
|
29540
29300
|
localVarQueryParameter = {};
|
|
29541
29301
|
// authentication oauth2 required
|
|
@@ -29549,7 +29309,7 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29549
29309
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29550
29310
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29551
29311
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29552
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
29312
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(deleteHospitalConsultationTimetableOverrideCommand, localVarRequestOptions, configuration);
|
|
29553
29313
|
return [2 /*return*/, {
|
|
29554
29314
|
url: common_1.toPathString(localVarUrlObj),
|
|
29555
29315
|
options: localVarRequestOptions,
|
|
@@ -29560,13 +29320,13 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29560
29320
|
},
|
|
29561
29321
|
/**
|
|
29562
29322
|
*
|
|
29563
|
-
* @summary
|
|
29323
|
+
* @summary Save timetable itme
|
|
29564
29324
|
* @param {string} hospitalId
|
|
29565
|
-
* @param {
|
|
29325
|
+
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
29566
29326
|
* @param {*} [options] Override http request option.
|
|
29567
29327
|
* @throws {RequiredError}
|
|
29568
29328
|
*/
|
|
29569
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId,
|
|
29329
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
29570
29330
|
if (options === void 0) { options = {}; }
|
|
29571
29331
|
return __awaiter(_this, void 0, void 0, function () {
|
|
29572
29332
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -29595,7 +29355,7 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29595
29355
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
29596
29356
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
29597
29357
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
29598
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(
|
|
29358
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(saveHospitalConsultationTimetableOverridesCommand, localVarRequestOptions, configuration);
|
|
29599
29359
|
return [2 /*return*/, {
|
|
29600
29360
|
url: common_1.toPathString(localVarUrlObj),
|
|
29601
29361
|
options: localVarRequestOptions,
|
|
@@ -29613,27 +29373,6 @@ exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (
|
|
|
29613
29373
|
exports.HospitalsConsultationTimetableOverridesApiFp = function (configuration) {
|
|
29614
29374
|
var localVarAxiosParamCreator = exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator(configuration);
|
|
29615
29375
|
return {
|
|
29616
|
-
/**
|
|
29617
|
-
*
|
|
29618
|
-
* @summary Add, Update and Delete item at once
|
|
29619
|
-
* @param {string} hospitalId
|
|
29620
|
-
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
29621
|
-
* @param {*} [options] Override http request option.
|
|
29622
|
-
* @throws {RequiredError}
|
|
29623
|
-
*/
|
|
29624
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost: function (hospitalId, batchHospitalConsultationTimetableOverridesCommand, options) {
|
|
29625
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
29626
|
-
var localVarAxiosArgs;
|
|
29627
|
-
return __generator(this, function (_a) {
|
|
29628
|
-
switch (_a.label) {
|
|
29629
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId, batchHospitalConsultationTimetableOverridesCommand, options)];
|
|
29630
|
-
case 1:
|
|
29631
|
-
localVarAxiosArgs = _a.sent();
|
|
29632
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
29633
|
-
}
|
|
29634
|
-
});
|
|
29635
|
-
});
|
|
29636
|
-
},
|
|
29637
29376
|
/**
|
|
29638
29377
|
*
|
|
29639
29378
|
* @summary Get consultation timetable override items
|
|
@@ -29641,39 +29380,19 @@ exports.HospitalsConsultationTimetableOverridesApiFp = function (configuration)
|
|
|
29641
29380
|
* @param {boolean} [includesPreviousItems]
|
|
29642
29381
|
* @param {Date} [startDate]
|
|
29643
29382
|
* @param {Date} [endDate]
|
|
29383
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
29644
29384
|
* @param {number} [page]
|
|
29645
29385
|
* @param {number} [limit]
|
|
29646
29386
|
* @param {Date} [lastRetrieved]
|
|
29647
29387
|
* @param {*} [options] Override http request option.
|
|
29648
29388
|
* @throws {RequiredError}
|
|
29649
29389
|
*/
|
|
29650
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
29390
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
29651
29391
|
return __awaiter(this, void 0, void 0, function () {
|
|
29652
29392
|
var localVarAxiosArgs;
|
|
29653
29393
|
return __generator(this, function (_a) {
|
|
29654
29394
|
switch (_a.label) {
|
|
29655
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options)];
|
|
29656
|
-
case 1:
|
|
29657
|
-
localVarAxiosArgs = _a.sent();
|
|
29658
|
-
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
29659
|
-
}
|
|
29660
|
-
});
|
|
29661
|
-
});
|
|
29662
|
-
},
|
|
29663
|
-
/**
|
|
29664
|
-
*
|
|
29665
|
-
* @summary Delete timetable item
|
|
29666
|
-
* @param {string} hospitalId
|
|
29667
|
-
* @param {string} id
|
|
29668
|
-
* @param {*} [options] Override http request option.
|
|
29669
|
-
* @throws {RequiredError}
|
|
29670
|
-
*/
|
|
29671
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete: function (hospitalId, id, options) {
|
|
29672
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
29673
|
-
var localVarAxiosArgs;
|
|
29674
|
-
return __generator(this, function (_a) {
|
|
29675
|
-
switch (_a.label) {
|
|
29676
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId, id, options)];
|
|
29395
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
29677
29396
|
case 1:
|
|
29678
29397
|
localVarAxiosArgs = _a.sent();
|
|
29679
29398
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -29704,19 +29423,18 @@ exports.HospitalsConsultationTimetableOverridesApiFp = function (configuration)
|
|
|
29704
29423
|
},
|
|
29705
29424
|
/**
|
|
29706
29425
|
*
|
|
29707
|
-
* @summary
|
|
29426
|
+
* @summary Delete timetable item
|
|
29708
29427
|
* @param {string} hospitalId
|
|
29709
|
-
* @param {
|
|
29710
|
-
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
29428
|
+
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
29711
29429
|
* @param {*} [options] Override http request option.
|
|
29712
29430
|
* @throws {RequiredError}
|
|
29713
29431
|
*/
|
|
29714
|
-
|
|
29432
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch: function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
29715
29433
|
return __awaiter(this, void 0, void 0, function () {
|
|
29716
29434
|
var localVarAxiosArgs;
|
|
29717
29435
|
return __generator(this, function (_a) {
|
|
29718
29436
|
switch (_a.label) {
|
|
29719
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.
|
|
29437
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch(hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options)];
|
|
29720
29438
|
case 1:
|
|
29721
29439
|
localVarAxiosArgs = _a.sent();
|
|
29722
29440
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -29726,18 +29444,18 @@ exports.HospitalsConsultationTimetableOverridesApiFp = function (configuration)
|
|
|
29726
29444
|
},
|
|
29727
29445
|
/**
|
|
29728
29446
|
*
|
|
29729
|
-
* @summary
|
|
29447
|
+
* @summary Save timetable itme
|
|
29730
29448
|
* @param {string} hospitalId
|
|
29731
|
-
* @param {
|
|
29449
|
+
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
29732
29450
|
* @param {*} [options] Override http request option.
|
|
29733
29451
|
* @throws {RequiredError}
|
|
29734
29452
|
*/
|
|
29735
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId,
|
|
29453
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
29736
29454
|
return __awaiter(this, void 0, void 0, function () {
|
|
29737
29455
|
var localVarAxiosArgs;
|
|
29738
29456
|
return __generator(this, function (_a) {
|
|
29739
29457
|
switch (_a.label) {
|
|
29740
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId,
|
|
29458
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, saveHospitalConsultationTimetableOverridesCommand, options)];
|
|
29741
29459
|
case 1:
|
|
29742
29460
|
localVarAxiosArgs = _a.sent();
|
|
29743
29461
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -29754,17 +29472,6 @@ exports.HospitalsConsultationTimetableOverridesApiFp = function (configuration)
|
|
|
29754
29472
|
exports.HospitalsConsultationTimetableOverridesApiFactory = function (configuration, basePath, axios) {
|
|
29755
29473
|
var localVarFp = exports.HospitalsConsultationTimetableOverridesApiFp(configuration);
|
|
29756
29474
|
return {
|
|
29757
|
-
/**
|
|
29758
|
-
*
|
|
29759
|
-
* @summary Add, Update and Delete item at once
|
|
29760
|
-
* @param {string} hospitalId
|
|
29761
|
-
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
29762
|
-
* @param {*} [options] Override http request option.
|
|
29763
|
-
* @throws {RequiredError}
|
|
29764
|
-
*/
|
|
29765
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost: function (hospitalId, batchHospitalConsultationTimetableOverridesCommand, options) {
|
|
29766
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId, batchHospitalConsultationTimetableOverridesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
29767
|
-
},
|
|
29768
29475
|
/**
|
|
29769
29476
|
*
|
|
29770
29477
|
* @summary Get consultation timetable override items
|
|
@@ -29772,25 +29479,15 @@ exports.HospitalsConsultationTimetableOverridesApiFactory = function (configurat
|
|
|
29772
29479
|
* @param {boolean} [includesPreviousItems]
|
|
29773
29480
|
* @param {Date} [startDate]
|
|
29774
29481
|
* @param {Date} [endDate]
|
|
29482
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
29775
29483
|
* @param {number} [page]
|
|
29776
29484
|
* @param {number} [limit]
|
|
29777
29485
|
* @param {Date} [lastRetrieved]
|
|
29778
29486
|
* @param {*} [options] Override http request option.
|
|
29779
29487
|
* @throws {RequiredError}
|
|
29780
29488
|
*/
|
|
29781
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
29782
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
29783
|
-
},
|
|
29784
|
-
/**
|
|
29785
|
-
*
|
|
29786
|
-
* @summary Delete timetable item
|
|
29787
|
-
* @param {string} hospitalId
|
|
29788
|
-
* @param {string} id
|
|
29789
|
-
* @param {*} [options] Override http request option.
|
|
29790
|
-
* @throws {RequiredError}
|
|
29791
|
-
*/
|
|
29792
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete: function (hospitalId, id, options) {
|
|
29793
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete(hospitalId, id, options).then(function (request) { return request(axios, basePath); });
|
|
29489
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
29490
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
29794
29491
|
},
|
|
29795
29492
|
/**
|
|
29796
29493
|
*
|
|
@@ -29805,26 +29502,25 @@ exports.HospitalsConsultationTimetableOverridesApiFactory = function (configurat
|
|
|
29805
29502
|
},
|
|
29806
29503
|
/**
|
|
29807
29504
|
*
|
|
29808
|
-
* @summary
|
|
29505
|
+
* @summary Delete timetable item
|
|
29809
29506
|
* @param {string} hospitalId
|
|
29810
|
-
* @param {
|
|
29811
|
-
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
29507
|
+
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
29812
29508
|
* @param {*} [options] Override http request option.
|
|
29813
29509
|
* @throws {RequiredError}
|
|
29814
29510
|
*/
|
|
29815
|
-
|
|
29816
|
-
return localVarFp.
|
|
29511
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch: function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
29512
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch(hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options).then(function (request) { return request(axios, basePath); });
|
|
29817
29513
|
},
|
|
29818
29514
|
/**
|
|
29819
29515
|
*
|
|
29820
|
-
* @summary
|
|
29516
|
+
* @summary Save timetable itme
|
|
29821
29517
|
* @param {string} hospitalId
|
|
29822
|
-
* @param {
|
|
29518
|
+
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
29823
29519
|
* @param {*} [options] Override http request option.
|
|
29824
29520
|
* @throws {RequiredError}
|
|
29825
29521
|
*/
|
|
29826
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId,
|
|
29827
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId,
|
|
29522
|
+
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
29523
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, saveHospitalConsultationTimetableOverridesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
29828
29524
|
},
|
|
29829
29525
|
};
|
|
29830
29526
|
};
|
|
@@ -29839,19 +29535,6 @@ var HospitalsConsultationTimetableOverridesApi = /** @class */ (function (_super
|
|
|
29839
29535
|
function HospitalsConsultationTimetableOverridesApi() {
|
|
29840
29536
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
29841
29537
|
}
|
|
29842
|
-
/**
|
|
29843
|
-
*
|
|
29844
|
-
* @summary Add, Update and Delete item at once
|
|
29845
|
-
* @param {string} hospitalId
|
|
29846
|
-
* @param {BatchHospitalConsultationTimetableOverridesCommand} [batchHospitalConsultationTimetableOverridesCommand]
|
|
29847
|
-
* @param {*} [options] Override http request option.
|
|
29848
|
-
* @throws {RequiredError}
|
|
29849
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
29850
|
-
*/
|
|
29851
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost = function (hospitalId, batchHospitalConsultationTimetableOverridesCommand, options) {
|
|
29852
|
-
var _this = this;
|
|
29853
|
-
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesBatchPost(hospitalId, batchHospitalConsultationTimetableOverridesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
29854
|
-
};
|
|
29855
29538
|
/**
|
|
29856
29539
|
*
|
|
29857
29540
|
* @summary Get consultation timetable override items
|
|
@@ -29859,6 +29542,7 @@ var HospitalsConsultationTimetableOverridesApi = /** @class */ (function (_super
|
|
|
29859
29542
|
* @param {boolean} [includesPreviousItems]
|
|
29860
29543
|
* @param {Date} [startDate]
|
|
29861
29544
|
* @param {Date} [endDate]
|
|
29545
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
29862
29546
|
* @param {number} [page]
|
|
29863
29547
|
* @param {number} [limit]
|
|
29864
29548
|
* @param {Date} [lastRetrieved]
|
|
@@ -29866,22 +29550,9 @@ var HospitalsConsultationTimetableOverridesApi = /** @class */ (function (_super
|
|
|
29866
29550
|
* @throws {RequiredError}
|
|
29867
29551
|
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
29868
29552
|
*/
|
|
29869
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet = function (hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options) {
|
|
29870
|
-
var _this = this;
|
|
29871
|
-
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
29872
|
-
};
|
|
29873
|
-
/**
|
|
29874
|
-
*
|
|
29875
|
-
* @summary Delete timetable item
|
|
29876
|
-
* @param {string} hospitalId
|
|
29877
|
-
* @param {string} id
|
|
29878
|
-
* @param {*} [options] Override http request option.
|
|
29879
|
-
* @throws {RequiredError}
|
|
29880
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
29881
|
-
*/
|
|
29882
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdDelete = function (hospitalId, id, options) {
|
|
29553
|
+
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet = function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
29883
29554
|
var _this = this;
|
|
29884
|
-
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).
|
|
29555
|
+
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
29885
29556
|
};
|
|
29886
29557
|
/**
|
|
29887
29558
|
*
|
|
@@ -29898,30 +29569,29 @@ var HospitalsConsultationTimetableOverridesApi = /** @class */ (function (_super
|
|
|
29898
29569
|
};
|
|
29899
29570
|
/**
|
|
29900
29571
|
*
|
|
29901
|
-
* @summary
|
|
29572
|
+
* @summary Delete timetable item
|
|
29902
29573
|
* @param {string} hospitalId
|
|
29903
|
-
* @param {
|
|
29904
|
-
* @param {UpdateHospitalConsultationTimetableOverrideCommand} [updateHospitalConsultationTimetableOverrideCommand]
|
|
29574
|
+
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
29905
29575
|
* @param {*} [options] Override http request option.
|
|
29906
29576
|
* @throws {RequiredError}
|
|
29907
29577
|
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
29908
29578
|
*/
|
|
29909
|
-
HospitalsConsultationTimetableOverridesApi.prototype.
|
|
29579
|
+
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch = function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
29910
29580
|
var _this = this;
|
|
29911
|
-
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).
|
|
29581
|
+
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch(hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
29912
29582
|
};
|
|
29913
29583
|
/**
|
|
29914
29584
|
*
|
|
29915
|
-
* @summary
|
|
29585
|
+
* @summary Save timetable itme
|
|
29916
29586
|
* @param {string} hospitalId
|
|
29917
|
-
* @param {
|
|
29587
|
+
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
29918
29588
|
* @param {*} [options] Override http request option.
|
|
29919
29589
|
* @throws {RequiredError}
|
|
29920
29590
|
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
29921
29591
|
*/
|
|
29922
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost = function (hospitalId,
|
|
29592
|
+
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost = function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
29923
29593
|
var _this = this;
|
|
29924
|
-
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId,
|
|
29594
|
+
return exports.HospitalsConsultationTimetableOverridesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, saveHospitalConsultationTimetableOverridesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
29925
29595
|
};
|
|
29926
29596
|
return HospitalsConsultationTimetableOverridesApi;
|
|
29927
29597
|
}(base_1.BaseAPI));
|
|
@@ -29983,13 +29653,14 @@ exports.HospitalsConsultationTimetablesApiAxiosParamCreator = function (configur
|
|
|
29983
29653
|
*
|
|
29984
29654
|
* @summary Get consultation timetables
|
|
29985
29655
|
* @param {string} hospitalId
|
|
29656
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
29986
29657
|
* @param {number} [page]
|
|
29987
29658
|
* @param {number} [limit]
|
|
29988
29659
|
* @param {Date} [lastRetrieved]
|
|
29989
29660
|
* @param {*} [options] Override http request option.
|
|
29990
29661
|
* @throws {RequiredError}
|
|
29991
29662
|
*/
|
|
29992
|
-
apiV1HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
29663
|
+
apiV1HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
29993
29664
|
if (options === void 0) { options = {}; }
|
|
29994
29665
|
return __awaiter(_this, void 0, void 0, function () {
|
|
29995
29666
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -30014,6 +29685,9 @@ exports.HospitalsConsultationTimetablesApiAxiosParamCreator = function (configur
|
|
|
30014
29685
|
// authentication oauth2 required
|
|
30015
29686
|
// oauth required
|
|
30016
29687
|
_a.sent();
|
|
29688
|
+
if (dayOfWeek !== undefined) {
|
|
29689
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
29690
|
+
}
|
|
30017
29691
|
if (page !== undefined) {
|
|
30018
29692
|
localVarQueryParameter['page'] = page;
|
|
30019
29693
|
}
|
|
@@ -30260,18 +29934,19 @@ exports.HospitalsConsultationTimetablesApiFp = function (configuration) {
|
|
|
30260
29934
|
*
|
|
30261
29935
|
* @summary Get consultation timetables
|
|
30262
29936
|
* @param {string} hospitalId
|
|
29937
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
30263
29938
|
* @param {number} [page]
|
|
30264
29939
|
* @param {number} [limit]
|
|
30265
29940
|
* @param {Date} [lastRetrieved]
|
|
30266
29941
|
* @param {*} [options] Override http request option.
|
|
30267
29942
|
* @throws {RequiredError}
|
|
30268
29943
|
*/
|
|
30269
|
-
apiV1HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
29944
|
+
apiV1HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
30270
29945
|
return __awaiter(this, void 0, void 0, function () {
|
|
30271
29946
|
var localVarAxiosArgs;
|
|
30272
29947
|
return __generator(this, function (_a) {
|
|
30273
29948
|
switch (_a.label) {
|
|
30274
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options)];
|
|
29949
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
30275
29950
|
case 1:
|
|
30276
29951
|
localVarAxiosArgs = _a.sent();
|
|
30277
29952
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -30388,14 +30063,15 @@ exports.HospitalsConsultationTimetablesApiFactory = function (configuration, bas
|
|
|
30388
30063
|
*
|
|
30389
30064
|
* @summary Get consultation timetables
|
|
30390
30065
|
* @param {string} hospitalId
|
|
30066
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
30391
30067
|
* @param {number} [page]
|
|
30392
30068
|
* @param {number} [limit]
|
|
30393
30069
|
* @param {Date} [lastRetrieved]
|
|
30394
30070
|
* @param {*} [options] Override http request option.
|
|
30395
30071
|
* @throws {RequiredError}
|
|
30396
30072
|
*/
|
|
30397
|
-
apiV1HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, page, limit, lastRetrieved, options) {
|
|
30398
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
30073
|
+
apiV1HospitalsHospitalIdConsultationtimetablesGet: function (hospitalId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
30074
|
+
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
30399
30075
|
},
|
|
30400
30076
|
/**
|
|
30401
30077
|
*
|
|
@@ -30472,6 +30148,7 @@ var HospitalsConsultationTimetablesApi = /** @class */ (function (_super) {
|
|
|
30472
30148
|
*
|
|
30473
30149
|
* @summary Get consultation timetables
|
|
30474
30150
|
* @param {string} hospitalId
|
|
30151
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
30475
30152
|
* @param {number} [page]
|
|
30476
30153
|
* @param {number} [limit]
|
|
30477
30154
|
* @param {Date} [lastRetrieved]
|
|
@@ -30479,9 +30156,9 @@ var HospitalsConsultationTimetablesApi = /** @class */ (function (_super) {
|
|
|
30479
30156
|
* @throws {RequiredError}
|
|
30480
30157
|
* @memberof HospitalsConsultationTimetablesApi
|
|
30481
30158
|
*/
|
|
30482
|
-
HospitalsConsultationTimetablesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetablesGet = function (hospitalId, page, limit, lastRetrieved, options) {
|
|
30159
|
+
HospitalsConsultationTimetablesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetablesGet = function (hospitalId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
30483
30160
|
var _this = this;
|
|
30484
|
-
return exports.HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30161
|
+
return exports.HospitalsConsultationTimetablesApiFp(this.configuration).apiV1HospitalsHospitalIdConsultationtimetablesGet(hospitalId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
30485
30162
|
};
|
|
30486
30163
|
/**
|
|
30487
30164
|
*
|