ch-admin-api-client-typescript 5.2.4 → 5.2.6

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.
Files changed (46) hide show
  1. package/lib/api/hospitals-api.d.ts +728 -0
  2. package/lib/api/hospitals-api.d.ts.map +1 -1
  3. package/lib/api/hospitals-api.js +1154 -76
  4. package/lib/api/survey-results-api.d.ts +12 -3
  5. package/lib/api/survey-results-api.d.ts.map +1 -1
  6. package/lib/api/survey-results-api.js +12 -6
  7. package/lib/models/create-policy-command.d.ts +74 -0
  8. package/lib/models/create-policy-command.d.ts.map +1 -0
  9. package/lib/models/create-policy-command.js +15 -0
  10. package/lib/models/footer-navigation-item-model.d.ts +61 -0
  11. package/lib/models/footer-navigation-item-model.d.ts.map +1 -0
  12. package/lib/models/footer-navigation-item-model.js +15 -0
  13. package/lib/models/index.d.ts +8 -0
  14. package/lib/models/index.d.ts.map +1 -1
  15. package/lib/models/index.js +8 -0
  16. package/lib/models/policies-model.d.ts +33 -0
  17. package/lib/models/policies-model.d.ts.map +1 -0
  18. package/lib/models/policies-model.js +15 -0
  19. package/lib/models/policy-item-model.d.ts +68 -0
  20. package/lib/models/policy-item-model.d.ts.map +1 -0
  21. package/lib/models/policy-item-model.js +15 -0
  22. package/lib/models/policy-model.d.ts +124 -0
  23. package/lib/models/policy-model.d.ts.map +1 -0
  24. package/lib/models/policy-model.js +15 -0
  25. package/lib/models/save-footer-navigation-item-model.d.ts +49 -0
  26. package/lib/models/save-footer-navigation-item-model.d.ts.map +1 -0
  27. package/lib/models/save-footer-navigation-item-model.js +15 -0
  28. package/lib/models/save-footer-navigations-command.d.ts +26 -0
  29. package/lib/models/save-footer-navigations-command.d.ts.map +1 -0
  30. package/lib/models/save-footer-navigations-command.js +15 -0
  31. package/lib/models/update-policy-command.d.ts +80 -0
  32. package/lib/models/update-policy-command.d.ts.map +1 -0
  33. package/lib/models/update-policy-command.js +15 -0
  34. package/package.json +1 -1
  35. package/src/.openapi-generator/FILES +8 -0
  36. package/src/api/hospitals-api.ts +1290 -20
  37. package/src/api/survey-results-api.ts +20 -6
  38. package/src/models/create-policy-command.ts +81 -0
  39. package/src/models/footer-navigation-item-model.ts +66 -0
  40. package/src/models/index.ts +8 -0
  41. package/src/models/policies-model.ts +42 -0
  42. package/src/models/policy-item-model.ts +75 -0
  43. package/src/models/policy-model.ts +135 -0
  44. package/src/models/save-footer-navigation-item-model.ts +54 -0
  45. package/src/models/save-footer-navigations-command.ts +33 -0
  46. package/src/models/update-policy-command.ts +87 -0
@@ -1756,6 +1756,256 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
1756
1756
  });
1757
1757
  });
1758
1758
  },
1759
+ /**
1760
+ *
1761
+ * @summary Get footerNavigationItems
1762
+ * @param {string} hospitalId
1763
+ * @param {string} languageCode
1764
+ * @param {*} [options] Override http request option.
1765
+ * @throws {RequiredError}
1766
+ */
1767
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet: function (hospitalId, languageCode, options) {
1768
+ if (options === void 0) { options = {}; }
1769
+ return __awaiter(_this, void 0, void 0, function () {
1770
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1771
+ return __generator(this, function (_a) {
1772
+ switch (_a.label) {
1773
+ case 0:
1774
+ // verify required parameter 'hospitalId' is not null or undefined
1775
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'hospitalId', hospitalId);
1776
+ // verify required parameter 'languageCode' is not null or undefined
1777
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'languageCode', languageCode);
1778
+ localVarPath = "/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}"
1779
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
1780
+ .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
1781
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1782
+ if (configuration) {
1783
+ baseOptions = configuration.baseOptions;
1784
+ }
1785
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1786
+ localVarHeaderParameter = {};
1787
+ localVarQueryParameter = {};
1788
+ // authentication oauth2 required
1789
+ // oauth required
1790
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
1791
+ case 1:
1792
+ // authentication oauth2 required
1793
+ // oauth required
1794
+ _a.sent();
1795
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1796
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1797
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1798
+ return [2 /*return*/, {
1799
+ url: (0, common_1.toPathString)(localVarUrlObj),
1800
+ options: localVarRequestOptions,
1801
+ }];
1802
+ }
1803
+ });
1804
+ });
1805
+ },
1806
+ /**
1807
+ *
1808
+ * @summary Delete footerNavigationItem
1809
+ * @param {string} hospitalId
1810
+ * @param {string} languageCode
1811
+ * @param {string} id
1812
+ * @param {*} [options] Override http request option.
1813
+ * @throws {RequiredError}
1814
+ */
1815
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete: function (hospitalId, languageCode, id, options) {
1816
+ if (options === void 0) { options = {}; }
1817
+ return __awaiter(_this, void 0, void 0, function () {
1818
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1819
+ return __generator(this, function (_a) {
1820
+ switch (_a.label) {
1821
+ case 0:
1822
+ // verify required parameter 'hospitalId' is not null or undefined
1823
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete', 'hospitalId', hospitalId);
1824
+ // verify required parameter 'languageCode' is not null or undefined
1825
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete', 'languageCode', languageCode);
1826
+ // verify required parameter 'id' is not null or undefined
1827
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete', 'id', id);
1828
+ localVarPath = "/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}/{id}"
1829
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
1830
+ .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
1831
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1832
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1833
+ if (configuration) {
1834
+ baseOptions = configuration.baseOptions;
1835
+ }
1836
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
1837
+ localVarHeaderParameter = {};
1838
+ localVarQueryParameter = {};
1839
+ // authentication oauth2 required
1840
+ // oauth required
1841
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
1842
+ case 1:
1843
+ // authentication oauth2 required
1844
+ // oauth required
1845
+ _a.sent();
1846
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1847
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1848
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1849
+ return [2 /*return*/, {
1850
+ url: (0, common_1.toPathString)(localVarUrlObj),
1851
+ options: localVarRequestOptions,
1852
+ }];
1853
+ }
1854
+ });
1855
+ });
1856
+ },
1857
+ /**
1858
+ *
1859
+ * @summary Get footerNavigationItem by Id
1860
+ * @param {string} hospitalId
1861
+ * @param {string} languageCode
1862
+ * @param {string} id
1863
+ * @param {*} [options] Override http request option.
1864
+ * @throws {RequiredError}
1865
+ */
1866
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet: function (hospitalId, languageCode, id, options) {
1867
+ if (options === void 0) { options = {}; }
1868
+ return __awaiter(_this, void 0, void 0, function () {
1869
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1870
+ return __generator(this, function (_a) {
1871
+ switch (_a.label) {
1872
+ case 0:
1873
+ // verify required parameter 'hospitalId' is not null or undefined
1874
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet', 'hospitalId', hospitalId);
1875
+ // verify required parameter 'languageCode' is not null or undefined
1876
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet', 'languageCode', languageCode);
1877
+ // verify required parameter 'id' is not null or undefined
1878
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet', 'id', id);
1879
+ localVarPath = "/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}/{id}"
1880
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
1881
+ .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
1882
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
1883
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1884
+ if (configuration) {
1885
+ baseOptions = configuration.baseOptions;
1886
+ }
1887
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1888
+ localVarHeaderParameter = {};
1889
+ localVarQueryParameter = {};
1890
+ // authentication oauth2 required
1891
+ // oauth required
1892
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
1893
+ case 1:
1894
+ // authentication oauth2 required
1895
+ // oauth required
1896
+ _a.sent();
1897
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1898
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1899
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1900
+ return [2 /*return*/, {
1901
+ url: (0, common_1.toPathString)(localVarUrlObj),
1902
+ options: localVarRequestOptions,
1903
+ }];
1904
+ }
1905
+ });
1906
+ });
1907
+ },
1908
+ /**
1909
+ *
1910
+ * @summary Get footerNavigationItems by ParentId
1911
+ * @param {string} hospitalId
1912
+ * @param {string} languageCode
1913
+ * @param {string} parentId
1914
+ * @param {*} [options] Override http request option.
1915
+ * @throws {RequiredError}
1916
+ */
1917
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet: function (hospitalId, languageCode, parentId, options) {
1918
+ if (options === void 0) { options = {}; }
1919
+ return __awaiter(_this, void 0, void 0, function () {
1920
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1921
+ return __generator(this, function (_a) {
1922
+ switch (_a.label) {
1923
+ case 0:
1924
+ // verify required parameter 'hospitalId' is not null or undefined
1925
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet', 'hospitalId', hospitalId);
1926
+ // verify required parameter 'languageCode' is not null or undefined
1927
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet', 'languageCode', languageCode);
1928
+ // verify required parameter 'parentId' is not null or undefined
1929
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet', 'parentId', parentId);
1930
+ localVarPath = "/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}/{parentId}/subitems"
1931
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
1932
+ .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)))
1933
+ .replace("{".concat("parentId", "}"), encodeURIComponent(String(parentId)));
1934
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1935
+ if (configuration) {
1936
+ baseOptions = configuration.baseOptions;
1937
+ }
1938
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
1939
+ localVarHeaderParameter = {};
1940
+ localVarQueryParameter = {};
1941
+ // authentication oauth2 required
1942
+ // oauth required
1943
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
1944
+ case 1:
1945
+ // authentication oauth2 required
1946
+ // oauth required
1947
+ _a.sent();
1948
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1949
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1950
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1951
+ return [2 /*return*/, {
1952
+ url: (0, common_1.toPathString)(localVarUrlObj),
1953
+ options: localVarRequestOptions,
1954
+ }];
1955
+ }
1956
+ });
1957
+ });
1958
+ },
1959
+ /**
1960
+ *
1961
+ * @summary Save footerNavigationItem
1962
+ * @param {string} hospitalId
1963
+ * @param {string} languageCode
1964
+ * @param {SaveFooterNavigationsCommand} [saveFooterNavigationsCommand]
1965
+ * @param {*} [options] Override http request option.
1966
+ * @throws {RequiredError}
1967
+ */
1968
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost: function (hospitalId, languageCode, saveFooterNavigationsCommand, options) {
1969
+ if (options === void 0) { options = {}; }
1970
+ return __awaiter(_this, void 0, void 0, function () {
1971
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
1972
+ return __generator(this, function (_a) {
1973
+ switch (_a.label) {
1974
+ case 0:
1975
+ // verify required parameter 'hospitalId' is not null or undefined
1976
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost', 'hospitalId', hospitalId);
1977
+ // verify required parameter 'languageCode' is not null or undefined
1978
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost', 'languageCode', languageCode);
1979
+ localVarPath = "/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}"
1980
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
1981
+ .replace("{".concat("languageCode", "}"), encodeURIComponent(String(languageCode)));
1982
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
1983
+ if (configuration) {
1984
+ baseOptions = configuration.baseOptions;
1985
+ }
1986
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
1987
+ localVarHeaderParameter = {};
1988
+ localVarQueryParameter = {};
1989
+ // authentication oauth2 required
1990
+ // oauth required
1991
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
1992
+ case 1:
1993
+ // authentication oauth2 required
1994
+ // oauth required
1995
+ _a.sent();
1996
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1997
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1998
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1999
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2000
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveFooterNavigationsCommand, localVarRequestOptions, configuration);
2001
+ return [2 /*return*/, {
2002
+ url: (0, common_1.toPathString)(localVarUrlObj),
2003
+ options: localVarRequestOptions,
2004
+ }];
2005
+ }
2006
+ });
2007
+ });
2008
+ },
1759
2009
  /**
1760
2010
  *
1761
2011
  * @summary Get Hospital.
@@ -2757,13 +3007,332 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2757
3007
  },
2758
3008
  /**
2759
3009
  *
2760
- * @summary Get HospitalMedia.
3010
+ * @summary Get HospitalMedia.
3011
+ * @param {string} hospitalId
3012
+ * @param {string} mediaId
3013
+ * @param {*} [options] Override http request option.
3014
+ * @throws {RequiredError}
3015
+ */
3016
+ apiV1HospitalsHospitalIdMediasMediaIdGet: function (hospitalId, mediaId, options) {
3017
+ if (options === void 0) { options = {}; }
3018
+ return __awaiter(_this, void 0, void 0, function () {
3019
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3020
+ return __generator(this, function (_a) {
3021
+ switch (_a.label) {
3022
+ case 0:
3023
+ // verify required parameter 'hospitalId' is not null or undefined
3024
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdGet', 'hospitalId', hospitalId);
3025
+ // verify required parameter 'mediaId' is not null or undefined
3026
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdGet', 'mediaId', mediaId);
3027
+ localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
3028
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3029
+ .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
3030
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3031
+ if (configuration) {
3032
+ baseOptions = configuration.baseOptions;
3033
+ }
3034
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3035
+ localVarHeaderParameter = {};
3036
+ localVarQueryParameter = {};
3037
+ // authentication oauth2 required
3038
+ // oauth required
3039
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3040
+ case 1:
3041
+ // authentication oauth2 required
3042
+ // oauth required
3043
+ _a.sent();
3044
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3045
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3046
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3047
+ return [2 /*return*/, {
3048
+ url: (0, common_1.toPathString)(localVarUrlObj),
3049
+ options: localVarRequestOptions,
3050
+ }];
3051
+ }
3052
+ });
3053
+ });
3054
+ },
3055
+ /**
3056
+ *
3057
+ * @summary Update HospitalMedia.
3058
+ * @param {string} hospitalId
3059
+ * @param {string} mediaId
3060
+ * @param {UpdateMediaCommand} [updateMediaCommand]
3061
+ * @param {*} [options] Override http request option.
3062
+ * @throws {RequiredError}
3063
+ */
3064
+ apiV1HospitalsHospitalIdMediasMediaIdPut: function (hospitalId, mediaId, updateMediaCommand, options) {
3065
+ if (options === void 0) { options = {}; }
3066
+ return __awaiter(_this, void 0, void 0, function () {
3067
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3068
+ return __generator(this, function (_a) {
3069
+ switch (_a.label) {
3070
+ case 0:
3071
+ // verify required parameter 'hospitalId' is not null or undefined
3072
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdPut', 'hospitalId', hospitalId);
3073
+ // verify required parameter 'mediaId' is not null or undefined
3074
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdPut', 'mediaId', mediaId);
3075
+ localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
3076
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3077
+ .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
3078
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3079
+ if (configuration) {
3080
+ baseOptions = configuration.baseOptions;
3081
+ }
3082
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
3083
+ localVarHeaderParameter = {};
3084
+ localVarQueryParameter = {};
3085
+ // authentication oauth2 required
3086
+ // oauth required
3087
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3088
+ case 1:
3089
+ // authentication oauth2 required
3090
+ // oauth required
3091
+ _a.sent();
3092
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3093
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3094
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3095
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3096
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMediaCommand, localVarRequestOptions, configuration);
3097
+ return [2 /*return*/, {
3098
+ url: (0, common_1.toPathString)(localVarUrlObj),
3099
+ options: localVarRequestOptions,
3100
+ }];
3101
+ }
3102
+ });
3103
+ });
3104
+ },
3105
+ /**
3106
+ *
3107
+ * @summary Create HospitalMedia.
3108
+ * @param {string} hospitalId
3109
+ * @param {CreateMediaCommand} [createMediaCommand]
3110
+ * @param {*} [options] Override http request option.
3111
+ * @throws {RequiredError}
3112
+ */
3113
+ apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
3114
+ if (options === void 0) { options = {}; }
3115
+ return __awaiter(_this, void 0, void 0, function () {
3116
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3117
+ return __generator(this, function (_a) {
3118
+ switch (_a.label) {
3119
+ case 0:
3120
+ // verify required parameter 'hospitalId' is not null or undefined
3121
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasPost', 'hospitalId', hospitalId);
3122
+ localVarPath = "/api/v1/hospitals/{hospitalId}/medias"
3123
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
3124
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3125
+ if (configuration) {
3126
+ baseOptions = configuration.baseOptions;
3127
+ }
3128
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
3129
+ localVarHeaderParameter = {};
3130
+ localVarQueryParameter = {};
3131
+ // authentication oauth2 required
3132
+ // oauth required
3133
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3134
+ case 1:
3135
+ // authentication oauth2 required
3136
+ // oauth required
3137
+ _a.sent();
3138
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3139
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3140
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3141
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3142
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createMediaCommand, localVarRequestOptions, configuration);
3143
+ return [2 /*return*/, {
3144
+ url: (0, common_1.toPathString)(localVarUrlObj),
3145
+ options: localVarRequestOptions,
3146
+ }];
3147
+ }
3148
+ });
3149
+ });
3150
+ },
3151
+ /**
3152
+ *
3153
+ * @summary Get all policies
3154
+ * @param {string} hospitalId
3155
+ * @param {string} [name]
3156
+ * @param {string} [slug]
3157
+ * @param {string} [languageCode]
3158
+ * @param {boolean} [showHidden]
3159
+ * @param {number} [page]
3160
+ * @param {number} [limit]
3161
+ * @param {Date} [lastRetrieved]
3162
+ * @param {*} [options] Override http request option.
3163
+ * @throws {RequiredError}
3164
+ */
3165
+ apiV1HospitalsHospitalIdPoliciesGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
3166
+ if (options === void 0) { options = {}; }
3167
+ return __awaiter(_this, void 0, void 0, function () {
3168
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3169
+ return __generator(this, function (_a) {
3170
+ switch (_a.label) {
3171
+ case 0:
3172
+ // verify required parameter 'hospitalId' is not null or undefined
3173
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesGet', 'hospitalId', hospitalId);
3174
+ localVarPath = "/api/v1/hospitals/{hospitalId}/policies"
3175
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
3176
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3177
+ if (configuration) {
3178
+ baseOptions = configuration.baseOptions;
3179
+ }
3180
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3181
+ localVarHeaderParameter = {};
3182
+ localVarQueryParameter = {};
3183
+ // authentication oauth2 required
3184
+ // oauth required
3185
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3186
+ case 1:
3187
+ // authentication oauth2 required
3188
+ // oauth required
3189
+ _a.sent();
3190
+ if (name !== undefined) {
3191
+ localVarQueryParameter['Name'] = name;
3192
+ }
3193
+ if (slug !== undefined) {
3194
+ localVarQueryParameter['Slug'] = slug;
3195
+ }
3196
+ if (languageCode !== undefined) {
3197
+ localVarQueryParameter['LanguageCode'] = languageCode;
3198
+ }
3199
+ if (showHidden !== undefined) {
3200
+ localVarQueryParameter['ShowHidden'] = showHidden;
3201
+ }
3202
+ if (page !== undefined) {
3203
+ localVarQueryParameter['page'] = page;
3204
+ }
3205
+ if (limit !== undefined) {
3206
+ localVarQueryParameter['limit'] = limit;
3207
+ }
3208
+ if (lastRetrieved !== undefined) {
3209
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
3210
+ lastRetrieved.toISOString() :
3211
+ lastRetrieved;
3212
+ }
3213
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3214
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3215
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3216
+ return [2 /*return*/, {
3217
+ url: (0, common_1.toPathString)(localVarUrlObj),
3218
+ options: localVarRequestOptions,
3219
+ }];
3220
+ }
3221
+ });
3222
+ });
3223
+ },
3224
+ /**
3225
+ *
3226
+ * @summary Delete policy
3227
+ * @param {string} hospitalId
3228
+ * @param {string} policyId
3229
+ * @param {boolean} [isPermanent]
3230
+ * @param {*} [options] Override http request option.
3231
+ * @throws {RequiredError}
3232
+ */
3233
+ apiV1HospitalsHospitalIdPoliciesPolicyIdDelete: function (hospitalId, policyId, isPermanent, options) {
3234
+ if (options === void 0) { options = {}; }
3235
+ return __awaiter(_this, void 0, void 0, function () {
3236
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3237
+ return __generator(this, function (_a) {
3238
+ switch (_a.label) {
3239
+ case 0:
3240
+ // verify required parameter 'hospitalId' is not null or undefined
3241
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdDelete', 'hospitalId', hospitalId);
3242
+ // verify required parameter 'policyId' is not null or undefined
3243
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdDelete', 'policyId', policyId);
3244
+ localVarPath = "/api/v1/hospitals/{hospitalId}/policies/{policyId}"
3245
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3246
+ .replace("{".concat("policyId", "}"), encodeURIComponent(String(policyId)));
3247
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3248
+ if (configuration) {
3249
+ baseOptions = configuration.baseOptions;
3250
+ }
3251
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
3252
+ localVarHeaderParameter = {};
3253
+ localVarQueryParameter = {};
3254
+ // authentication oauth2 required
3255
+ // oauth required
3256
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3257
+ case 1:
3258
+ // authentication oauth2 required
3259
+ // oauth required
3260
+ _a.sent();
3261
+ if (isPermanent !== undefined) {
3262
+ localVarQueryParameter['isPermanent'] = isPermanent;
3263
+ }
3264
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3265
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3266
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3267
+ return [2 /*return*/, {
3268
+ url: (0, common_1.toPathString)(localVarUrlObj),
3269
+ options: localVarRequestOptions,
3270
+ }];
3271
+ }
3272
+ });
3273
+ });
3274
+ },
3275
+ /**
3276
+ *
3277
+ * @summary Get policy
3278
+ * @param {string} hospitalId
3279
+ * @param {string} policyId
3280
+ * @param {string} [languageCode]
3281
+ * @param {*} [options] Override http request option.
3282
+ * @throws {RequiredError}
3283
+ */
3284
+ apiV1HospitalsHospitalIdPoliciesPolicyIdGet: function (hospitalId, policyId, languageCode, options) {
3285
+ if (options === void 0) { options = {}; }
3286
+ return __awaiter(_this, void 0, void 0, function () {
3287
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
3288
+ return __generator(this, function (_a) {
3289
+ switch (_a.label) {
3290
+ case 0:
3291
+ // verify required parameter 'hospitalId' is not null or undefined
3292
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdGet', 'hospitalId', hospitalId);
3293
+ // verify required parameter 'policyId' is not null or undefined
3294
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdGet', 'policyId', policyId);
3295
+ localVarPath = "/api/v1/hospitals/{hospitalId}/policies/{policyId}"
3296
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
3297
+ .replace("{".concat("policyId", "}"), encodeURIComponent(String(policyId)));
3298
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
3299
+ if (configuration) {
3300
+ baseOptions = configuration.baseOptions;
3301
+ }
3302
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3303
+ localVarHeaderParameter = {};
3304
+ localVarQueryParameter = {};
3305
+ // authentication oauth2 required
3306
+ // oauth required
3307
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
3308
+ case 1:
3309
+ // authentication oauth2 required
3310
+ // oauth required
3311
+ _a.sent();
3312
+ if (languageCode !== undefined) {
3313
+ localVarQueryParameter['languageCode'] = languageCode;
3314
+ }
3315
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
3316
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3317
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3318
+ return [2 /*return*/, {
3319
+ url: (0, common_1.toPathString)(localVarUrlObj),
3320
+ options: localVarRequestOptions,
3321
+ }];
3322
+ }
3323
+ });
3324
+ });
3325
+ },
3326
+ /**
3327
+ *
3328
+ * @summary Update policy
2761
3329
  * @param {string} hospitalId
2762
- * @param {string} mediaId
3330
+ * @param {string} policyId
3331
+ * @param {UpdatePolicyCommand} [updatePolicyCommand]
2763
3332
  * @param {*} [options] Override http request option.
2764
3333
  * @throws {RequiredError}
2765
3334
  */
2766
- apiV1HospitalsHospitalIdMediasMediaIdGet: function (hospitalId, mediaId, options) {
3335
+ apiV1HospitalsHospitalIdPoliciesPolicyIdPut: function (hospitalId, policyId, updatePolicyCommand, options) {
2767
3336
  if (options === void 0) { options = {}; }
2768
3337
  return __awaiter(_this, void 0, void 0, function () {
2769
3338
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2771,17 +3340,17 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2771
3340
  switch (_a.label) {
2772
3341
  case 0:
2773
3342
  // verify required parameter 'hospitalId' is not null or undefined
2774
- (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdGet', 'hospitalId', hospitalId);
2775
- // verify required parameter 'mediaId' is not null or undefined
2776
- (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdGet', 'mediaId', mediaId);
2777
- localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
3343
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdPut', 'hospitalId', hospitalId);
3344
+ // verify required parameter 'policyId' is not null or undefined
3345
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdPut', 'policyId', policyId);
3346
+ localVarPath = "/api/v1/hospitals/{hospitalId}/policies/{policyId}"
2778
3347
  .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
2779
- .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
3348
+ .replace("{".concat("policyId", "}"), encodeURIComponent(String(policyId)));
2780
3349
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2781
3350
  if (configuration) {
2782
3351
  baseOptions = configuration.baseOptions;
2783
3352
  }
2784
- localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
3353
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
2785
3354
  localVarHeaderParameter = {};
2786
3355
  localVarQueryParameter = {};
2787
3356
  // authentication oauth2 required
@@ -2791,9 +3360,11 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2791
3360
  // authentication oauth2 required
2792
3361
  // oauth required
2793
3362
  _a.sent();
3363
+ localVarHeaderParameter['Content-Type'] = 'application/json';
2794
3364
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2795
3365
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2796
3366
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3367
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePolicyCommand, localVarRequestOptions, configuration);
2797
3368
  return [2 /*return*/, {
2798
3369
  url: (0, common_1.toPathString)(localVarUrlObj),
2799
3370
  options: localVarRequestOptions,
@@ -2804,14 +3375,13 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2804
3375
  },
2805
3376
  /**
2806
3377
  *
2807
- * @summary Update HospitalMedia.
3378
+ * @summary Reactive policy
2808
3379
  * @param {string} hospitalId
2809
- * @param {string} mediaId
2810
- * @param {UpdateMediaCommand} [updateMediaCommand]
3380
+ * @param {string} policyId
2811
3381
  * @param {*} [options] Override http request option.
2812
3382
  * @throws {RequiredError}
2813
3383
  */
2814
- apiV1HospitalsHospitalIdMediasMediaIdPut: function (hospitalId, mediaId, updateMediaCommand, options) {
3384
+ apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut: function (hospitalId, policyId, options) {
2815
3385
  if (options === void 0) { options = {}; }
2816
3386
  return __awaiter(_this, void 0, void 0, function () {
2817
3387
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2819,12 +3389,12 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2819
3389
  switch (_a.label) {
2820
3390
  case 0:
2821
3391
  // verify required parameter 'hospitalId' is not null or undefined
2822
- (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdPut', 'hospitalId', hospitalId);
2823
- // verify required parameter 'mediaId' is not null or undefined
2824
- (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasMediaIdPut', 'mediaId', mediaId);
2825
- localVarPath = "/api/v1/hospitals/{hospitalId}/medias/{mediaId}"
3392
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut', 'hospitalId', hospitalId);
3393
+ // verify required parameter 'policyId' is not null or undefined
3394
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut', 'policyId', policyId);
3395
+ localVarPath = "/api/v1/hospitals/{hospitalId}/policies/{policyId}/reactive"
2826
3396
  .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
2827
- .replace("{".concat("mediaId", "}"), encodeURIComponent(String(mediaId)));
3397
+ .replace("{".concat("policyId", "}"), encodeURIComponent(String(policyId)));
2828
3398
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2829
3399
  if (configuration) {
2830
3400
  baseOptions = configuration.baseOptions;
@@ -2839,11 +3409,9 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2839
3409
  // authentication oauth2 required
2840
3410
  // oauth required
2841
3411
  _a.sent();
2842
- localVarHeaderParameter['Content-Type'] = 'application/json';
2843
3412
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2844
3413
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2845
3414
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2846
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMediaCommand, localVarRequestOptions, configuration);
2847
3415
  return [2 /*return*/, {
2848
3416
  url: (0, common_1.toPathString)(localVarUrlObj),
2849
3417
  options: localVarRequestOptions,
@@ -2854,13 +3422,13 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2854
3422
  },
2855
3423
  /**
2856
3424
  *
2857
- * @summary Create HospitalMedia.
3425
+ * @summary Create policy
2858
3426
  * @param {string} hospitalId
2859
- * @param {CreateMediaCommand} [createMediaCommand]
3427
+ * @param {CreatePolicyCommand} [createPolicyCommand]
2860
3428
  * @param {*} [options] Override http request option.
2861
3429
  * @throws {RequiredError}
2862
3430
  */
2863
- apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
3431
+ apiV1HospitalsHospitalIdPoliciesPost: function (hospitalId, createPolicyCommand, options) {
2864
3432
  if (options === void 0) { options = {}; }
2865
3433
  return __awaiter(_this, void 0, void 0, function () {
2866
3434
  var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
@@ -2868,8 +3436,8 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2868
3436
  switch (_a.label) {
2869
3437
  case 0:
2870
3438
  // verify required parameter 'hospitalId' is not null or undefined
2871
- (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdMediasPost', 'hospitalId', hospitalId);
2872
- localVarPath = "/api/v1/hospitals/{hospitalId}/medias"
3439
+ (0, common_1.assertParamExists)('apiV1HospitalsHospitalIdPoliciesPost', 'hospitalId', hospitalId);
3440
+ localVarPath = "/api/v1/hospitals/{hospitalId}/policies"
2873
3441
  .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
2874
3442
  localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2875
3443
  if (configuration) {
@@ -2889,7 +3457,7 @@ var HospitalsApiAxiosParamCreator = function (configuration) {
2889
3457
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2890
3458
  headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2891
3459
  localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2892
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createMediaCommand, localVarRequestOptions, configuration);
3460
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPolicyCommand, localVarRequestOptions, configuration);
2893
3461
  return [2 /*return*/, {
2894
3462
  url: (0, common_1.toPathString)(localVarUrlObj),
2895
3463
  options: localVarRequestOptions,
@@ -6621,6 +7189,115 @@ var HospitalsApiFp = function (configuration) {
6621
7189
  });
6622
7190
  });
6623
7191
  },
7192
+ /**
7193
+ *
7194
+ * @summary Get footerNavigationItems
7195
+ * @param {string} hospitalId
7196
+ * @param {string} languageCode
7197
+ * @param {*} [options] Override http request option.
7198
+ * @throws {RequiredError}
7199
+ */
7200
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet: function (hospitalId, languageCode, options) {
7201
+ return __awaiter(this, void 0, void 0, function () {
7202
+ var localVarAxiosArgs;
7203
+ return __generator(this, function (_a) {
7204
+ switch (_a.label) {
7205
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options)];
7206
+ case 1:
7207
+ localVarAxiosArgs = _a.sent();
7208
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7209
+ }
7210
+ });
7211
+ });
7212
+ },
7213
+ /**
7214
+ *
7215
+ * @summary Delete footerNavigationItem
7216
+ * @param {string} hospitalId
7217
+ * @param {string} languageCode
7218
+ * @param {string} id
7219
+ * @param {*} [options] Override http request option.
7220
+ * @throws {RequiredError}
7221
+ */
7222
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete: function (hospitalId, languageCode, id, options) {
7223
+ return __awaiter(this, void 0, void 0, function () {
7224
+ var localVarAxiosArgs;
7225
+ return __generator(this, function (_a) {
7226
+ switch (_a.label) {
7227
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(hospitalId, languageCode, id, options)];
7228
+ case 1:
7229
+ localVarAxiosArgs = _a.sent();
7230
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7231
+ }
7232
+ });
7233
+ });
7234
+ },
7235
+ /**
7236
+ *
7237
+ * @summary Get footerNavigationItem by Id
7238
+ * @param {string} hospitalId
7239
+ * @param {string} languageCode
7240
+ * @param {string} id
7241
+ * @param {*} [options] Override http request option.
7242
+ * @throws {RequiredError}
7243
+ */
7244
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet: function (hospitalId, languageCode, id, options) {
7245
+ return __awaiter(this, void 0, void 0, function () {
7246
+ var localVarAxiosArgs;
7247
+ return __generator(this, function (_a) {
7248
+ switch (_a.label) {
7249
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(hospitalId, languageCode, id, options)];
7250
+ case 1:
7251
+ localVarAxiosArgs = _a.sent();
7252
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7253
+ }
7254
+ });
7255
+ });
7256
+ },
7257
+ /**
7258
+ *
7259
+ * @summary Get footerNavigationItems by ParentId
7260
+ * @param {string} hospitalId
7261
+ * @param {string} languageCode
7262
+ * @param {string} parentId
7263
+ * @param {*} [options] Override http request option.
7264
+ * @throws {RequiredError}
7265
+ */
7266
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet: function (hospitalId, languageCode, parentId, options) {
7267
+ return __awaiter(this, void 0, void 0, function () {
7268
+ var localVarAxiosArgs;
7269
+ return __generator(this, function (_a) {
7270
+ switch (_a.label) {
7271
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(hospitalId, languageCode, parentId, options)];
7272
+ case 1:
7273
+ localVarAxiosArgs = _a.sent();
7274
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7275
+ }
7276
+ });
7277
+ });
7278
+ },
7279
+ /**
7280
+ *
7281
+ * @summary Save footerNavigationItem
7282
+ * @param {string} hospitalId
7283
+ * @param {string} languageCode
7284
+ * @param {SaveFooterNavigationsCommand} [saveFooterNavigationsCommand]
7285
+ * @param {*} [options] Override http request option.
7286
+ * @throws {RequiredError}
7287
+ */
7288
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost: function (hospitalId, languageCode, saveFooterNavigationsCommand, options) {
7289
+ return __awaiter(this, void 0, void 0, function () {
7290
+ var localVarAxiosArgs;
7291
+ return __generator(this, function (_a) {
7292
+ switch (_a.label) {
7293
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(hospitalId, languageCode, saveFooterNavigationsCommand, options)];
7294
+ case 1:
7295
+ localVarAxiosArgs = _a.sent();
7296
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7297
+ }
7298
+ });
7299
+ });
7300
+ },
6624
7301
  /**
6625
7302
  *
6626
7303
  * @summary Get Hospital.
@@ -6892,18 +7569,153 @@ var HospitalsApiFp = function (configuration) {
6892
7569
  },
6893
7570
  /**
6894
7571
  *
6895
- * @summary Create HospitalLandings.
7572
+ * @summary Create HospitalLandings.
7573
+ * @param {string} hospitalId
7574
+ * @param {CreateLandingCommand} [createLandingCommand]
7575
+ * @param {*} [options] Override http request option.
7576
+ * @throws {RequiredError}
7577
+ */
7578
+ apiV1HospitalsHospitalIdLandingsPost: function (hospitalId, createLandingCommand, options) {
7579
+ return __awaiter(this, void 0, void 0, function () {
7580
+ var localVarAxiosArgs;
7581
+ return __generator(this, function (_a) {
7582
+ switch (_a.label) {
7583
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsPost(hospitalId, createLandingCommand, options)];
7584
+ case 1:
7585
+ localVarAxiosArgs = _a.sent();
7586
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7587
+ }
7588
+ });
7589
+ });
7590
+ },
7591
+ /**
7592
+ *
7593
+ * @summary Get all GetAllLanguages.
7594
+ * @param {string} hospitalId
7595
+ * @param {string} [name]
7596
+ * @param {boolean} [showHidden]
7597
+ * @param {number} [page]
7598
+ * @param {number} [limit]
7599
+ * @param {Date} [lastRetrieved]
7600
+ * @param {*} [options] Override http request option.
7601
+ * @throws {RequiredError}
7602
+ */
7603
+ apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, showHidden, page, limit, lastRetrieved, options) {
7604
+ return __awaiter(this, void 0, void 0, function () {
7605
+ var localVarAxiosArgs;
7606
+ return __generator(this, function (_a) {
7607
+ switch (_a.label) {
7608
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options)];
7609
+ case 1:
7610
+ localVarAxiosArgs = _a.sent();
7611
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7612
+ }
7613
+ });
7614
+ });
7615
+ },
7616
+ /**
7617
+ *
7618
+ * @summary Delete GetAllLanguage.
7619
+ * @param {string} hospitalId
7620
+ * @param {string} languageCode
7621
+ * @param {*} [options] Override http request option.
7622
+ * @throws {RequiredError}
7623
+ */
7624
+ apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
7625
+ return __awaiter(this, void 0, void 0, function () {
7626
+ var localVarAxiosArgs;
7627
+ return __generator(this, function (_a) {
7628
+ switch (_a.label) {
7629
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options)];
7630
+ case 1:
7631
+ localVarAxiosArgs = _a.sent();
7632
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7633
+ }
7634
+ });
7635
+ });
7636
+ },
7637
+ /**
7638
+ *
7639
+ * @summary Update HospitalLanguage
7640
+ * @param {string} hospitalId
7641
+ * @param {string} languageCode
7642
+ * @param {UpdateHospitalLanguageCommand} [updateHospitalLanguageCommand]
7643
+ * @param {*} [options] Override http request option.
7644
+ * @throws {RequiredError}
7645
+ */
7646
+ apiV1HospitalsHospitalIdLanguagesLanguageCodePut: function (hospitalId, languageCode, updateHospitalLanguageCommand, options) {
7647
+ return __awaiter(this, void 0, void 0, function () {
7648
+ var localVarAxiosArgs;
7649
+ return __generator(this, function (_a) {
7650
+ switch (_a.label) {
7651
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodePut(hospitalId, languageCode, updateHospitalLanguageCommand, options)];
7652
+ case 1:
7653
+ localVarAxiosArgs = _a.sent();
7654
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7655
+ }
7656
+ });
7657
+ });
7658
+ },
7659
+ /**
7660
+ *
7661
+ * @summary Create HospitalLanguages.
7662
+ * @param {string} hospitalId
7663
+ * @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
7664
+ * @param {*} [options] Override http request option.
7665
+ * @throws {RequiredError}
7666
+ */
7667
+ apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
7668
+ return __awaiter(this, void 0, void 0, function () {
7669
+ var localVarAxiosArgs;
7670
+ return __generator(this, function (_a) {
7671
+ switch (_a.label) {
7672
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesPost(hospitalId, createHospitalLanguageCommand, options)];
7673
+ case 1:
7674
+ localVarAxiosArgs = _a.sent();
7675
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7676
+ }
7677
+ });
7678
+ });
7679
+ },
7680
+ /**
7681
+ *
7682
+ * @summary Get all HospitalMedias.
7683
+ * @param {string} hospitalId
7684
+ * @param {string} [id]
7685
+ * @param {MediaType} [mediaType]
7686
+ * @param {number} [page]
7687
+ * @param {number} [limit]
7688
+ * @param {Date} [lastRetrieved]
7689
+ * @param {*} [options] Override http request option.
7690
+ * @throws {RequiredError}
7691
+ */
7692
+ apiV1HospitalsHospitalIdMediasGet: function (hospitalId, id, mediaType, page, limit, lastRetrieved, options) {
7693
+ return __awaiter(this, void 0, void 0, function () {
7694
+ var localVarAxiosArgs;
7695
+ return __generator(this, function (_a) {
7696
+ switch (_a.label) {
7697
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasGet(hospitalId, id, mediaType, page, limit, lastRetrieved, options)];
7698
+ case 1:
7699
+ localVarAxiosArgs = _a.sent();
7700
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
7701
+ }
7702
+ });
7703
+ });
7704
+ },
7705
+ /**
7706
+ *
7707
+ * @summary Delete HospitalMedia
6896
7708
  * @param {string} hospitalId
6897
- * @param {CreateLandingCommand} [createLandingCommand]
7709
+ * @param {string} mediaId
6898
7710
  * @param {*} [options] Override http request option.
6899
7711
  * @throws {RequiredError}
6900
7712
  */
6901
- apiV1HospitalsHospitalIdLandingsPost: function (hospitalId, createLandingCommand, options) {
7713
+ apiV1HospitalsHospitalIdMediasMediaIdDelete: function (hospitalId, mediaId, options) {
6902
7714
  return __awaiter(this, void 0, void 0, function () {
6903
7715
  var localVarAxiosArgs;
6904
7716
  return __generator(this, function (_a) {
6905
7717
  switch (_a.label) {
6906
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLandingsPost(hospitalId, createLandingCommand, options)];
7718
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasMediaIdDelete(hospitalId, mediaId, options)];
6907
7719
  case 1:
6908
7720
  localVarAxiosArgs = _a.sent();
6909
7721
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6913,22 +7725,18 @@ var HospitalsApiFp = function (configuration) {
6913
7725
  },
6914
7726
  /**
6915
7727
  *
6916
- * @summary Get all GetAllLanguages.
7728
+ * @summary Get HospitalMedia.
6917
7729
  * @param {string} hospitalId
6918
- * @param {string} [name]
6919
- * @param {boolean} [showHidden]
6920
- * @param {number} [page]
6921
- * @param {number} [limit]
6922
- * @param {Date} [lastRetrieved]
7730
+ * @param {string} mediaId
6923
7731
  * @param {*} [options] Override http request option.
6924
7732
  * @throws {RequiredError}
6925
7733
  */
6926
- apiV1HospitalsHospitalIdLanguagesGet: function (hospitalId, name, showHidden, page, limit, lastRetrieved, options) {
7734
+ apiV1HospitalsHospitalIdMediasMediaIdGet: function (hospitalId, mediaId, options) {
6927
7735
  return __awaiter(this, void 0, void 0, function () {
6928
7736
  var localVarAxiosArgs;
6929
7737
  return __generator(this, function (_a) {
6930
7738
  switch (_a.label) {
6931
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesGet(hospitalId, name, showHidden, page, limit, lastRetrieved, options)];
7739
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options)];
6932
7740
  case 1:
6933
7741
  localVarAxiosArgs = _a.sent();
6934
7742
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6938,18 +7746,19 @@ var HospitalsApiFp = function (configuration) {
6938
7746
  },
6939
7747
  /**
6940
7748
  *
6941
- * @summary Delete GetAllLanguage.
7749
+ * @summary Update HospitalMedia.
6942
7750
  * @param {string} hospitalId
6943
- * @param {string} languageCode
7751
+ * @param {string} mediaId
7752
+ * @param {UpdateMediaCommand} [updateMediaCommand]
6944
7753
  * @param {*} [options] Override http request option.
6945
7754
  * @throws {RequiredError}
6946
7755
  */
6947
- apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete: function (hospitalId, languageCode, options) {
7756
+ apiV1HospitalsHospitalIdMediasMediaIdPut: function (hospitalId, mediaId, updateMediaCommand, options) {
6948
7757
  return __awaiter(this, void 0, void 0, function () {
6949
7758
  var localVarAxiosArgs;
6950
7759
  return __generator(this, function (_a) {
6951
7760
  switch (_a.label) {
6952
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodeDelete(hospitalId, languageCode, options)];
7761
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasMediaIdPut(hospitalId, mediaId, updateMediaCommand, options)];
6953
7762
  case 1:
6954
7763
  localVarAxiosArgs = _a.sent();
6955
7764
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6959,19 +7768,18 @@ var HospitalsApiFp = function (configuration) {
6959
7768
  },
6960
7769
  /**
6961
7770
  *
6962
- * @summary Update HospitalLanguage
7771
+ * @summary Create HospitalMedia.
6963
7772
  * @param {string} hospitalId
6964
- * @param {string} languageCode
6965
- * @param {UpdateHospitalLanguageCommand} [updateHospitalLanguageCommand]
7773
+ * @param {CreateMediaCommand} [createMediaCommand]
6966
7774
  * @param {*} [options] Override http request option.
6967
7775
  * @throws {RequiredError}
6968
7776
  */
6969
- apiV1HospitalsHospitalIdLanguagesLanguageCodePut: function (hospitalId, languageCode, updateHospitalLanguageCommand, options) {
7777
+ apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
6970
7778
  return __awaiter(this, void 0, void 0, function () {
6971
7779
  var localVarAxiosArgs;
6972
7780
  return __generator(this, function (_a) {
6973
7781
  switch (_a.label) {
6974
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesLanguageCodePut(hospitalId, languageCode, updateHospitalLanguageCommand, options)];
7782
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options)];
6975
7783
  case 1:
6976
7784
  localVarAxiosArgs = _a.sent();
6977
7785
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -6981,18 +7789,24 @@ var HospitalsApiFp = function (configuration) {
6981
7789
  },
6982
7790
  /**
6983
7791
  *
6984
- * @summary Create HospitalLanguages.
7792
+ * @summary Get all policies
6985
7793
  * @param {string} hospitalId
6986
- * @param {CreateHospitalLanguageCommand} [createHospitalLanguageCommand]
7794
+ * @param {string} [name]
7795
+ * @param {string} [slug]
7796
+ * @param {string} [languageCode]
7797
+ * @param {boolean} [showHidden]
7798
+ * @param {number} [page]
7799
+ * @param {number} [limit]
7800
+ * @param {Date} [lastRetrieved]
6987
7801
  * @param {*} [options] Override http request option.
6988
7802
  * @throws {RequiredError}
6989
7803
  */
6990
- apiV1HospitalsHospitalIdLanguagesPost: function (hospitalId, createHospitalLanguageCommand, options) {
7804
+ apiV1HospitalsHospitalIdPoliciesGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
6991
7805
  return __awaiter(this, void 0, void 0, function () {
6992
7806
  var localVarAxiosArgs;
6993
7807
  return __generator(this, function (_a) {
6994
7808
  switch (_a.label) {
6995
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdLanguagesPost(hospitalId, createHospitalLanguageCommand, options)];
7809
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options)];
6996
7810
  case 1:
6997
7811
  localVarAxiosArgs = _a.sent();
6998
7812
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7002,22 +7816,19 @@ var HospitalsApiFp = function (configuration) {
7002
7816
  },
7003
7817
  /**
7004
7818
  *
7005
- * @summary Get all HospitalMedias.
7819
+ * @summary Delete policy
7006
7820
  * @param {string} hospitalId
7007
- * @param {string} [id]
7008
- * @param {MediaType} [mediaType]
7009
- * @param {number} [page]
7010
- * @param {number} [limit]
7011
- * @param {Date} [lastRetrieved]
7821
+ * @param {string} policyId
7822
+ * @param {boolean} [isPermanent]
7012
7823
  * @param {*} [options] Override http request option.
7013
7824
  * @throws {RequiredError}
7014
7825
  */
7015
- apiV1HospitalsHospitalIdMediasGet: function (hospitalId, id, mediaType, page, limit, lastRetrieved, options) {
7826
+ apiV1HospitalsHospitalIdPoliciesPolicyIdDelete: function (hospitalId, policyId, isPermanent, options) {
7016
7827
  return __awaiter(this, void 0, void 0, function () {
7017
7828
  var localVarAxiosArgs;
7018
7829
  return __generator(this, function (_a) {
7019
7830
  switch (_a.label) {
7020
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasGet(hospitalId, id, mediaType, page, limit, lastRetrieved, options)];
7831
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(hospitalId, policyId, isPermanent, options)];
7021
7832
  case 1:
7022
7833
  localVarAxiosArgs = _a.sent();
7023
7834
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7027,18 +7838,19 @@ var HospitalsApiFp = function (configuration) {
7027
7838
  },
7028
7839
  /**
7029
7840
  *
7030
- * @summary Delete HospitalMedia
7841
+ * @summary Get policy
7031
7842
  * @param {string} hospitalId
7032
- * @param {string} mediaId
7843
+ * @param {string} policyId
7844
+ * @param {string} [languageCode]
7033
7845
  * @param {*} [options] Override http request option.
7034
7846
  * @throws {RequiredError}
7035
7847
  */
7036
- apiV1HospitalsHospitalIdMediasMediaIdDelete: function (hospitalId, mediaId, options) {
7848
+ apiV1HospitalsHospitalIdPoliciesPolicyIdGet: function (hospitalId, policyId, languageCode, options) {
7037
7849
  return __awaiter(this, void 0, void 0, function () {
7038
7850
  var localVarAxiosArgs;
7039
7851
  return __generator(this, function (_a) {
7040
7852
  switch (_a.label) {
7041
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasMediaIdDelete(hospitalId, mediaId, options)];
7853
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options)];
7042
7854
  case 1:
7043
7855
  localVarAxiosArgs = _a.sent();
7044
7856
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7048,18 +7860,19 @@ var HospitalsApiFp = function (configuration) {
7048
7860
  },
7049
7861
  /**
7050
7862
  *
7051
- * @summary Get HospitalMedia.
7863
+ * @summary Update policy
7052
7864
  * @param {string} hospitalId
7053
- * @param {string} mediaId
7865
+ * @param {string} policyId
7866
+ * @param {UpdatePolicyCommand} [updatePolicyCommand]
7054
7867
  * @param {*} [options] Override http request option.
7055
7868
  * @throws {RequiredError}
7056
7869
  */
7057
- apiV1HospitalsHospitalIdMediasMediaIdGet: function (hospitalId, mediaId, options) {
7870
+ apiV1HospitalsHospitalIdPoliciesPolicyIdPut: function (hospitalId, policyId, updatePolicyCommand, options) {
7058
7871
  return __awaiter(this, void 0, void 0, function () {
7059
7872
  var localVarAxiosArgs;
7060
7873
  return __generator(this, function (_a) {
7061
7874
  switch (_a.label) {
7062
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasMediaIdGet(hospitalId, mediaId, options)];
7875
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdPut(hospitalId, policyId, updatePolicyCommand, options)];
7063
7876
  case 1:
7064
7877
  localVarAxiosArgs = _a.sent();
7065
7878
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7069,19 +7882,18 @@ var HospitalsApiFp = function (configuration) {
7069
7882
  },
7070
7883
  /**
7071
7884
  *
7072
- * @summary Update HospitalMedia.
7885
+ * @summary Reactive policy
7073
7886
  * @param {string} hospitalId
7074
- * @param {string} mediaId
7075
- * @param {UpdateMediaCommand} [updateMediaCommand]
7887
+ * @param {string} policyId
7076
7888
  * @param {*} [options] Override http request option.
7077
7889
  * @throws {RequiredError}
7078
7890
  */
7079
- apiV1HospitalsHospitalIdMediasMediaIdPut: function (hospitalId, mediaId, updateMediaCommand, options) {
7891
+ apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut: function (hospitalId, policyId, options) {
7080
7892
  return __awaiter(this, void 0, void 0, function () {
7081
7893
  var localVarAxiosArgs;
7082
7894
  return __generator(this, function (_a) {
7083
7895
  switch (_a.label) {
7084
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasMediaIdPut(hospitalId, mediaId, updateMediaCommand, options)];
7896
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(hospitalId, policyId, options)];
7085
7897
  case 1:
7086
7898
  localVarAxiosArgs = _a.sent();
7087
7899
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -7091,18 +7903,18 @@ var HospitalsApiFp = function (configuration) {
7091
7903
  },
7092
7904
  /**
7093
7905
  *
7094
- * @summary Create HospitalMedia.
7906
+ * @summary Create policy
7095
7907
  * @param {string} hospitalId
7096
- * @param {CreateMediaCommand} [createMediaCommand]
7908
+ * @param {CreatePolicyCommand} [createPolicyCommand]
7097
7909
  * @param {*} [options] Override http request option.
7098
7910
  * @throws {RequiredError}
7099
7911
  */
7100
- apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
7912
+ apiV1HospitalsHospitalIdPoliciesPost: function (hospitalId, createPolicyCommand, options) {
7101
7913
  return __awaiter(this, void 0, void 0, function () {
7102
7914
  var localVarAxiosArgs;
7103
7915
  return __generator(this, function (_a) {
7104
7916
  switch (_a.label) {
7105
- case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options)];
7917
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPost(hospitalId, createPolicyCommand, options)];
7106
7918
  case 1:
7107
7919
  localVarAxiosArgs = _a.sent();
7108
7920
  return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
@@ -8741,6 +9553,65 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
8741
9553
  apiV1HospitalsHospitalIdEvaluationsPost: function (hospitalId, createHospitalEvaluationCommand, options) {
8742
9554
  return localVarFp.apiV1HospitalsHospitalIdEvaluationsPost(hospitalId, createHospitalEvaluationCommand, options).then(function (request) { return request(axios, basePath); });
8743
9555
  },
9556
+ /**
9557
+ *
9558
+ * @summary Get footerNavigationItems
9559
+ * @param {string} hospitalId
9560
+ * @param {string} languageCode
9561
+ * @param {*} [options] Override http request option.
9562
+ * @throws {RequiredError}
9563
+ */
9564
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet: function (hospitalId, languageCode, options) {
9565
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options).then(function (request) { return request(axios, basePath); });
9566
+ },
9567
+ /**
9568
+ *
9569
+ * @summary Delete footerNavigationItem
9570
+ * @param {string} hospitalId
9571
+ * @param {string} languageCode
9572
+ * @param {string} id
9573
+ * @param {*} [options] Override http request option.
9574
+ * @throws {RequiredError}
9575
+ */
9576
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete: function (hospitalId, languageCode, id, options) {
9577
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(hospitalId, languageCode, id, options).then(function (request) { return request(axios, basePath); });
9578
+ },
9579
+ /**
9580
+ *
9581
+ * @summary Get footerNavigationItem by Id
9582
+ * @param {string} hospitalId
9583
+ * @param {string} languageCode
9584
+ * @param {string} id
9585
+ * @param {*} [options] Override http request option.
9586
+ * @throws {RequiredError}
9587
+ */
9588
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet: function (hospitalId, languageCode, id, options) {
9589
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(hospitalId, languageCode, id, options).then(function (request) { return request(axios, basePath); });
9590
+ },
9591
+ /**
9592
+ *
9593
+ * @summary Get footerNavigationItems by ParentId
9594
+ * @param {string} hospitalId
9595
+ * @param {string} languageCode
9596
+ * @param {string} parentId
9597
+ * @param {*} [options] Override http request option.
9598
+ * @throws {RequiredError}
9599
+ */
9600
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet: function (hospitalId, languageCode, parentId, options) {
9601
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(hospitalId, languageCode, parentId, options).then(function (request) { return request(axios, basePath); });
9602
+ },
9603
+ /**
9604
+ *
9605
+ * @summary Save footerNavigationItem
9606
+ * @param {string} hospitalId
9607
+ * @param {string} languageCode
9608
+ * @param {SaveFooterNavigationsCommand} [saveFooterNavigationsCommand]
9609
+ * @param {*} [options] Override http request option.
9610
+ * @throws {RequiredError}
9611
+ */
9612
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost: function (hospitalId, languageCode, saveFooterNavigationsCommand, options) {
9613
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(hospitalId, languageCode, saveFooterNavigationsCommand, options).then(function (request) { return request(axios, basePath); });
9614
+ },
8744
9615
  /**
8745
9616
  *
8746
9617
  * @summary Get Hospital.
@@ -9010,6 +9881,81 @@ var HospitalsApiFactory = function (configuration, basePath, axios) {
9010
9881
  apiV1HospitalsHospitalIdMediasPost: function (hospitalId, createMediaCommand, options) {
9011
9882
  return localVarFp.apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options).then(function (request) { return request(axios, basePath); });
9012
9883
  },
9884
+ /**
9885
+ *
9886
+ * @summary Get all policies
9887
+ * @param {string} hospitalId
9888
+ * @param {string} [name]
9889
+ * @param {string} [slug]
9890
+ * @param {string} [languageCode]
9891
+ * @param {boolean} [showHidden]
9892
+ * @param {number} [page]
9893
+ * @param {number} [limit]
9894
+ * @param {Date} [lastRetrieved]
9895
+ * @param {*} [options] Override http request option.
9896
+ * @throws {RequiredError}
9897
+ */
9898
+ apiV1HospitalsHospitalIdPoliciesGet: function (hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options) {
9899
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
9900
+ },
9901
+ /**
9902
+ *
9903
+ * @summary Delete policy
9904
+ * @param {string} hospitalId
9905
+ * @param {string} policyId
9906
+ * @param {boolean} [isPermanent]
9907
+ * @param {*} [options] Override http request option.
9908
+ * @throws {RequiredError}
9909
+ */
9910
+ apiV1HospitalsHospitalIdPoliciesPolicyIdDelete: function (hospitalId, policyId, isPermanent, options) {
9911
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(hospitalId, policyId, isPermanent, options).then(function (request) { return request(axios, basePath); });
9912
+ },
9913
+ /**
9914
+ *
9915
+ * @summary Get policy
9916
+ * @param {string} hospitalId
9917
+ * @param {string} policyId
9918
+ * @param {string} [languageCode]
9919
+ * @param {*} [options] Override http request option.
9920
+ * @throws {RequiredError}
9921
+ */
9922
+ apiV1HospitalsHospitalIdPoliciesPolicyIdGet: function (hospitalId, policyId, languageCode, options) {
9923
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options).then(function (request) { return request(axios, basePath); });
9924
+ },
9925
+ /**
9926
+ *
9927
+ * @summary Update policy
9928
+ * @param {string} hospitalId
9929
+ * @param {string} policyId
9930
+ * @param {UpdatePolicyCommand} [updatePolicyCommand]
9931
+ * @param {*} [options] Override http request option.
9932
+ * @throws {RequiredError}
9933
+ */
9934
+ apiV1HospitalsHospitalIdPoliciesPolicyIdPut: function (hospitalId, policyId, updatePolicyCommand, options) {
9935
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdPut(hospitalId, policyId, updatePolicyCommand, options).then(function (request) { return request(axios, basePath); });
9936
+ },
9937
+ /**
9938
+ *
9939
+ * @summary Reactive policy
9940
+ * @param {string} hospitalId
9941
+ * @param {string} policyId
9942
+ * @param {*} [options] Override http request option.
9943
+ * @throws {RequiredError}
9944
+ */
9945
+ apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut: function (hospitalId, policyId, options) {
9946
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(hospitalId, policyId, options).then(function (request) { return request(axios, basePath); });
9947
+ },
9948
+ /**
9949
+ *
9950
+ * @summary Create policy
9951
+ * @param {string} hospitalId
9952
+ * @param {CreatePolicyCommand} [createPolicyCommand]
9953
+ * @param {*} [options] Override http request option.
9954
+ * @throws {RequiredError}
9955
+ */
9956
+ apiV1HospitalsHospitalIdPoliciesPost: function (hospitalId, createPolicyCommand, options) {
9957
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPost(hospitalId, createPolicyCommand, options).then(function (request) { return request(axios, basePath); });
9958
+ },
9013
9959
  /**
9014
9960
  *
9015
9961
  * @summary Update Hospital.
@@ -10096,6 +11042,66 @@ var HospitalsApi = /** @class */ (function (_super) {
10096
11042
  var _this = this;
10097
11043
  return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdEvaluationsPost(requestParameters.hospitalId, requestParameters.createHospitalEvaluationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
10098
11044
  };
11045
+ /**
11046
+ *
11047
+ * @summary Get footerNavigationItems
11048
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest} requestParameters Request parameters.
11049
+ * @param {*} [options] Override http request option.
11050
+ * @throws {RequiredError}
11051
+ * @memberof HospitalsApi
11052
+ */
11053
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet = function (requestParameters, options) {
11054
+ var _this = this;
11055
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters.hospitalId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
11056
+ };
11057
+ /**
11058
+ *
11059
+ * @summary Delete footerNavigationItem
11060
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDeleteRequest} requestParameters Request parameters.
11061
+ * @param {*} [options] Override http request option.
11062
+ * @throws {RequiredError}
11063
+ * @memberof HospitalsApi
11064
+ */
11065
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete = function (requestParameters, options) {
11066
+ var _this = this;
11067
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11068
+ };
11069
+ /**
11070
+ *
11071
+ * @summary Get footerNavigationItem by Id
11072
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGetRequest} requestParameters Request parameters.
11073
+ * @param {*} [options] Override http request option.
11074
+ * @throws {RequiredError}
11075
+ * @memberof HospitalsApi
11076
+ */
11077
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet = function (requestParameters, options) {
11078
+ var _this = this;
11079
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
11080
+ };
11081
+ /**
11082
+ *
11083
+ * @summary Get footerNavigationItems by ParentId
11084
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGetRequest} requestParameters Request parameters.
11085
+ * @param {*} [options] Override http request option.
11086
+ * @throws {RequiredError}
11087
+ * @memberof HospitalsApi
11088
+ */
11089
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet = function (requestParameters, options) {
11090
+ var _this = this;
11091
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.parentId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11092
+ };
11093
+ /**
11094
+ *
11095
+ * @summary Save footerNavigationItem
11096
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePostRequest} requestParameters Request parameters.
11097
+ * @param {*} [options] Override http request option.
11098
+ * @throws {RequiredError}
11099
+ * @memberof HospitalsApi
11100
+ */
11101
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost = function (requestParameters, options) {
11102
+ var _this = this;
11103
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.saveFooterNavigationsCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11104
+ };
10099
11105
  /**
10100
11106
  *
10101
11107
  * @summary Get Hospital.
@@ -10360,6 +11366,78 @@ var HospitalsApi = /** @class */ (function (_super) {
10360
11366
  var _this = this;
10361
11367
  return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdMediasPost(requestParameters.hospitalId, requestParameters.createMediaCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
10362
11368
  };
11369
+ /**
11370
+ *
11371
+ * @summary Get all policies
11372
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesGetRequest} requestParameters Request parameters.
11373
+ * @param {*} [options] Override http request option.
11374
+ * @throws {RequiredError}
11375
+ * @memberof HospitalsApi
11376
+ */
11377
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPoliciesGet = function (requestParameters, options) {
11378
+ var _this = this;
11379
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPoliciesGet(requestParameters.hospitalId, requestParameters.name, requestParameters.slug, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
11380
+ };
11381
+ /**
11382
+ *
11383
+ * @summary Delete policy
11384
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDeleteRequest} requestParameters Request parameters.
11385
+ * @param {*} [options] Override http request option.
11386
+ * @throws {RequiredError}
11387
+ * @memberof HospitalsApi
11388
+ */
11389
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPoliciesPolicyIdDelete = function (requestParameters, options) {
11390
+ var _this = this;
11391
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(requestParameters.hospitalId, requestParameters.policyId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
11392
+ };
11393
+ /**
11394
+ *
11395
+ * @summary Get policy
11396
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGetRequest} requestParameters Request parameters.
11397
+ * @param {*} [options] Override http request option.
11398
+ * @throws {RequiredError}
11399
+ * @memberof HospitalsApi
11400
+ */
11401
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPoliciesPolicyIdGet = function (requestParameters, options) {
11402
+ var _this = this;
11403
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters.hospitalId, requestParameters.policyId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
11404
+ };
11405
+ /**
11406
+ *
11407
+ * @summary Update policy
11408
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPutRequest} requestParameters Request parameters.
11409
+ * @param {*} [options] Override http request option.
11410
+ * @throws {RequiredError}
11411
+ * @memberof HospitalsApi
11412
+ */
11413
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPoliciesPolicyIdPut = function (requestParameters, options) {
11414
+ var _this = this;
11415
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdPut(requestParameters.hospitalId, requestParameters.policyId, requestParameters.updatePolicyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11416
+ };
11417
+ /**
11418
+ *
11419
+ * @summary Reactive policy
11420
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePutRequest} requestParameters Request parameters.
11421
+ * @param {*} [options] Override http request option.
11422
+ * @throws {RequiredError}
11423
+ * @memberof HospitalsApi
11424
+ */
11425
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut = function (requestParameters, options) {
11426
+ var _this = this;
11427
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(requestParameters.hospitalId, requestParameters.policyId, options).then(function (request) { return request(_this.axios, _this.basePath); });
11428
+ };
11429
+ /**
11430
+ *
11431
+ * @summary Create policy
11432
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPostRequest} requestParameters Request parameters.
11433
+ * @param {*} [options] Override http request option.
11434
+ * @throws {RequiredError}
11435
+ * @memberof HospitalsApi
11436
+ */
11437
+ HospitalsApi.prototype.apiV1HospitalsHospitalIdPoliciesPost = function (requestParameters, options) {
11438
+ var _this = this;
11439
+ return (0, exports.HospitalsApiFp)(this.configuration).apiV1HospitalsHospitalIdPoliciesPost(requestParameters.hospitalId, requestParameters.createPolicyCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
11440
+ };
10363
11441
  /**
10364
11442
  *
10365
11443
  * @summary Update Hospital.