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
@@ -59,8 +59,12 @@ import { CreateLandingCommand } from '../models';
59
59
  // @ts-ignore
60
60
  import { CreateMediaCommand } from '../models';
61
61
  // @ts-ignore
62
+ import { CreatePolicyCommand } from '../models';
63
+ // @ts-ignore
62
64
  import { DayOfWeek } from '../models';
63
65
  // @ts-ignore
66
+ import { FooterNavigationItemModel } from '../models';
67
+ // @ts-ignore
64
68
  import { HospitalAccreditationModel } from '../models';
65
69
  // @ts-ignore
66
70
  import { HospitalAccreditationsModel } from '../models';
@@ -109,12 +113,18 @@ import { MediaType } from '../models';
109
113
  // @ts-ignore
110
114
  import { MediasModel } from '../models';
111
115
  // @ts-ignore
116
+ import { PoliciesModel } from '../models';
117
+ // @ts-ignore
118
+ import { PolicyModel } from '../models';
119
+ // @ts-ignore
112
120
  import { ProblemDetails } from '../models';
113
121
  // @ts-ignore
114
122
  import { Procedure } from '../models';
115
123
  // @ts-ignore
116
124
  import { SaveAppointmentTimetableOverridesResultModel } from '../models';
117
125
  // @ts-ignore
126
+ import { SaveFooterNavigationsCommand } from '../models';
127
+ // @ts-ignore
118
128
  import { SaveHospitalAppointmentTimetableOverridesCommand } from '../models';
119
129
  // @ts-ignore
120
130
  import { SaveHospitalSpecialtyAppointmentTimetableOverridesCommand } from '../models';
@@ -151,6 +161,8 @@ import { UpdateLandingCommand } from '../models';
151
161
  // @ts-ignore
152
162
  import { UpdateMediaCommand } from '../models';
153
163
  // @ts-ignore
164
+ import { UpdatePolicyCommand } from '../models';
165
+ // @ts-ignore
154
166
  import { WorkingDayModel } from '../models';
155
167
  // @ts-ignore
156
168
  import { WorkingDaysModel } from '../models';
@@ -1746,6 +1758,232 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1746
1758
  options: localVarRequestOptions,
1747
1759
  };
1748
1760
  },
1761
+ /**
1762
+ *
1763
+ * @summary Get footerNavigationItems
1764
+ * @param {string} hospitalId
1765
+ * @param {string} languageCode
1766
+ * @param {*} [options] Override http request option.
1767
+ * @throws {RequiredError}
1768
+ */
1769
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet: async (hospitalId: string, languageCode: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1770
+ // verify required parameter 'hospitalId' is not null or undefined
1771
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'hospitalId', hospitalId)
1772
+ // verify required parameter 'languageCode' is not null or undefined
1773
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet', 'languageCode', languageCode)
1774
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}`
1775
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
1776
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
1777
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1778
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1779
+ let baseOptions;
1780
+ if (configuration) {
1781
+ baseOptions = configuration.baseOptions;
1782
+ }
1783
+
1784
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1785
+ const localVarHeaderParameter = {} as any;
1786
+ const localVarQueryParameter = {} as any;
1787
+
1788
+ // authentication oauth2 required
1789
+ // oauth required
1790
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1791
+
1792
+
1793
+
1794
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1795
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1796
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1797
+
1798
+ return {
1799
+ url: toPathString(localVarUrlObj),
1800
+ options: localVarRequestOptions,
1801
+ };
1802
+ },
1803
+ /**
1804
+ *
1805
+ * @summary Delete footerNavigationItem
1806
+ * @param {string} hospitalId
1807
+ * @param {string} languageCode
1808
+ * @param {string} id
1809
+ * @param {*} [options] Override http request option.
1810
+ * @throws {RequiredError}
1811
+ */
1812
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete: async (hospitalId: string, languageCode: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1813
+ // verify required parameter 'hospitalId' is not null or undefined
1814
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete', 'hospitalId', hospitalId)
1815
+ // verify required parameter 'languageCode' is not null or undefined
1816
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete', 'languageCode', languageCode)
1817
+ // verify required parameter 'id' is not null or undefined
1818
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete', 'id', id)
1819
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}/{id}`
1820
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
1821
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)))
1822
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1825
+ let baseOptions;
1826
+ if (configuration) {
1827
+ baseOptions = configuration.baseOptions;
1828
+ }
1829
+
1830
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
1831
+ const localVarHeaderParameter = {} as any;
1832
+ const localVarQueryParameter = {} as any;
1833
+
1834
+ // authentication oauth2 required
1835
+ // oauth required
1836
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1837
+
1838
+
1839
+
1840
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1841
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1842
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1843
+
1844
+ return {
1845
+ url: toPathString(localVarUrlObj),
1846
+ options: localVarRequestOptions,
1847
+ };
1848
+ },
1849
+ /**
1850
+ *
1851
+ * @summary Get footerNavigationItem by Id
1852
+ * @param {string} hospitalId
1853
+ * @param {string} languageCode
1854
+ * @param {string} id
1855
+ * @param {*} [options] Override http request option.
1856
+ * @throws {RequiredError}
1857
+ */
1858
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet: async (hospitalId: string, languageCode: string, id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1859
+ // verify required parameter 'hospitalId' is not null or undefined
1860
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet', 'hospitalId', hospitalId)
1861
+ // verify required parameter 'languageCode' is not null or undefined
1862
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet', 'languageCode', languageCode)
1863
+ // verify required parameter 'id' is not null or undefined
1864
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet', 'id', id)
1865
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}/{id}`
1866
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
1867
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)))
1868
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
1869
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1870
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1871
+ let baseOptions;
1872
+ if (configuration) {
1873
+ baseOptions = configuration.baseOptions;
1874
+ }
1875
+
1876
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1877
+ const localVarHeaderParameter = {} as any;
1878
+ const localVarQueryParameter = {} as any;
1879
+
1880
+ // authentication oauth2 required
1881
+ // oauth required
1882
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1883
+
1884
+
1885
+
1886
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1887
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1888
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1889
+
1890
+ return {
1891
+ url: toPathString(localVarUrlObj),
1892
+ options: localVarRequestOptions,
1893
+ };
1894
+ },
1895
+ /**
1896
+ *
1897
+ * @summary Get footerNavigationItems by ParentId
1898
+ * @param {string} hospitalId
1899
+ * @param {string} languageCode
1900
+ * @param {string} parentId
1901
+ * @param {*} [options] Override http request option.
1902
+ * @throws {RequiredError}
1903
+ */
1904
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet: async (hospitalId: string, languageCode: string, parentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1905
+ // verify required parameter 'hospitalId' is not null or undefined
1906
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet', 'hospitalId', hospitalId)
1907
+ // verify required parameter 'languageCode' is not null or undefined
1908
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet', 'languageCode', languageCode)
1909
+ // verify required parameter 'parentId' is not null or undefined
1910
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet', 'parentId', parentId)
1911
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}/{parentId}/subitems`
1912
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
1913
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)))
1914
+ .replace(`{${"parentId"}}`, encodeURIComponent(String(parentId)));
1915
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1916
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1917
+ let baseOptions;
1918
+ if (configuration) {
1919
+ baseOptions = configuration.baseOptions;
1920
+ }
1921
+
1922
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
1923
+ const localVarHeaderParameter = {} as any;
1924
+ const localVarQueryParameter = {} as any;
1925
+
1926
+ // authentication oauth2 required
1927
+ // oauth required
1928
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1929
+
1930
+
1931
+
1932
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1933
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1934
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1935
+
1936
+ return {
1937
+ url: toPathString(localVarUrlObj),
1938
+ options: localVarRequestOptions,
1939
+ };
1940
+ },
1941
+ /**
1942
+ *
1943
+ * @summary Save footerNavigationItem
1944
+ * @param {string} hospitalId
1945
+ * @param {string} languageCode
1946
+ * @param {SaveFooterNavigationsCommand} [saveFooterNavigationsCommand]
1947
+ * @param {*} [options] Override http request option.
1948
+ * @throws {RequiredError}
1949
+ */
1950
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost: async (hospitalId: string, languageCode: string, saveFooterNavigationsCommand?: SaveFooterNavigationsCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1951
+ // verify required parameter 'hospitalId' is not null or undefined
1952
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost', 'hospitalId', hospitalId)
1953
+ // verify required parameter 'languageCode' is not null or undefined
1954
+ assertParamExists('apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost', 'languageCode', languageCode)
1955
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/footernavigations/{languageCode}`
1956
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
1957
+ .replace(`{${"languageCode"}}`, encodeURIComponent(String(languageCode)));
1958
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1959
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1960
+ let baseOptions;
1961
+ if (configuration) {
1962
+ baseOptions = configuration.baseOptions;
1963
+ }
1964
+
1965
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
1966
+ const localVarHeaderParameter = {} as any;
1967
+ const localVarQueryParameter = {} as any;
1968
+
1969
+ // authentication oauth2 required
1970
+ // oauth required
1971
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1972
+
1973
+
1974
+
1975
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1976
+
1977
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1979
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1980
+ localVarRequestOptions.data = serializeDataIfNeeded(saveFooterNavigationsCommand, localVarRequestOptions, configuration)
1981
+
1982
+ return {
1983
+ url: toPathString(localVarUrlObj),
1984
+ options: localVarRequestOptions,
1985
+ };
1986
+ },
1749
1987
  /**
1750
1988
  *
1751
1989
  * @summary Get Hospital.
@@ -2814,6 +3052,305 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
2814
3052
  options: localVarRequestOptions,
2815
3053
  };
2816
3054
  },
3055
+ /**
3056
+ *
3057
+ * @summary Get all policies
3058
+ * @param {string} hospitalId
3059
+ * @param {string} [name]
3060
+ * @param {string} [slug]
3061
+ * @param {string} [languageCode]
3062
+ * @param {boolean} [showHidden]
3063
+ * @param {number} [page]
3064
+ * @param {number} [limit]
3065
+ * @param {Date} [lastRetrieved]
3066
+ * @param {*} [options] Override http request option.
3067
+ * @throws {RequiredError}
3068
+ */
3069
+ apiV1HospitalsHospitalIdPoliciesGet: async (hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3070
+ // verify required parameter 'hospitalId' is not null or undefined
3071
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesGet', 'hospitalId', hospitalId)
3072
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/policies`
3073
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
3074
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3075
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3076
+ let baseOptions;
3077
+ if (configuration) {
3078
+ baseOptions = configuration.baseOptions;
3079
+ }
3080
+
3081
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3082
+ const localVarHeaderParameter = {} as any;
3083
+ const localVarQueryParameter = {} as any;
3084
+
3085
+ // authentication oauth2 required
3086
+ // oauth required
3087
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3088
+
3089
+ if (name !== undefined) {
3090
+ localVarQueryParameter['Name'] = name;
3091
+ }
3092
+
3093
+ if (slug !== undefined) {
3094
+ localVarQueryParameter['Slug'] = slug;
3095
+ }
3096
+
3097
+ if (languageCode !== undefined) {
3098
+ localVarQueryParameter['LanguageCode'] = languageCode;
3099
+ }
3100
+
3101
+ if (showHidden !== undefined) {
3102
+ localVarQueryParameter['ShowHidden'] = showHidden;
3103
+ }
3104
+
3105
+ if (page !== undefined) {
3106
+ localVarQueryParameter['page'] = page;
3107
+ }
3108
+
3109
+ if (limit !== undefined) {
3110
+ localVarQueryParameter['limit'] = limit;
3111
+ }
3112
+
3113
+ if (lastRetrieved !== undefined) {
3114
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
3115
+ (lastRetrieved as any).toISOString() :
3116
+ lastRetrieved;
3117
+ }
3118
+
3119
+
3120
+
3121
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3122
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3123
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3124
+
3125
+ return {
3126
+ url: toPathString(localVarUrlObj),
3127
+ options: localVarRequestOptions,
3128
+ };
3129
+ },
3130
+ /**
3131
+ *
3132
+ * @summary Delete policy
3133
+ * @param {string} hospitalId
3134
+ * @param {string} policyId
3135
+ * @param {boolean} [isPermanent]
3136
+ * @param {*} [options] Override http request option.
3137
+ * @throws {RequiredError}
3138
+ */
3139
+ apiV1HospitalsHospitalIdPoliciesPolicyIdDelete: async (hospitalId: string, policyId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3140
+ // verify required parameter 'hospitalId' is not null or undefined
3141
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdDelete', 'hospitalId', hospitalId)
3142
+ // verify required parameter 'policyId' is not null or undefined
3143
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdDelete', 'policyId', policyId)
3144
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/policies/{policyId}`
3145
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
3146
+ .replace(`{${"policyId"}}`, encodeURIComponent(String(policyId)));
3147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3149
+ let baseOptions;
3150
+ if (configuration) {
3151
+ baseOptions = configuration.baseOptions;
3152
+ }
3153
+
3154
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
3155
+ const localVarHeaderParameter = {} as any;
3156
+ const localVarQueryParameter = {} as any;
3157
+
3158
+ // authentication oauth2 required
3159
+ // oauth required
3160
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3161
+
3162
+ if (isPermanent !== undefined) {
3163
+ localVarQueryParameter['isPermanent'] = isPermanent;
3164
+ }
3165
+
3166
+
3167
+
3168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3171
+
3172
+ return {
3173
+ url: toPathString(localVarUrlObj),
3174
+ options: localVarRequestOptions,
3175
+ };
3176
+ },
3177
+ /**
3178
+ *
3179
+ * @summary Get policy
3180
+ * @param {string} hospitalId
3181
+ * @param {string} policyId
3182
+ * @param {string} [languageCode]
3183
+ * @param {*} [options] Override http request option.
3184
+ * @throws {RequiredError}
3185
+ */
3186
+ apiV1HospitalsHospitalIdPoliciesPolicyIdGet: async (hospitalId: string, policyId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3187
+ // verify required parameter 'hospitalId' is not null or undefined
3188
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdGet', 'hospitalId', hospitalId)
3189
+ // verify required parameter 'policyId' is not null or undefined
3190
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdGet', 'policyId', policyId)
3191
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/policies/{policyId}`
3192
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
3193
+ .replace(`{${"policyId"}}`, encodeURIComponent(String(policyId)));
3194
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3195
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3196
+ let baseOptions;
3197
+ if (configuration) {
3198
+ baseOptions = configuration.baseOptions;
3199
+ }
3200
+
3201
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
3202
+ const localVarHeaderParameter = {} as any;
3203
+ const localVarQueryParameter = {} as any;
3204
+
3205
+ // authentication oauth2 required
3206
+ // oauth required
3207
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3208
+
3209
+ if (languageCode !== undefined) {
3210
+ localVarQueryParameter['languageCode'] = languageCode;
3211
+ }
3212
+
3213
+
3214
+
3215
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3216
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3217
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3218
+
3219
+ return {
3220
+ url: toPathString(localVarUrlObj),
3221
+ options: localVarRequestOptions,
3222
+ };
3223
+ },
3224
+ /**
3225
+ *
3226
+ * @summary Update policy
3227
+ * @param {string} hospitalId
3228
+ * @param {string} policyId
3229
+ * @param {UpdatePolicyCommand} [updatePolicyCommand]
3230
+ * @param {*} [options] Override http request option.
3231
+ * @throws {RequiredError}
3232
+ */
3233
+ apiV1HospitalsHospitalIdPoliciesPolicyIdPut: async (hospitalId: string, policyId: string, updatePolicyCommand?: UpdatePolicyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3234
+ // verify required parameter 'hospitalId' is not null or undefined
3235
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdPut', 'hospitalId', hospitalId)
3236
+ // verify required parameter 'policyId' is not null or undefined
3237
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdPut', 'policyId', policyId)
3238
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/policies/{policyId}`
3239
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
3240
+ .replace(`{${"policyId"}}`, encodeURIComponent(String(policyId)));
3241
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3242
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3243
+ let baseOptions;
3244
+ if (configuration) {
3245
+ baseOptions = configuration.baseOptions;
3246
+ }
3247
+
3248
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3249
+ const localVarHeaderParameter = {} as any;
3250
+ const localVarQueryParameter = {} as any;
3251
+
3252
+ // authentication oauth2 required
3253
+ // oauth required
3254
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3255
+
3256
+
3257
+
3258
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3259
+
3260
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3261
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3262
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3263
+ localVarRequestOptions.data = serializeDataIfNeeded(updatePolicyCommand, localVarRequestOptions, configuration)
3264
+
3265
+ return {
3266
+ url: toPathString(localVarUrlObj),
3267
+ options: localVarRequestOptions,
3268
+ };
3269
+ },
3270
+ /**
3271
+ *
3272
+ * @summary Reactive policy
3273
+ * @param {string} hospitalId
3274
+ * @param {string} policyId
3275
+ * @param {*} [options] Override http request option.
3276
+ * @throws {RequiredError}
3277
+ */
3278
+ apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut: async (hospitalId: string, policyId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3279
+ // verify required parameter 'hospitalId' is not null or undefined
3280
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut', 'hospitalId', hospitalId)
3281
+ // verify required parameter 'policyId' is not null or undefined
3282
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut', 'policyId', policyId)
3283
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/policies/{policyId}/reactive`
3284
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
3285
+ .replace(`{${"policyId"}}`, encodeURIComponent(String(policyId)));
3286
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3287
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3288
+ let baseOptions;
3289
+ if (configuration) {
3290
+ baseOptions = configuration.baseOptions;
3291
+ }
3292
+
3293
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
3294
+ const localVarHeaderParameter = {} as any;
3295
+ const localVarQueryParameter = {} as any;
3296
+
3297
+ // authentication oauth2 required
3298
+ // oauth required
3299
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3300
+
3301
+
3302
+
3303
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3304
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3305
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3306
+
3307
+ return {
3308
+ url: toPathString(localVarUrlObj),
3309
+ options: localVarRequestOptions,
3310
+ };
3311
+ },
3312
+ /**
3313
+ *
3314
+ * @summary Create policy
3315
+ * @param {string} hospitalId
3316
+ * @param {CreatePolicyCommand} [createPolicyCommand]
3317
+ * @param {*} [options] Override http request option.
3318
+ * @throws {RequiredError}
3319
+ */
3320
+ apiV1HospitalsHospitalIdPoliciesPost: async (hospitalId: string, createPolicyCommand?: CreatePolicyCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3321
+ // verify required parameter 'hospitalId' is not null or undefined
3322
+ assertParamExists('apiV1HospitalsHospitalIdPoliciesPost', 'hospitalId', hospitalId)
3323
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/policies`
3324
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
3325
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3326
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3327
+ let baseOptions;
3328
+ if (configuration) {
3329
+ baseOptions = configuration.baseOptions;
3330
+ }
3331
+
3332
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
3333
+ const localVarHeaderParameter = {} as any;
3334
+ const localVarQueryParameter = {} as any;
3335
+
3336
+ // authentication oauth2 required
3337
+ // oauth required
3338
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3339
+
3340
+
3341
+
3342
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3343
+
3344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3346
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
3347
+ localVarRequestOptions.data = serializeDataIfNeeded(createPolicyCommand, localVarRequestOptions, configuration)
3348
+
3349
+ return {
3350
+ url: toPathString(localVarUrlObj),
3351
+ options: localVarRequestOptions,
3352
+ };
3353
+ },
2817
3354
  /**
2818
3355
  *
2819
3356
  * @summary Update Hospital.
@@ -6125,20 +6662,84 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
6125
6662
  * @param {*} [options] Override http request option.
6126
6663
  * @throws {RequiredError}
6127
6664
  */
6128
- async apiV1HospitalsHospitalIdEvaluationsGet(hospitalId: string, id?: string, name?: string, stars?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalEvaluationsModel>> {
6129
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdEvaluationsGet(hospitalId, id, name, stars, page, limit, lastRetrieved, options);
6665
+ async apiV1HospitalsHospitalIdEvaluationsGet(hospitalId: string, id?: string, name?: string, stars?: number, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalEvaluationsModel>> {
6666
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdEvaluationsGet(hospitalId, id, name, stars, page, limit, lastRetrieved, options);
6667
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6668
+ },
6669
+ /**
6670
+ *
6671
+ * @summary Create HospitalEvaluation.
6672
+ * @param {string} hospitalId
6673
+ * @param {CreateHospitalEvaluationCommand} [createHospitalEvaluationCommand]
6674
+ * @param {*} [options] Override http request option.
6675
+ * @throws {RequiredError}
6676
+ */
6677
+ async apiV1HospitalsHospitalIdEvaluationsPost(hospitalId: string, createHospitalEvaluationCommand?: CreateHospitalEvaluationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalEvaluationModel>> {
6678
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdEvaluationsPost(hospitalId, createHospitalEvaluationCommand, options);
6679
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6680
+ },
6681
+ /**
6682
+ *
6683
+ * @summary Get footerNavigationItems
6684
+ * @param {string} hospitalId
6685
+ * @param {string} languageCode
6686
+ * @param {*} [options] Override http request option.
6687
+ * @throws {RequiredError}
6688
+ */
6689
+ async apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FooterNavigationItemModel>>> {
6690
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options);
6691
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6692
+ },
6693
+ /**
6694
+ *
6695
+ * @summary Delete footerNavigationItem
6696
+ * @param {string} hospitalId
6697
+ * @param {string} languageCode
6698
+ * @param {string} id
6699
+ * @param {*} [options] Override http request option.
6700
+ * @throws {RequiredError}
6701
+ */
6702
+ async apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(hospitalId: string, languageCode: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
6703
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(hospitalId, languageCode, id, options);
6704
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6705
+ },
6706
+ /**
6707
+ *
6708
+ * @summary Get footerNavigationItem by Id
6709
+ * @param {string} hospitalId
6710
+ * @param {string} languageCode
6711
+ * @param {string} id
6712
+ * @param {*} [options] Override http request option.
6713
+ * @throws {RequiredError}
6714
+ */
6715
+ async apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(hospitalId: string, languageCode: string, id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FooterNavigationItemModel>> {
6716
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(hospitalId, languageCode, id, options);
6717
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6718
+ },
6719
+ /**
6720
+ *
6721
+ * @summary Get footerNavigationItems by ParentId
6722
+ * @param {string} hospitalId
6723
+ * @param {string} languageCode
6724
+ * @param {string} parentId
6725
+ * @param {*} [options] Override http request option.
6726
+ * @throws {RequiredError}
6727
+ */
6728
+ async apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(hospitalId: string, languageCode: string, parentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<FooterNavigationItemModel>>> {
6729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(hospitalId, languageCode, parentId, options);
6130
6730
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6131
6731
  },
6132
6732
  /**
6133
6733
  *
6134
- * @summary Create HospitalEvaluation.
6734
+ * @summary Save footerNavigationItem
6135
6735
  * @param {string} hospitalId
6136
- * @param {CreateHospitalEvaluationCommand} [createHospitalEvaluationCommand]
6736
+ * @param {string} languageCode
6737
+ * @param {SaveFooterNavigationsCommand} [saveFooterNavigationsCommand]
6137
6738
  * @param {*} [options] Override http request option.
6138
6739
  * @throws {RequiredError}
6139
6740
  */
6140
- async apiV1HospitalsHospitalIdEvaluationsPost(hospitalId: string, createHospitalEvaluationCommand?: CreateHospitalEvaluationCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalEvaluationModel>> {
6141
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdEvaluationsPost(hospitalId, createHospitalEvaluationCommand, options);
6741
+ async apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(hospitalId: string, languageCode: string, saveFooterNavigationsCommand?: SaveFooterNavigationsCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<FooterNavigationItemModel>> {
6742
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(hospitalId, languageCode, saveFooterNavigationsCommand, options);
6142
6743
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6143
6744
  },
6144
6745
  /**
@@ -6432,6 +7033,87 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
6432
7033
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options);
6433
7034
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
6434
7035
  },
7036
+ /**
7037
+ *
7038
+ * @summary Get all policies
7039
+ * @param {string} hospitalId
7040
+ * @param {string} [name]
7041
+ * @param {string} [slug]
7042
+ * @param {string} [languageCode]
7043
+ * @param {boolean} [showHidden]
7044
+ * @param {number} [page]
7045
+ * @param {number} [limit]
7046
+ * @param {Date} [lastRetrieved]
7047
+ * @param {*} [options] Override http request option.
7048
+ * @throws {RequiredError}
7049
+ */
7050
+ async apiV1HospitalsHospitalIdPoliciesGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PoliciesModel>> {
7051
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options);
7052
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7053
+ },
7054
+ /**
7055
+ *
7056
+ * @summary Delete policy
7057
+ * @param {string} hospitalId
7058
+ * @param {string} policyId
7059
+ * @param {boolean} [isPermanent]
7060
+ * @param {*} [options] Override http request option.
7061
+ * @throws {RequiredError}
7062
+ */
7063
+ async apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(hospitalId: string, policyId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
7064
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(hospitalId, policyId, isPermanent, options);
7065
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7066
+ },
7067
+ /**
7068
+ *
7069
+ * @summary Get policy
7070
+ * @param {string} hospitalId
7071
+ * @param {string} policyId
7072
+ * @param {string} [languageCode]
7073
+ * @param {*} [options] Override http request option.
7074
+ * @throws {RequiredError}
7075
+ */
7076
+ async apiV1HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId: string, policyId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
7077
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options);
7078
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7079
+ },
7080
+ /**
7081
+ *
7082
+ * @summary Update policy
7083
+ * @param {string} hospitalId
7084
+ * @param {string} policyId
7085
+ * @param {UpdatePolicyCommand} [updatePolicyCommand]
7086
+ * @param {*} [options] Override http request option.
7087
+ * @throws {RequiredError}
7088
+ */
7089
+ async apiV1HospitalsHospitalIdPoliciesPolicyIdPut(hospitalId: string, policyId: string, updatePolicyCommand?: UpdatePolicyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
7090
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdPut(hospitalId, policyId, updatePolicyCommand, options);
7091
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7092
+ },
7093
+ /**
7094
+ *
7095
+ * @summary Reactive policy
7096
+ * @param {string} hospitalId
7097
+ * @param {string} policyId
7098
+ * @param {*} [options] Override http request option.
7099
+ * @throws {RequiredError}
7100
+ */
7101
+ async apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(hospitalId: string, policyId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
7102
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(hospitalId, policyId, options);
7103
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7104
+ },
7105
+ /**
7106
+ *
7107
+ * @summary Create policy
7108
+ * @param {string} hospitalId
7109
+ * @param {CreatePolicyCommand} [createPolicyCommand]
7110
+ * @param {*} [options] Override http request option.
7111
+ * @throws {RequiredError}
7112
+ */
7113
+ async apiV1HospitalsHospitalIdPoliciesPost(hospitalId: string, createPolicyCommand?: CreatePolicyCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PolicyModel>> {
7114
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdPoliciesPost(hospitalId, createPolicyCommand, options);
7115
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
7116
+ },
6435
7117
  /**
6436
7118
  *
6437
7119
  * @summary Update Hospital.
@@ -7595,6 +8277,65 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
7595
8277
  apiV1HospitalsHospitalIdEvaluationsPost(hospitalId: string, createHospitalEvaluationCommand?: CreateHospitalEvaluationCommand, options?: any): AxiosPromise<HospitalEvaluationModel> {
7596
8278
  return localVarFp.apiV1HospitalsHospitalIdEvaluationsPost(hospitalId, createHospitalEvaluationCommand, options).then((request) => request(axios, basePath));
7597
8279
  },
8280
+ /**
8281
+ *
8282
+ * @summary Get footerNavigationItems
8283
+ * @param {string} hospitalId
8284
+ * @param {string} languageCode
8285
+ * @param {*} [options] Override http request option.
8286
+ * @throws {RequiredError}
8287
+ */
8288
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId: string, languageCode: string, options?: any): AxiosPromise<Array<FooterNavigationItemModel>> {
8289
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(hospitalId, languageCode, options).then((request) => request(axios, basePath));
8290
+ },
8291
+ /**
8292
+ *
8293
+ * @summary Delete footerNavigationItem
8294
+ * @param {string} hospitalId
8295
+ * @param {string} languageCode
8296
+ * @param {string} id
8297
+ * @param {*} [options] Override http request option.
8298
+ * @throws {RequiredError}
8299
+ */
8300
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(hospitalId: string, languageCode: string, id: string, options?: any): AxiosPromise<boolean> {
8301
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(hospitalId, languageCode, id, options).then((request) => request(axios, basePath));
8302
+ },
8303
+ /**
8304
+ *
8305
+ * @summary Get footerNavigationItem by Id
8306
+ * @param {string} hospitalId
8307
+ * @param {string} languageCode
8308
+ * @param {string} id
8309
+ * @param {*} [options] Override http request option.
8310
+ * @throws {RequiredError}
8311
+ */
8312
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(hospitalId: string, languageCode: string, id: string, options?: any): AxiosPromise<FooterNavigationItemModel> {
8313
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(hospitalId, languageCode, id, options).then((request) => request(axios, basePath));
8314
+ },
8315
+ /**
8316
+ *
8317
+ * @summary Get footerNavigationItems by ParentId
8318
+ * @param {string} hospitalId
8319
+ * @param {string} languageCode
8320
+ * @param {string} parentId
8321
+ * @param {*} [options] Override http request option.
8322
+ * @throws {RequiredError}
8323
+ */
8324
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(hospitalId: string, languageCode: string, parentId: string, options?: any): AxiosPromise<Array<FooterNavigationItemModel>> {
8325
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(hospitalId, languageCode, parentId, options).then((request) => request(axios, basePath));
8326
+ },
8327
+ /**
8328
+ *
8329
+ * @summary Save footerNavigationItem
8330
+ * @param {string} hospitalId
8331
+ * @param {string} languageCode
8332
+ * @param {SaveFooterNavigationsCommand} [saveFooterNavigationsCommand]
8333
+ * @param {*} [options] Override http request option.
8334
+ * @throws {RequiredError}
8335
+ */
8336
+ apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(hospitalId: string, languageCode: string, saveFooterNavigationsCommand?: SaveFooterNavigationsCommand, options?: any): AxiosPromise<FooterNavigationItemModel> {
8337
+ return localVarFp.apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(hospitalId, languageCode, saveFooterNavigationsCommand, options).then((request) => request(axios, basePath));
8338
+ },
7598
8339
  /**
7599
8340
  *
7600
8341
  * @summary Get Hospital.
@@ -7864,6 +8605,81 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
7864
8605
  apiV1HospitalsHospitalIdMediasPost(hospitalId: string, createMediaCommand?: CreateMediaCommand, options?: any): AxiosPromise<MediaModel> {
7865
8606
  return localVarFp.apiV1HospitalsHospitalIdMediasPost(hospitalId, createMediaCommand, options).then((request) => request(axios, basePath));
7866
8607
  },
8608
+ /**
8609
+ *
8610
+ * @summary Get all policies
8611
+ * @param {string} hospitalId
8612
+ * @param {string} [name]
8613
+ * @param {string} [slug]
8614
+ * @param {string} [languageCode]
8615
+ * @param {boolean} [showHidden]
8616
+ * @param {number} [page]
8617
+ * @param {number} [limit]
8618
+ * @param {Date} [lastRetrieved]
8619
+ * @param {*} [options] Override http request option.
8620
+ * @throws {RequiredError}
8621
+ */
8622
+ apiV1HospitalsHospitalIdPoliciesGet(hospitalId: string, name?: string, slug?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<PoliciesModel> {
8623
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesGet(hospitalId, name, slug, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
8624
+ },
8625
+ /**
8626
+ *
8627
+ * @summary Delete policy
8628
+ * @param {string} hospitalId
8629
+ * @param {string} policyId
8630
+ * @param {boolean} [isPermanent]
8631
+ * @param {*} [options] Override http request option.
8632
+ * @throws {RequiredError}
8633
+ */
8634
+ apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(hospitalId: string, policyId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
8635
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(hospitalId, policyId, isPermanent, options).then((request) => request(axios, basePath));
8636
+ },
8637
+ /**
8638
+ *
8639
+ * @summary Get policy
8640
+ * @param {string} hospitalId
8641
+ * @param {string} policyId
8642
+ * @param {string} [languageCode]
8643
+ * @param {*} [options] Override http request option.
8644
+ * @throws {RequiredError}
8645
+ */
8646
+ apiV1HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId: string, policyId: string, languageCode?: string, options?: any): AxiosPromise<PolicyModel> {
8647
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdGet(hospitalId, policyId, languageCode, options).then((request) => request(axios, basePath));
8648
+ },
8649
+ /**
8650
+ *
8651
+ * @summary Update policy
8652
+ * @param {string} hospitalId
8653
+ * @param {string} policyId
8654
+ * @param {UpdatePolicyCommand} [updatePolicyCommand]
8655
+ * @param {*} [options] Override http request option.
8656
+ * @throws {RequiredError}
8657
+ */
8658
+ apiV1HospitalsHospitalIdPoliciesPolicyIdPut(hospitalId: string, policyId: string, updatePolicyCommand?: UpdatePolicyCommand, options?: any): AxiosPromise<PolicyModel> {
8659
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdPut(hospitalId, policyId, updatePolicyCommand, options).then((request) => request(axios, basePath));
8660
+ },
8661
+ /**
8662
+ *
8663
+ * @summary Reactive policy
8664
+ * @param {string} hospitalId
8665
+ * @param {string} policyId
8666
+ * @param {*} [options] Override http request option.
8667
+ * @throws {RequiredError}
8668
+ */
8669
+ apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(hospitalId: string, policyId: string, options?: any): AxiosPromise<boolean> {
8670
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(hospitalId, policyId, options).then((request) => request(axios, basePath));
8671
+ },
8672
+ /**
8673
+ *
8674
+ * @summary Create policy
8675
+ * @param {string} hospitalId
8676
+ * @param {CreatePolicyCommand} [createPolicyCommand]
8677
+ * @param {*} [options] Override http request option.
8678
+ * @throws {RequiredError}
8679
+ */
8680
+ apiV1HospitalsHospitalIdPoliciesPost(hospitalId: string, createPolicyCommand?: CreatePolicyCommand, options?: any): AxiosPromise<PolicyModel> {
8681
+ return localVarFp.apiV1HospitalsHospitalIdPoliciesPost(hospitalId, createPolicyCommand, options).then((request) => request(axios, basePath));
8682
+ },
7867
8683
  /**
7868
8684
  *
7869
8685
  * @summary Update Hospital.
@@ -9590,42 +10406,175 @@ export interface HospitalsApiApiV1HospitalsHospitalIdEvaluationsGetRequest {
9590
10406
  * @type {number}
9591
10407
  * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsGet
9592
10408
  */
9593
- readonly page?: number
10409
+ readonly page?: number
10410
+
10411
+ /**
10412
+ *
10413
+ * @type {number}
10414
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsGet
10415
+ */
10416
+ readonly limit?: number
10417
+
10418
+ /**
10419
+ *
10420
+ * @type {Date}
10421
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsGet
10422
+ */
10423
+ readonly lastRetrieved?: Date
10424
+ }
10425
+
10426
+ /**
10427
+ * Request parameters for apiV1HospitalsHospitalIdEvaluationsPost operation in HospitalsApi.
10428
+ * @export
10429
+ * @interface HospitalsApiApiV1HospitalsHospitalIdEvaluationsPostRequest
10430
+ */
10431
+ export interface HospitalsApiApiV1HospitalsHospitalIdEvaluationsPostRequest {
10432
+ /**
10433
+ *
10434
+ * @type {string}
10435
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsPost
10436
+ */
10437
+ readonly hospitalId: string
10438
+
10439
+ /**
10440
+ *
10441
+ * @type {CreateHospitalEvaluationCommand}
10442
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsPost
10443
+ */
10444
+ readonly createHospitalEvaluationCommand?: CreateHospitalEvaluationCommand
10445
+ }
10446
+
10447
+ /**
10448
+ * Request parameters for apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet operation in HospitalsApi.
10449
+ * @export
10450
+ * @interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest
10451
+ */
10452
+ export interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest {
10453
+ /**
10454
+ *
10455
+ * @type {string}
10456
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet
10457
+ */
10458
+ readonly hospitalId: string
10459
+
10460
+ /**
10461
+ *
10462
+ * @type {string}
10463
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet
10464
+ */
10465
+ readonly languageCode: string
10466
+ }
10467
+
10468
+ /**
10469
+ * Request parameters for apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete operation in HospitalsApi.
10470
+ * @export
10471
+ * @interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDeleteRequest
10472
+ */
10473
+ export interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDeleteRequest {
10474
+ /**
10475
+ *
10476
+ * @type {string}
10477
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete
10478
+ */
10479
+ readonly hospitalId: string
10480
+
10481
+ /**
10482
+ *
10483
+ * @type {string}
10484
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete
10485
+ */
10486
+ readonly languageCode: string
10487
+
10488
+ /**
10489
+ *
10490
+ * @type {string}
10491
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete
10492
+ */
10493
+ readonly id: string
10494
+ }
10495
+
10496
+ /**
10497
+ * Request parameters for apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet operation in HospitalsApi.
10498
+ * @export
10499
+ * @interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGetRequest
10500
+ */
10501
+ export interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGetRequest {
10502
+ /**
10503
+ *
10504
+ * @type {string}
10505
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet
10506
+ */
10507
+ readonly hospitalId: string
10508
+
10509
+ /**
10510
+ *
10511
+ * @type {string}
10512
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet
10513
+ */
10514
+ readonly languageCode: string
10515
+
10516
+ /**
10517
+ *
10518
+ * @type {string}
10519
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet
10520
+ */
10521
+ readonly id: string
10522
+ }
10523
+
10524
+ /**
10525
+ * Request parameters for apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet operation in HospitalsApi.
10526
+ * @export
10527
+ * @interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGetRequest
10528
+ */
10529
+ export interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGetRequest {
10530
+ /**
10531
+ *
10532
+ * @type {string}
10533
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet
10534
+ */
10535
+ readonly hospitalId: string
9594
10536
 
9595
10537
  /**
9596
10538
  *
9597
- * @type {number}
9598
- * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsGet
10539
+ * @type {string}
10540
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet
9599
10541
  */
9600
- readonly limit?: number
10542
+ readonly languageCode: string
9601
10543
 
9602
10544
  /**
9603
10545
  *
9604
- * @type {Date}
9605
- * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsGet
10546
+ * @type {string}
10547
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet
9606
10548
  */
9607
- readonly lastRetrieved?: Date
10549
+ readonly parentId: string
9608
10550
  }
9609
10551
 
9610
10552
  /**
9611
- * Request parameters for apiV1HospitalsHospitalIdEvaluationsPost operation in HospitalsApi.
10553
+ * Request parameters for apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost operation in HospitalsApi.
9612
10554
  * @export
9613
- * @interface HospitalsApiApiV1HospitalsHospitalIdEvaluationsPostRequest
10555
+ * @interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePostRequest
9614
10556
  */
9615
- export interface HospitalsApiApiV1HospitalsHospitalIdEvaluationsPostRequest {
10557
+ export interface HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePostRequest {
9616
10558
  /**
9617
10559
  *
9618
10560
  * @type {string}
9619
- * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsPost
10561
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePost
9620
10562
  */
9621
10563
  readonly hospitalId: string
9622
10564
 
9623
10565
  /**
9624
10566
  *
9625
- * @type {CreateHospitalEvaluationCommand}
9626
- * @memberof HospitalsApiApiV1HospitalsHospitalIdEvaluationsPost
10567
+ * @type {string}
10568
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePost
9627
10569
  */
9628
- readonly createHospitalEvaluationCommand?: CreateHospitalEvaluationCommand
10570
+ readonly languageCode: string
10571
+
10572
+ /**
10573
+ *
10574
+ * @type {SaveFooterNavigationsCommand}
10575
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePost
10576
+ */
10577
+ readonly saveFooterNavigationsCommand?: SaveFooterNavigationsCommand
9629
10578
  }
9630
10579
 
9631
10580
  /**
@@ -10279,6 +11228,195 @@ export interface HospitalsApiApiV1HospitalsHospitalIdMediasPostRequest {
10279
11228
  readonly createMediaCommand?: CreateMediaCommand
10280
11229
  }
10281
11230
 
11231
+ /**
11232
+ * Request parameters for apiV1HospitalsHospitalIdPoliciesGet operation in HospitalsApi.
11233
+ * @export
11234
+ * @interface HospitalsApiApiV1HospitalsHospitalIdPoliciesGetRequest
11235
+ */
11236
+ export interface HospitalsApiApiV1HospitalsHospitalIdPoliciesGetRequest {
11237
+ /**
11238
+ *
11239
+ * @type {string}
11240
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11241
+ */
11242
+ readonly hospitalId: string
11243
+
11244
+ /**
11245
+ *
11246
+ * @type {string}
11247
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11248
+ */
11249
+ readonly name?: string
11250
+
11251
+ /**
11252
+ *
11253
+ * @type {string}
11254
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11255
+ */
11256
+ readonly slug?: string
11257
+
11258
+ /**
11259
+ *
11260
+ * @type {string}
11261
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11262
+ */
11263
+ readonly languageCode?: string
11264
+
11265
+ /**
11266
+ *
11267
+ * @type {boolean}
11268
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11269
+ */
11270
+ readonly showHidden?: boolean
11271
+
11272
+ /**
11273
+ *
11274
+ * @type {number}
11275
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11276
+ */
11277
+ readonly page?: number
11278
+
11279
+ /**
11280
+ *
11281
+ * @type {number}
11282
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11283
+ */
11284
+ readonly limit?: number
11285
+
11286
+ /**
11287
+ *
11288
+ * @type {Date}
11289
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesGet
11290
+ */
11291
+ readonly lastRetrieved?: Date
11292
+ }
11293
+
11294
+ /**
11295
+ * Request parameters for apiV1HospitalsHospitalIdPoliciesPolicyIdDelete operation in HospitalsApi.
11296
+ * @export
11297
+ * @interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDeleteRequest
11298
+ */
11299
+ export interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDeleteRequest {
11300
+ /**
11301
+ *
11302
+ * @type {string}
11303
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDelete
11304
+ */
11305
+ readonly hospitalId: string
11306
+
11307
+ /**
11308
+ *
11309
+ * @type {string}
11310
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDelete
11311
+ */
11312
+ readonly policyId: string
11313
+
11314
+ /**
11315
+ *
11316
+ * @type {boolean}
11317
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDelete
11318
+ */
11319
+ readonly isPermanent?: boolean
11320
+ }
11321
+
11322
+ /**
11323
+ * Request parameters for apiV1HospitalsHospitalIdPoliciesPolicyIdGet operation in HospitalsApi.
11324
+ * @export
11325
+ * @interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGetRequest
11326
+ */
11327
+ export interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGetRequest {
11328
+ /**
11329
+ *
11330
+ * @type {string}
11331
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGet
11332
+ */
11333
+ readonly hospitalId: string
11334
+
11335
+ /**
11336
+ *
11337
+ * @type {string}
11338
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGet
11339
+ */
11340
+ readonly policyId: string
11341
+
11342
+ /**
11343
+ *
11344
+ * @type {string}
11345
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGet
11346
+ */
11347
+ readonly languageCode?: string
11348
+ }
11349
+
11350
+ /**
11351
+ * Request parameters for apiV1HospitalsHospitalIdPoliciesPolicyIdPut operation in HospitalsApi.
11352
+ * @export
11353
+ * @interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPutRequest
11354
+ */
11355
+ export interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPutRequest {
11356
+ /**
11357
+ *
11358
+ * @type {string}
11359
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPut
11360
+ */
11361
+ readonly hospitalId: string
11362
+
11363
+ /**
11364
+ *
11365
+ * @type {string}
11366
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPut
11367
+ */
11368
+ readonly policyId: string
11369
+
11370
+ /**
11371
+ *
11372
+ * @type {UpdatePolicyCommand}
11373
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPut
11374
+ */
11375
+ readonly updatePolicyCommand?: UpdatePolicyCommand
11376
+ }
11377
+
11378
+ /**
11379
+ * Request parameters for apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut operation in HospitalsApi.
11380
+ * @export
11381
+ * @interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePutRequest
11382
+ */
11383
+ export interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePutRequest {
11384
+ /**
11385
+ *
11386
+ * @type {string}
11387
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut
11388
+ */
11389
+ readonly hospitalId: string
11390
+
11391
+ /**
11392
+ *
11393
+ * @type {string}
11394
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut
11395
+ */
11396
+ readonly policyId: string
11397
+ }
11398
+
11399
+ /**
11400
+ * Request parameters for apiV1HospitalsHospitalIdPoliciesPost operation in HospitalsApi.
11401
+ * @export
11402
+ * @interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPostRequest
11403
+ */
11404
+ export interface HospitalsApiApiV1HospitalsHospitalIdPoliciesPostRequest {
11405
+ /**
11406
+ *
11407
+ * @type {string}
11408
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPost
11409
+ */
11410
+ readonly hospitalId: string
11411
+
11412
+ /**
11413
+ *
11414
+ * @type {CreatePolicyCommand}
11415
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdPoliciesPost
11416
+ */
11417
+ readonly createPolicyCommand?: CreatePolicyCommand
11418
+ }
11419
+
10282
11420
  /**
10283
11421
  * Request parameters for apiV1HospitalsHospitalIdPut operation in HospitalsApi.
10284
11422
  * @export
@@ -12711,6 +13849,66 @@ export class HospitalsApi extends BaseAPI {
12711
13849
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdEvaluationsPost(requestParameters.hospitalId, requestParameters.createHospitalEvaluationCommand, options).then((request) => request(this.axios, this.basePath));
12712
13850
  }
12713
13851
 
13852
+ /**
13853
+ *
13854
+ * @summary Get footerNavigationItems
13855
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest} requestParameters Request parameters.
13856
+ * @param {*} [options] Override http request option.
13857
+ * @throws {RequiredError}
13858
+ * @memberof HospitalsApi
13859
+ */
13860
+ public apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeGetRequest, options?: AxiosRequestConfig) {
13861
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeGet(requestParameters.hospitalId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
13862
+ }
13863
+
13864
+ /**
13865
+ *
13866
+ * @summary Delete footerNavigationItem
13867
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDeleteRequest} requestParameters Request parameters.
13868
+ * @param {*} [options] Override http request option.
13869
+ * @throws {RequiredError}
13870
+ * @memberof HospitalsApi
13871
+ */
13872
+ public apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(requestParameters: HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDeleteRequest, options?: AxiosRequestConfig) {
13873
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdDelete(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
13874
+ }
13875
+
13876
+ /**
13877
+ *
13878
+ * @summary Get footerNavigationItem by Id
13879
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGetRequest} requestParameters Request parameters.
13880
+ * @param {*} [options] Override http request option.
13881
+ * @throws {RequiredError}
13882
+ * @memberof HospitalsApi
13883
+ */
13884
+ public apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGetRequest, options?: AxiosRequestConfig) {
13885
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeIdGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.id, options).then((request) => request(this.axios, this.basePath));
13886
+ }
13887
+
13888
+ /**
13889
+ *
13890
+ * @summary Get footerNavigationItems by ParentId
13891
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGetRequest} requestParameters Request parameters.
13892
+ * @param {*} [options] Override http request option.
13893
+ * @throws {RequiredError}
13894
+ * @memberof HospitalsApi
13895
+ */
13896
+ public apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGetRequest, options?: AxiosRequestConfig) {
13897
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodeParentIdSubitemsGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.parentId, options).then((request) => request(this.axios, this.basePath));
13898
+ }
13899
+
13900
+ /**
13901
+ *
13902
+ * @summary Save footerNavigationItem
13903
+ * @param {HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePostRequest} requestParameters Request parameters.
13904
+ * @param {*} [options] Override http request option.
13905
+ * @throws {RequiredError}
13906
+ * @memberof HospitalsApi
13907
+ */
13908
+ public apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(requestParameters: HospitalsApiApiV1HospitalsHospitalIdFooternavigationsLanguageCodePostRequest, options?: AxiosRequestConfig) {
13909
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdFooternavigationsLanguageCodePost(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.saveFooterNavigationsCommand, options).then((request) => request(this.axios, this.basePath));
13910
+ }
13911
+
12714
13912
  /**
12715
13913
  *
12716
13914
  * @summary Get Hospital.
@@ -12975,6 +14173,78 @@ export class HospitalsApi extends BaseAPI {
12975
14173
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdMediasPost(requestParameters.hospitalId, requestParameters.createMediaCommand, options).then((request) => request(this.axios, this.basePath));
12976
14174
  }
12977
14175
 
14176
+ /**
14177
+ *
14178
+ * @summary Get all policies
14179
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesGetRequest} requestParameters Request parameters.
14180
+ * @param {*} [options] Override http request option.
14181
+ * @throws {RequiredError}
14182
+ * @memberof HospitalsApi
14183
+ */
14184
+ public apiV1HospitalsHospitalIdPoliciesGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdPoliciesGetRequest, options?: AxiosRequestConfig) {
14185
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPoliciesGet(requestParameters.hospitalId, requestParameters.name, requestParameters.slug, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
14186
+ }
14187
+
14188
+ /**
14189
+ *
14190
+ * @summary Delete policy
14191
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDeleteRequest} requestParameters Request parameters.
14192
+ * @param {*} [options] Override http request option.
14193
+ * @throws {RequiredError}
14194
+ * @memberof HospitalsApi
14195
+ */
14196
+ public apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(requestParameters: HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdDeleteRequest, options?: AxiosRequestConfig) {
14197
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdDelete(requestParameters.hospitalId, requestParameters.policyId, requestParameters.isPermanent, options).then((request) => request(this.axios, this.basePath));
14198
+ }
14199
+
14200
+ /**
14201
+ *
14202
+ * @summary Get policy
14203
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGetRequest} requestParameters Request parameters.
14204
+ * @param {*} [options] Override http request option.
14205
+ * @throws {RequiredError}
14206
+ * @memberof HospitalsApi
14207
+ */
14208
+ public apiV1HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdGetRequest, options?: AxiosRequestConfig) {
14209
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdGet(requestParameters.hospitalId, requestParameters.policyId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
14210
+ }
14211
+
14212
+ /**
14213
+ *
14214
+ * @summary Update policy
14215
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPutRequest} requestParameters Request parameters.
14216
+ * @param {*} [options] Override http request option.
14217
+ * @throws {RequiredError}
14218
+ * @memberof HospitalsApi
14219
+ */
14220
+ public apiV1HospitalsHospitalIdPoliciesPolicyIdPut(requestParameters: HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdPutRequest, options?: AxiosRequestConfig) {
14221
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdPut(requestParameters.hospitalId, requestParameters.policyId, requestParameters.updatePolicyCommand, options).then((request) => request(this.axios, this.basePath));
14222
+ }
14223
+
14224
+ /**
14225
+ *
14226
+ * @summary Reactive policy
14227
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePutRequest} requestParameters Request parameters.
14228
+ * @param {*} [options] Override http request option.
14229
+ * @throws {RequiredError}
14230
+ * @memberof HospitalsApi
14231
+ */
14232
+ public apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(requestParameters: HospitalsApiApiV1HospitalsHospitalIdPoliciesPolicyIdReactivePutRequest, options?: AxiosRequestConfig) {
14233
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPoliciesPolicyIdReactivePut(requestParameters.hospitalId, requestParameters.policyId, options).then((request) => request(this.axios, this.basePath));
14234
+ }
14235
+
14236
+ /**
14237
+ *
14238
+ * @summary Create policy
14239
+ * @param {HospitalsApiApiV1HospitalsHospitalIdPoliciesPostRequest} requestParameters Request parameters.
14240
+ * @param {*} [options] Override http request option.
14241
+ * @throws {RequiredError}
14242
+ * @memberof HospitalsApi
14243
+ */
14244
+ public apiV1HospitalsHospitalIdPoliciesPost(requestParameters: HospitalsApiApiV1HospitalsHospitalIdPoliciesPostRequest, options?: AxiosRequestConfig) {
14245
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdPoliciesPost(requestParameters.hospitalId, requestParameters.createPolicyCommand, options).then((request) => request(this.axios, this.basePath));
14246
+ }
14247
+
12978
14248
  /**
12979
14249
  *
12980
14250
  * @summary Update Hospital.