ch-admin-api-client-typescript 4.9.4 → 4.9.5

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 (228) hide show
  1. package/lib/api/appointments-api.d.ts +395 -0
  2. package/lib/api/appointments-api.d.ts.map +1 -0
  3. package/lib/api/appointments-api.js +929 -0
  4. package/lib/api/deals-api.d.ts +393 -0
  5. package/lib/api/deals-api.d.ts.map +1 -1
  6. package/lib/api/deals-api.js +912 -10
  7. package/lib/api/doctor-affiliations-api.d.ts +191 -0
  8. package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
  9. package/lib/api/doctor-affiliations-api.js +437 -0
  10. package/lib/api/hospitals-api.d.ts +611 -0
  11. package/lib/api/hospitals-api.d.ts.map +1 -1
  12. package/lib/api/hospitals-api.js +1439 -44
  13. package/lib/api/services-api.d.ts +8 -8
  14. package/lib/api/services-api.js +8 -8
  15. package/lib/api.d.ts +1 -0
  16. package/lib/api.d.ts.map +1 -1
  17. package/lib/api.js +1 -0
  18. package/lib/models/appointment-change-log-model.d.ts +44 -0
  19. package/lib/models/appointment-change-log-model.d.ts.map +1 -0
  20. package/lib/models/appointment-change-log-model.js +15 -0
  21. package/lib/models/appointment-item-model.d.ts +282 -0
  22. package/lib/models/appointment-item-model.d.ts.map +1 -0
  23. package/lib/models/appointment-item-model.js +15 -0
  24. package/lib/models/appointment-model.d.ts +302 -0
  25. package/lib/models/appointment-model.d.ts.map +1 -0
  26. package/lib/models/appointment-model.js +15 -0
  27. package/lib/models/appointment-option-model.d.ts +63 -0
  28. package/lib/models/appointment-option-model.d.ts.map +1 -0
  29. package/lib/models/appointment-option-model.js +15 -0
  30. package/lib/models/appointment-status.d.ts +27 -0
  31. package/lib/models/appointment-status.d.ts.map +1 -0
  32. package/lib/models/appointment-status.js +30 -0
  33. package/lib/models/appointment-timetable-model.d.ts +44 -0
  34. package/lib/models/appointment-timetable-model.d.ts.map +1 -0
  35. package/lib/models/appointment-timetable-model.js +15 -0
  36. package/lib/models/appointment-timetable-override-model.d.ts +56 -0
  37. package/lib/models/appointment-timetable-override-model.d.ts.map +1 -0
  38. package/lib/models/appointment-timetable-override-model.js +15 -0
  39. package/lib/models/appointment-timetable-overrides-model.d.ts +33 -0
  40. package/lib/models/appointment-timetable-overrides-model.d.ts.map +1 -0
  41. package/lib/models/appointment-timetable-overrides-model.js +15 -0
  42. package/lib/models/appointment-timetables-model.d.ts +33 -0
  43. package/lib/models/appointment-timetables-model.d.ts.map +1 -0
  44. package/lib/models/appointment-timetables-model.js +15 -0
  45. package/lib/models/appointment-type.d.ts +26 -0
  46. package/lib/models/appointment-type.d.ts.map +1 -0
  47. package/lib/models/appointment-type.js +29 -0
  48. package/lib/models/appointments-model.d.ts +33 -0
  49. package/lib/models/appointments-model.d.ts.map +1 -0
  50. package/lib/models/appointments-model.js +15 -0
  51. package/lib/models/approve-appointment-command.d.ts +31 -0
  52. package/lib/models/approve-appointment-command.d.ts.map +1 -0
  53. package/lib/models/approve-appointment-command.js +15 -0
  54. package/lib/models/batch-add-appointment-timetable-model.d.ts +38 -0
  55. package/lib/models/batch-add-appointment-timetable-model.d.ts.map +1 -0
  56. package/lib/models/batch-add-appointment-timetable-model.js +15 -0
  57. package/lib/models/batch-appointment-timetables-result-model.d.ts +38 -0
  58. package/lib/models/batch-appointment-timetables-result-model.d.ts.map +1 -0
  59. package/lib/models/batch-appointment-timetables-result-model.js +15 -0
  60. package/lib/models/batch-deal-appointment-timetables-command.d.ts +39 -0
  61. package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +1 -0
  62. package/lib/models/batch-deal-appointment-timetables-command.js +15 -0
  63. package/lib/models/batch-deal-package-appointment-timetables-command.d.ts +39 -0
  64. package/lib/models/batch-deal-package-appointment-timetables-command.d.ts.map +1 -0
  65. package/lib/models/batch-deal-package-appointment-timetables-command.js +15 -0
  66. package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts +39 -0
  67. package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts.map +1 -0
  68. package/lib/models/batch-doctor-affiliation-appointment-timetables-command.js +15 -0
  69. package/lib/models/batch-hospital-appointment-timetables-command.d.ts +39 -0
  70. package/lib/models/batch-hospital-appointment-timetables-command.d.ts.map +1 -0
  71. package/lib/models/batch-hospital-appointment-timetables-command.js +15 -0
  72. package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts +39 -0
  73. package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts.map +1 -0
  74. package/lib/models/batch-hospital-specialty-appointment-timetables-command.js +15 -0
  75. package/lib/models/batch-service-appointment-timetables-command.d.ts +39 -0
  76. package/lib/models/batch-service-appointment-timetables-command.d.ts.map +1 -0
  77. package/lib/models/batch-service-appointment-timetables-command.js +15 -0
  78. package/lib/models/batch-update-appointment-timetable-model.d.ts +44 -0
  79. package/lib/models/batch-update-appointment-timetable-model.d.ts.map +1 -0
  80. package/lib/models/batch-update-appointment-timetable-model.js +15 -0
  81. package/lib/models/create-article-command.d.ts +6 -0
  82. package/lib/models/create-article-command.d.ts.map +1 -1
  83. package/lib/models/create-deal-command.d.ts +7 -0
  84. package/lib/models/create-deal-command.d.ts.map +1 -1
  85. package/lib/models/create-deal-package-command.d.ts +7 -0
  86. package/lib/models/create-deal-package-command.d.ts.map +1 -1
  87. package/lib/models/create-doctor-affiliation-command.d.ts +7 -0
  88. package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
  89. package/lib/models/create-hospital-command.d.ts +7 -0
  90. package/lib/models/create-hospital-command.d.ts.map +1 -1
  91. package/lib/models/create-hospital-service-command.d.ts +7 -0
  92. package/lib/models/create-hospital-service-command.d.ts.map +1 -1
  93. package/lib/models/create-hospital-specialty-command.d.ts +7 -0
  94. package/lib/models/create-hospital-specialty-command.d.ts.map +1 -1
  95. package/lib/models/deal-item-model.d.ts +7 -0
  96. package/lib/models/deal-item-model.d.ts.map +1 -1
  97. package/lib/models/deal-model.d.ts +7 -0
  98. package/lib/models/deal-model.d.ts.map +1 -1
  99. package/lib/models/deal-package-item-model.d.ts +7 -0
  100. package/lib/models/deal-package-item-model.d.ts.map +1 -1
  101. package/lib/models/deal-package-model.d.ts +7 -0
  102. package/lib/models/deal-package-model.d.ts.map +1 -1
  103. package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
  104. package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
  105. package/lib/models/doctor-affiliation-model.d.ts +7 -0
  106. package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
  107. package/lib/models/hospital-item-model.d.ts +7 -0
  108. package/lib/models/hospital-item-model.d.ts.map +1 -1
  109. package/lib/models/hospital-model.d.ts +7 -0
  110. package/lib/models/hospital-model.d.ts.map +1 -1
  111. package/lib/models/hospital-service-item-model.d.ts +7 -0
  112. package/lib/models/hospital-service-item-model.d.ts.map +1 -1
  113. package/lib/models/hospital-service-model.d.ts +7 -0
  114. package/lib/models/hospital-service-model.d.ts.map +1 -1
  115. package/lib/models/hospital-specialty-item-model.d.ts +7 -0
  116. package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
  117. package/lib/models/hospital-specialty-model.d.ts +7 -0
  118. package/lib/models/hospital-specialty-model.d.ts.map +1 -1
  119. package/lib/models/index.d.ts +30 -0
  120. package/lib/models/index.d.ts.map +1 -1
  121. package/lib/models/index.js +30 -0
  122. package/lib/models/notification-code.d.ts +9 -0
  123. package/lib/models/notification-code.d.ts.map +1 -1
  124. package/lib/models/notification-code.js +10 -1
  125. package/lib/models/reject-appointment-command.d.ts +32 -0
  126. package/lib/models/reject-appointment-command.d.ts.map +1 -0
  127. package/lib/models/reject-appointment-command.js +15 -0
  128. package/lib/models/save-appointment-timetable-override-model.d.ts +43 -0
  129. package/lib/models/save-appointment-timetable-override-model.d.ts.map +1 -0
  130. package/lib/models/save-appointment-timetable-override-model.js +15 -0
  131. package/lib/models/save-appointment-timetable-overrides-result-model.d.ts +26 -0
  132. package/lib/models/save-appointment-timetable-overrides-result-model.d.ts.map +1 -0
  133. package/lib/models/save-appointment-timetable-overrides-result-model.js +15 -0
  134. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +26 -0
  135. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +1 -0
  136. package/lib/models/save-deal-appointment-timetable-overrides-command.js +15 -0
  137. package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts +26 -0
  138. package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts.map +1 -0
  139. package/lib/models/save-deal-package-appointment-timetable-overrides-command.js +15 -0
  140. package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts +26 -0
  141. package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts.map +1 -0
  142. package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.js +15 -0
  143. package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts +26 -0
  144. package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts.map +1 -0
  145. package/lib/models/save-hospital-appointment-timetable-overrides-command.js +15 -0
  146. package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts +26 -0
  147. package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts.map +1 -0
  148. package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.js +15 -0
  149. package/lib/models/save-service-appointment-timetable-overrides-command.d.ts +26 -0
  150. package/lib/models/save-service-appointment-timetable-overrides-command.d.ts.map +1 -0
  151. package/lib/models/save-service-appointment-timetable-overrides-command.js +15 -0
  152. package/lib/models/update-deal-command.d.ts +7 -0
  153. package/lib/models/update-deal-command.d.ts.map +1 -1
  154. package/lib/models/update-deal-package-command.d.ts +7 -0
  155. package/lib/models/update-deal-package-command.d.ts.map +1 -1
  156. package/lib/models/update-doctor-affiliation-command.d.ts +7 -0
  157. package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
  158. package/lib/models/update-hospital-command.d.ts +7 -0
  159. package/lib/models/update-hospital-command.d.ts.map +1 -1
  160. package/lib/models/update-hospital-service-command.d.ts +7 -0
  161. package/lib/models/update-hospital-service-command.d.ts.map +1 -1
  162. package/lib/models/update-hospital-specialty-command.d.ts +7 -0
  163. package/lib/models/update-hospital-specialty-command.d.ts.map +1 -1
  164. package/package.json +1 -1
  165. package/src/.openapi-generator/FILES +31 -0
  166. package/src/api/appointments-api.ts +802 -0
  167. package/src/api/deals-api.ts +842 -8
  168. package/src/api/doctor-affiliations-api.ts +408 -0
  169. package/src/api/hospitals-api.ts +1412 -124
  170. package/src/api/services-api.ts +8 -8
  171. package/src/api.ts +1 -0
  172. package/src/models/appointment-change-log-model.ts +51 -0
  173. package/src/models/appointment-item-model.ts +297 -0
  174. package/src/models/appointment-model.ts +321 -0
  175. package/src/models/appointment-option-model.ts +72 -0
  176. package/src/models/appointment-status.ts +36 -0
  177. package/src/models/appointment-timetable-model.ts +51 -0
  178. package/src/models/appointment-timetable-override-model.ts +63 -0
  179. package/src/models/appointment-timetable-overrides-model.ts +42 -0
  180. package/src/models/appointment-timetables-model.ts +42 -0
  181. package/src/models/appointment-type.ts +35 -0
  182. package/src/models/appointments-model.ts +42 -0
  183. package/src/models/approve-appointment-command.ts +36 -0
  184. package/src/models/batch-add-appointment-timetable-model.ts +45 -0
  185. package/src/models/batch-appointment-timetables-result-model.ts +45 -0
  186. package/src/models/batch-deal-appointment-timetables-command.ts +48 -0
  187. package/src/models/batch-deal-package-appointment-timetables-command.ts +48 -0
  188. package/src/models/batch-doctor-affiliation-appointment-timetables-command.ts +48 -0
  189. package/src/models/batch-hospital-appointment-timetables-command.ts +48 -0
  190. package/src/models/batch-hospital-specialty-appointment-timetables-command.ts +48 -0
  191. package/src/models/batch-service-appointment-timetables-command.ts +48 -0
  192. package/src/models/batch-update-appointment-timetable-model.ts +51 -0
  193. package/src/models/create-article-command.ts +6 -0
  194. package/src/models/create-deal-command.ts +9 -0
  195. package/src/models/create-deal-package-command.ts +9 -0
  196. package/src/models/create-doctor-affiliation-command.ts +9 -0
  197. package/src/models/create-hospital-command.ts +9 -0
  198. package/src/models/create-hospital-service-command.ts +9 -0
  199. package/src/models/create-hospital-specialty-command.ts +9 -0
  200. package/src/models/deal-item-model.ts +9 -0
  201. package/src/models/deal-model.ts +9 -0
  202. package/src/models/deal-package-item-model.ts +9 -0
  203. package/src/models/deal-package-model.ts +9 -0
  204. package/src/models/doctor-affiliation-item-model.ts +9 -0
  205. package/src/models/doctor-affiliation-model.ts +9 -0
  206. package/src/models/hospital-item-model.ts +9 -0
  207. package/src/models/hospital-model.ts +9 -0
  208. package/src/models/hospital-service-item-model.ts +9 -0
  209. package/src/models/hospital-service-model.ts +9 -0
  210. package/src/models/hospital-specialty-item-model.ts +9 -0
  211. package/src/models/hospital-specialty-model.ts +9 -0
  212. package/src/models/index.ts +30 -0
  213. package/src/models/notification-code.ts +10 -1
  214. package/src/models/reject-appointment-command.ts +39 -0
  215. package/src/models/save-appointment-timetable-override-model.ts +48 -0
  216. package/src/models/save-appointment-timetable-overrides-result-model.ts +33 -0
  217. package/src/models/save-deal-appointment-timetable-overrides-command.ts +33 -0
  218. package/src/models/save-deal-package-appointment-timetable-overrides-command.ts +33 -0
  219. package/src/models/save-doctor-affiliation-appointment-timetable-overrides-command.ts +33 -0
  220. package/src/models/save-hospital-appointment-timetable-overrides-command.ts +33 -0
  221. package/src/models/save-hospital-specialty-appointment-timetable-overrides-command.ts +33 -0
  222. package/src/models/save-service-appointment-timetable-overrides-command.ts +33 -0
  223. package/src/models/update-deal-command.ts +9 -0
  224. package/src/models/update-deal-package-command.ts +9 -0
  225. package/src/models/update-doctor-affiliation-command.ts +9 -0
  226. package/src/models/update-hospital-command.ts +9 -0
  227. package/src/models/update-hospital-service-command.ts +9 -0
  228. package/src/models/update-hospital-specialty-command.ts +9 -0
@@ -0,0 +1,802 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { AppointmentModel } from '../models';
25
+ // @ts-ignore
26
+ import { AppointmentStatus } from '../models';
27
+ // @ts-ignore
28
+ import { AppointmentType } from '../models';
29
+ // @ts-ignore
30
+ import { AppointmentsModel } from '../models';
31
+ // @ts-ignore
32
+ import { ApproveAppointmentCommand } from '../models';
33
+ // @ts-ignore
34
+ import { RejectAppointmentCommand } from '../models';
35
+ // @ts-ignore
36
+ import { SortingOrder } from '../models';
37
+ /**
38
+ * AppointmentsApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const AppointmentsApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ *
45
+ * @summary Approve appointment
46
+ * @param {string} appointmentId
47
+ * @param {ApproveAppointmentCommand} [approveAppointmentCommand]
48
+ * @param {*} [options] Override http request option.
49
+ * @throws {RequiredError}
50
+ */
51
+ apiV1AppointmentsAppointmentIdApprovePut: async (appointmentId: string, approveAppointmentCommand?: ApproveAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
52
+ // verify required parameter 'appointmentId' is not null or undefined
53
+ assertParamExists('apiV1AppointmentsAppointmentIdApprovePut', 'appointmentId', appointmentId)
54
+ const localVarPath = `/api/v1/appointments/{appointmentId}/approve`
55
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
56
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
58
+ let baseOptions;
59
+ if (configuration) {
60
+ baseOptions = configuration.baseOptions;
61
+ }
62
+
63
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
64
+ const localVarHeaderParameter = {} as any;
65
+ const localVarQueryParameter = {} as any;
66
+
67
+ // authentication oauth2 required
68
+ // oauth required
69
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
70
+
71
+
72
+
73
+ localVarHeaderParameter['Content-Type'] = 'application/json';
74
+
75
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
76
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
77
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
78
+ localVarRequestOptions.data = serializeDataIfNeeded(approveAppointmentCommand, localVarRequestOptions, configuration)
79
+
80
+ return {
81
+ url: toPathString(localVarUrlObj),
82
+ options: localVarRequestOptions,
83
+ };
84
+ },
85
+ /**
86
+ *
87
+ * @summary Cancel appointment
88
+ * @param {string} appointmentId
89
+ * @param {*} [options] Override http request option.
90
+ * @throws {RequiredError}
91
+ */
92
+ apiV1AppointmentsAppointmentIdCancelPut: async (appointmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
93
+ // verify required parameter 'appointmentId' is not null or undefined
94
+ assertParamExists('apiV1AppointmentsAppointmentIdCancelPut', 'appointmentId', appointmentId)
95
+ const localVarPath = `/api/v1/appointments/{appointmentId}/cancel`
96
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
97
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
98
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
99
+ let baseOptions;
100
+ if (configuration) {
101
+ baseOptions = configuration.baseOptions;
102
+ }
103
+
104
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
105
+ const localVarHeaderParameter = {} as any;
106
+ const localVarQueryParameter = {} as any;
107
+
108
+ // authentication oauth2 required
109
+ // oauth required
110
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
111
+
112
+
113
+
114
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
115
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
116
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
117
+
118
+ return {
119
+ url: toPathString(localVarUrlObj),
120
+ options: localVarRequestOptions,
121
+ };
122
+ },
123
+ /**
124
+ *
125
+ * @summary Delete appointment
126
+ * @param {string} appointmentId
127
+ * @param {boolean} [isPermanent]
128
+ * @param {*} [options] Override http request option.
129
+ * @throws {RequiredError}
130
+ */
131
+ apiV1AppointmentsAppointmentIdDelete: async (appointmentId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
132
+ // verify required parameter 'appointmentId' is not null or undefined
133
+ assertParamExists('apiV1AppointmentsAppointmentIdDelete', 'appointmentId', appointmentId)
134
+ const localVarPath = `/api/v1/appointments/{appointmentId}`
135
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
136
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
137
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
138
+ let baseOptions;
139
+ if (configuration) {
140
+ baseOptions = configuration.baseOptions;
141
+ }
142
+
143
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
144
+ const localVarHeaderParameter = {} as any;
145
+ const localVarQueryParameter = {} as any;
146
+
147
+ // authentication oauth2 required
148
+ // oauth required
149
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
150
+
151
+ if (isPermanent !== undefined) {
152
+ localVarQueryParameter['isPermanent'] = isPermanent;
153
+ }
154
+
155
+
156
+
157
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
158
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
159
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
160
+
161
+ return {
162
+ url: toPathString(localVarUrlObj),
163
+ options: localVarRequestOptions,
164
+ };
165
+ },
166
+ /**
167
+ *
168
+ * @summary Get appointment by id
169
+ * @param {string} appointmentId
170
+ * @param {string} [languageCode]
171
+ * @param {*} [options] Override http request option.
172
+ * @throws {RequiredError}
173
+ */
174
+ apiV1AppointmentsAppointmentIdGet: async (appointmentId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
175
+ // verify required parameter 'appointmentId' is not null or undefined
176
+ assertParamExists('apiV1AppointmentsAppointmentIdGet', 'appointmentId', appointmentId)
177
+ const localVarPath = `/api/v1/appointments/{appointmentId}`
178
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
179
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
180
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
181
+ let baseOptions;
182
+ if (configuration) {
183
+ baseOptions = configuration.baseOptions;
184
+ }
185
+
186
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
187
+ const localVarHeaderParameter = {} as any;
188
+ const localVarQueryParameter = {} as any;
189
+
190
+ // authentication oauth2 required
191
+ // oauth required
192
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
193
+
194
+ if (languageCode !== undefined) {
195
+ localVarQueryParameter['languageCode'] = languageCode;
196
+ }
197
+
198
+
199
+
200
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
201
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
202
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
203
+
204
+ return {
205
+ url: toPathString(localVarUrlObj),
206
+ options: localVarRequestOptions,
207
+ };
208
+ },
209
+ /**
210
+ *
211
+ * @summary Set appointment paid
212
+ * @param {string} appointmentId
213
+ * @param {*} [options] Override http request option.
214
+ * @throws {RequiredError}
215
+ */
216
+ apiV1AppointmentsAppointmentIdPaidPost: async (appointmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
217
+ // verify required parameter 'appointmentId' is not null or undefined
218
+ assertParamExists('apiV1AppointmentsAppointmentIdPaidPost', 'appointmentId', appointmentId)
219
+ const localVarPath = `/api/v1/appointments/{appointmentId}/paid`
220
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
221
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
222
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
223
+ let baseOptions;
224
+ if (configuration) {
225
+ baseOptions = configuration.baseOptions;
226
+ }
227
+
228
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
229
+ const localVarHeaderParameter = {} as any;
230
+ const localVarQueryParameter = {} as any;
231
+
232
+ // authentication oauth2 required
233
+ // oauth required
234
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
235
+
236
+
237
+
238
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
239
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
240
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
241
+
242
+ return {
243
+ url: toPathString(localVarUrlObj),
244
+ options: localVarRequestOptions,
245
+ };
246
+ },
247
+ /**
248
+ *
249
+ * @summary Reject appointment
250
+ * @param {string} appointmentId
251
+ * @param {RejectAppointmentCommand} [rejectAppointmentCommand]
252
+ * @param {*} [options] Override http request option.
253
+ * @throws {RequiredError}
254
+ */
255
+ apiV1AppointmentsAppointmentIdRejectPut: async (appointmentId: string, rejectAppointmentCommand?: RejectAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
256
+ // verify required parameter 'appointmentId' is not null or undefined
257
+ assertParamExists('apiV1AppointmentsAppointmentIdRejectPut', 'appointmentId', appointmentId)
258
+ const localVarPath = `/api/v1/appointments/{appointmentId}/reject`
259
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
260
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
261
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
262
+ let baseOptions;
263
+ if (configuration) {
264
+ baseOptions = configuration.baseOptions;
265
+ }
266
+
267
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
268
+ const localVarHeaderParameter = {} as any;
269
+ const localVarQueryParameter = {} as any;
270
+
271
+ // authentication oauth2 required
272
+ // oauth required
273
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
274
+
275
+
276
+
277
+ localVarHeaderParameter['Content-Type'] = 'application/json';
278
+
279
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
280
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
281
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
282
+ localVarRequestOptions.data = serializeDataIfNeeded(rejectAppointmentCommand, localVarRequestOptions, configuration)
283
+
284
+ return {
285
+ url: toPathString(localVarUrlObj),
286
+ options: localVarRequestOptions,
287
+ };
288
+ },
289
+ /**
290
+ *
291
+ * @summary Get appointments
292
+ * @param {string} [id]
293
+ * @param {string} [userId]
294
+ * @param {string} [userName]
295
+ * @param {string} [hospitalId]
296
+ * @param {string} [hospitalName]
297
+ * @param {string} [doctorId]
298
+ * @param {string} [doctorName]
299
+ * @param {string} [dealId]
300
+ * @param {string} [dealName]
301
+ * @param {string} [dealPackageId]
302
+ * @param {string} [hospitalSpecialtyId]
303
+ * @param {string} [serviceId]
304
+ * @param {boolean} [isOpen]
305
+ * @param {boolean} [isCompleted]
306
+ * @param {AppointmentStatus} [status]
307
+ * @param {AppointmentType} [appointmentType]
308
+ * @param {SortingOrder} [sortRequestDate]
309
+ * @param {SortingOrder} [sortConfirmedDateStart]
310
+ * @param {boolean} [paymentEnabled]
311
+ * @param {string} [languageCode]
312
+ * @param {boolean} [showHidden]
313
+ * @param {boolean} [isOnline]
314
+ * @param {boolean} [isExternal]
315
+ * @param {number} [page]
316
+ * @param {number} [limit]
317
+ * @param {Date} [lastRetrieved]
318
+ * @param {*} [options] Override http request option.
319
+ * @throws {RequiredError}
320
+ */
321
+ apiV1AppointmentsGet: async (id?: string, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, paymentEnabled?: boolean, languageCode?: string, showHidden?: boolean, isOnline?: boolean, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
322
+ const localVarPath = `/api/v1/appointments`;
323
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
324
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
325
+ let baseOptions;
326
+ if (configuration) {
327
+ baseOptions = configuration.baseOptions;
328
+ }
329
+
330
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
331
+ const localVarHeaderParameter = {} as any;
332
+ const localVarQueryParameter = {} as any;
333
+
334
+ // authentication oauth2 required
335
+ // oauth required
336
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
337
+
338
+ if (id !== undefined) {
339
+ localVarQueryParameter['Id'] = id;
340
+ }
341
+
342
+ if (userId !== undefined) {
343
+ localVarQueryParameter['UserId'] = userId;
344
+ }
345
+
346
+ if (userName !== undefined) {
347
+ localVarQueryParameter['UserName'] = userName;
348
+ }
349
+
350
+ if (hospitalId !== undefined) {
351
+ localVarQueryParameter['HospitalId'] = hospitalId;
352
+ }
353
+
354
+ if (hospitalName !== undefined) {
355
+ localVarQueryParameter['HospitalName'] = hospitalName;
356
+ }
357
+
358
+ if (doctorId !== undefined) {
359
+ localVarQueryParameter['DoctorId'] = doctorId;
360
+ }
361
+
362
+ if (doctorName !== undefined) {
363
+ localVarQueryParameter['DoctorName'] = doctorName;
364
+ }
365
+
366
+ if (dealId !== undefined) {
367
+ localVarQueryParameter['DealId'] = dealId;
368
+ }
369
+
370
+ if (dealName !== undefined) {
371
+ localVarQueryParameter['DealName'] = dealName;
372
+ }
373
+
374
+ if (dealPackageId !== undefined) {
375
+ localVarQueryParameter['DealPackageId'] = dealPackageId;
376
+ }
377
+
378
+ if (hospitalSpecialtyId !== undefined) {
379
+ localVarQueryParameter['HospitalSpecialtyId'] = hospitalSpecialtyId;
380
+ }
381
+
382
+ if (serviceId !== undefined) {
383
+ localVarQueryParameter['ServiceId'] = serviceId;
384
+ }
385
+
386
+ if (isOpen !== undefined) {
387
+ localVarQueryParameter['IsOpen'] = isOpen;
388
+ }
389
+
390
+ if (isCompleted !== undefined) {
391
+ localVarQueryParameter['IsCompleted'] = isCompleted;
392
+ }
393
+
394
+ if (status !== undefined) {
395
+ localVarQueryParameter['Status'] = status;
396
+ }
397
+
398
+ if (appointmentType !== undefined) {
399
+ localVarQueryParameter['AppointmentType'] = appointmentType;
400
+ }
401
+
402
+ if (sortRequestDate !== undefined) {
403
+ localVarQueryParameter['SortRequestDate'] = sortRequestDate;
404
+ }
405
+
406
+ if (sortConfirmedDateStart !== undefined) {
407
+ localVarQueryParameter['SortConfirmedDateStart'] = sortConfirmedDateStart;
408
+ }
409
+
410
+ if (paymentEnabled !== undefined) {
411
+ localVarQueryParameter['PaymentEnabled'] = paymentEnabled;
412
+ }
413
+
414
+ if (languageCode !== undefined) {
415
+ localVarQueryParameter['LanguageCode'] = languageCode;
416
+ }
417
+
418
+ if (showHidden !== undefined) {
419
+ localVarQueryParameter['ShowHidden'] = showHidden;
420
+ }
421
+
422
+ if (isOnline !== undefined) {
423
+ localVarQueryParameter['IsOnline'] = isOnline;
424
+ }
425
+
426
+ if (isExternal !== undefined) {
427
+ localVarQueryParameter['IsExternal'] = isExternal;
428
+ }
429
+
430
+ if (page !== undefined) {
431
+ localVarQueryParameter['page'] = page;
432
+ }
433
+
434
+ if (limit !== undefined) {
435
+ localVarQueryParameter['limit'] = limit;
436
+ }
437
+
438
+ if (lastRetrieved !== undefined) {
439
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
440
+ (lastRetrieved as any).toISOString() :
441
+ lastRetrieved;
442
+ }
443
+
444
+
445
+
446
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
447
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
448
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
449
+
450
+ return {
451
+ url: toPathString(localVarUrlObj),
452
+ options: localVarRequestOptions,
453
+ };
454
+ },
455
+ }
456
+ };
457
+
458
+ /**
459
+ * AppointmentsApi - functional programming interface
460
+ * @export
461
+ */
462
+ export const AppointmentsApiFp = function(configuration?: Configuration) {
463
+ const localVarAxiosParamCreator = AppointmentsApiAxiosParamCreator(configuration)
464
+ return {
465
+ /**
466
+ *
467
+ * @summary Approve appointment
468
+ * @param {string} appointmentId
469
+ * @param {ApproveAppointmentCommand} [approveAppointmentCommand]
470
+ * @param {*} [options] Override http request option.
471
+ * @throws {RequiredError}
472
+ */
473
+ async apiV1AppointmentsAppointmentIdApprovePut(appointmentId: string, approveAppointmentCommand?: ApproveAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
474
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdApprovePut(appointmentId, approveAppointmentCommand, options);
475
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
476
+ },
477
+ /**
478
+ *
479
+ * @summary Cancel appointment
480
+ * @param {string} appointmentId
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ async apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
485
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdCancelPut(appointmentId, options);
486
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
487
+ },
488
+ /**
489
+ *
490
+ * @summary Delete appointment
491
+ * @param {string} appointmentId
492
+ * @param {boolean} [isPermanent]
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ async apiV1AppointmentsAppointmentIdDelete(appointmentId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
497
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdDelete(appointmentId, isPermanent, options);
498
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
499
+ },
500
+ /**
501
+ *
502
+ * @summary Get appointment by id
503
+ * @param {string} appointmentId
504
+ * @param {string} [languageCode]
505
+ * @param {*} [options] Override http request option.
506
+ * @throws {RequiredError}
507
+ */
508
+ async apiV1AppointmentsAppointmentIdGet(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
509
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdGet(appointmentId, languageCode, options);
510
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
511
+ },
512
+ /**
513
+ *
514
+ * @summary Set appointment paid
515
+ * @param {string} appointmentId
516
+ * @param {*} [options] Override http request option.
517
+ * @throws {RequiredError}
518
+ */
519
+ async apiV1AppointmentsAppointmentIdPaidPost(appointmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
520
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdPaidPost(appointmentId, options);
521
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
522
+ },
523
+ /**
524
+ *
525
+ * @summary Reject appointment
526
+ * @param {string} appointmentId
527
+ * @param {RejectAppointmentCommand} [rejectAppointmentCommand]
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ async apiV1AppointmentsAppointmentIdRejectPut(appointmentId: string, rejectAppointmentCommand?: RejectAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
532
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdRejectPut(appointmentId, rejectAppointmentCommand, options);
533
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
534
+ },
535
+ /**
536
+ *
537
+ * @summary Get appointments
538
+ * @param {string} [id]
539
+ * @param {string} [userId]
540
+ * @param {string} [userName]
541
+ * @param {string} [hospitalId]
542
+ * @param {string} [hospitalName]
543
+ * @param {string} [doctorId]
544
+ * @param {string} [doctorName]
545
+ * @param {string} [dealId]
546
+ * @param {string} [dealName]
547
+ * @param {string} [dealPackageId]
548
+ * @param {string} [hospitalSpecialtyId]
549
+ * @param {string} [serviceId]
550
+ * @param {boolean} [isOpen]
551
+ * @param {boolean} [isCompleted]
552
+ * @param {AppointmentStatus} [status]
553
+ * @param {AppointmentType} [appointmentType]
554
+ * @param {SortingOrder} [sortRequestDate]
555
+ * @param {SortingOrder} [sortConfirmedDateStart]
556
+ * @param {boolean} [paymentEnabled]
557
+ * @param {string} [languageCode]
558
+ * @param {boolean} [showHidden]
559
+ * @param {boolean} [isOnline]
560
+ * @param {boolean} [isExternal]
561
+ * @param {number} [page]
562
+ * @param {number} [limit]
563
+ * @param {Date} [lastRetrieved]
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ */
567
+ async apiV1AppointmentsGet(id?: string, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, paymentEnabled?: boolean, languageCode?: string, showHidden?: boolean, isOnline?: boolean, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentsModel>> {
568
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsGet(id, userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, dealPackageId, hospitalSpecialtyId, serviceId, isOpen, isCompleted, status, appointmentType, sortRequestDate, sortConfirmedDateStart, paymentEnabled, languageCode, showHidden, isOnline, isExternal, page, limit, lastRetrieved, options);
569
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
570
+ },
571
+ }
572
+ };
573
+
574
+ /**
575
+ * AppointmentsApi - factory interface
576
+ * @export
577
+ */
578
+ export const AppointmentsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
579
+ const localVarFp = AppointmentsApiFp(configuration)
580
+ return {
581
+ /**
582
+ *
583
+ * @summary Approve appointment
584
+ * @param {string} appointmentId
585
+ * @param {ApproveAppointmentCommand} [approveAppointmentCommand]
586
+ * @param {*} [options] Override http request option.
587
+ * @throws {RequiredError}
588
+ */
589
+ apiV1AppointmentsAppointmentIdApprovePut(appointmentId: string, approveAppointmentCommand?: ApproveAppointmentCommand, options?: any): AxiosPromise<boolean> {
590
+ return localVarFp.apiV1AppointmentsAppointmentIdApprovePut(appointmentId, approveAppointmentCommand, options).then((request) => request(axios, basePath));
591
+ },
592
+ /**
593
+ *
594
+ * @summary Cancel appointment
595
+ * @param {string} appointmentId
596
+ * @param {*} [options] Override http request option.
597
+ * @throws {RequiredError}
598
+ */
599
+ apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, options?: any): AxiosPromise<boolean> {
600
+ return localVarFp.apiV1AppointmentsAppointmentIdCancelPut(appointmentId, options).then((request) => request(axios, basePath));
601
+ },
602
+ /**
603
+ *
604
+ * @summary Delete appointment
605
+ * @param {string} appointmentId
606
+ * @param {boolean} [isPermanent]
607
+ * @param {*} [options] Override http request option.
608
+ * @throws {RequiredError}
609
+ */
610
+ apiV1AppointmentsAppointmentIdDelete(appointmentId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
611
+ return localVarFp.apiV1AppointmentsAppointmentIdDelete(appointmentId, isPermanent, options).then((request) => request(axios, basePath));
612
+ },
613
+ /**
614
+ *
615
+ * @summary Get appointment by id
616
+ * @param {string} appointmentId
617
+ * @param {string} [languageCode]
618
+ * @param {*} [options] Override http request option.
619
+ * @throws {RequiredError}
620
+ */
621
+ apiV1AppointmentsAppointmentIdGet(appointmentId: string, languageCode?: string, options?: any): AxiosPromise<AppointmentModel> {
622
+ return localVarFp.apiV1AppointmentsAppointmentIdGet(appointmentId, languageCode, options).then((request) => request(axios, basePath));
623
+ },
624
+ /**
625
+ *
626
+ * @summary Set appointment paid
627
+ * @param {string} appointmentId
628
+ * @param {*} [options] Override http request option.
629
+ * @throws {RequiredError}
630
+ */
631
+ apiV1AppointmentsAppointmentIdPaidPost(appointmentId: string, options?: any): AxiosPromise<string> {
632
+ return localVarFp.apiV1AppointmentsAppointmentIdPaidPost(appointmentId, options).then((request) => request(axios, basePath));
633
+ },
634
+ /**
635
+ *
636
+ * @summary Reject appointment
637
+ * @param {string} appointmentId
638
+ * @param {RejectAppointmentCommand} [rejectAppointmentCommand]
639
+ * @param {*} [options] Override http request option.
640
+ * @throws {RequiredError}
641
+ */
642
+ apiV1AppointmentsAppointmentIdRejectPut(appointmentId: string, rejectAppointmentCommand?: RejectAppointmentCommand, options?: any): AxiosPromise<boolean> {
643
+ return localVarFp.apiV1AppointmentsAppointmentIdRejectPut(appointmentId, rejectAppointmentCommand, options).then((request) => request(axios, basePath));
644
+ },
645
+ /**
646
+ *
647
+ * @summary Get appointments
648
+ * @param {string} [id]
649
+ * @param {string} [userId]
650
+ * @param {string} [userName]
651
+ * @param {string} [hospitalId]
652
+ * @param {string} [hospitalName]
653
+ * @param {string} [doctorId]
654
+ * @param {string} [doctorName]
655
+ * @param {string} [dealId]
656
+ * @param {string} [dealName]
657
+ * @param {string} [dealPackageId]
658
+ * @param {string} [hospitalSpecialtyId]
659
+ * @param {string} [serviceId]
660
+ * @param {boolean} [isOpen]
661
+ * @param {boolean} [isCompleted]
662
+ * @param {AppointmentStatus} [status]
663
+ * @param {AppointmentType} [appointmentType]
664
+ * @param {SortingOrder} [sortRequestDate]
665
+ * @param {SortingOrder} [sortConfirmedDateStart]
666
+ * @param {boolean} [paymentEnabled]
667
+ * @param {string} [languageCode]
668
+ * @param {boolean} [showHidden]
669
+ * @param {boolean} [isOnline]
670
+ * @param {boolean} [isExternal]
671
+ * @param {number} [page]
672
+ * @param {number} [limit]
673
+ * @param {Date} [lastRetrieved]
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ */
677
+ apiV1AppointmentsGet(id?: string, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, paymentEnabled?: boolean, languageCode?: string, showHidden?: boolean, isOnline?: boolean, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentsModel> {
678
+ return localVarFp.apiV1AppointmentsGet(id, userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, dealPackageId, hospitalSpecialtyId, serviceId, isOpen, isCompleted, status, appointmentType, sortRequestDate, sortConfirmedDateStart, paymentEnabled, languageCode, showHidden, isOnline, isExternal, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
679
+ },
680
+ };
681
+ };
682
+
683
+ /**
684
+ * AppointmentsApi - object-oriented interface
685
+ * @export
686
+ * @class AppointmentsApi
687
+ * @extends {BaseAPI}
688
+ */
689
+ export class AppointmentsApi extends BaseAPI {
690
+ /**
691
+ *
692
+ * @summary Approve appointment
693
+ * @param {string} appointmentId
694
+ * @param {ApproveAppointmentCommand} [approveAppointmentCommand]
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ * @memberof AppointmentsApi
698
+ */
699
+ public apiV1AppointmentsAppointmentIdApprovePut(appointmentId: string, approveAppointmentCommand?: ApproveAppointmentCommand, options?: AxiosRequestConfig) {
700
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdApprovePut(appointmentId, approveAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
701
+ }
702
+
703
+ /**
704
+ *
705
+ * @summary Cancel appointment
706
+ * @param {string} appointmentId
707
+ * @param {*} [options] Override http request option.
708
+ * @throws {RequiredError}
709
+ * @memberof AppointmentsApi
710
+ */
711
+ public apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, options?: AxiosRequestConfig) {
712
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdCancelPut(appointmentId, options).then((request) => request(this.axios, this.basePath));
713
+ }
714
+
715
+ /**
716
+ *
717
+ * @summary Delete appointment
718
+ * @param {string} appointmentId
719
+ * @param {boolean} [isPermanent]
720
+ * @param {*} [options] Override http request option.
721
+ * @throws {RequiredError}
722
+ * @memberof AppointmentsApi
723
+ */
724
+ public apiV1AppointmentsAppointmentIdDelete(appointmentId: string, isPermanent?: boolean, options?: AxiosRequestConfig) {
725
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdDelete(appointmentId, isPermanent, options).then((request) => request(this.axios, this.basePath));
726
+ }
727
+
728
+ /**
729
+ *
730
+ * @summary Get appointment by id
731
+ * @param {string} appointmentId
732
+ * @param {string} [languageCode]
733
+ * @param {*} [options] Override http request option.
734
+ * @throws {RequiredError}
735
+ * @memberof AppointmentsApi
736
+ */
737
+ public apiV1AppointmentsAppointmentIdGet(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig) {
738
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdGet(appointmentId, languageCode, options).then((request) => request(this.axios, this.basePath));
739
+ }
740
+
741
+ /**
742
+ *
743
+ * @summary Set appointment paid
744
+ * @param {string} appointmentId
745
+ * @param {*} [options] Override http request option.
746
+ * @throws {RequiredError}
747
+ * @memberof AppointmentsApi
748
+ */
749
+ public apiV1AppointmentsAppointmentIdPaidPost(appointmentId: string, options?: AxiosRequestConfig) {
750
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdPaidPost(appointmentId, options).then((request) => request(this.axios, this.basePath));
751
+ }
752
+
753
+ /**
754
+ *
755
+ * @summary Reject appointment
756
+ * @param {string} appointmentId
757
+ * @param {RejectAppointmentCommand} [rejectAppointmentCommand]
758
+ * @param {*} [options] Override http request option.
759
+ * @throws {RequiredError}
760
+ * @memberof AppointmentsApi
761
+ */
762
+ public apiV1AppointmentsAppointmentIdRejectPut(appointmentId: string, rejectAppointmentCommand?: RejectAppointmentCommand, options?: AxiosRequestConfig) {
763
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdRejectPut(appointmentId, rejectAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
764
+ }
765
+
766
+ /**
767
+ *
768
+ * @summary Get appointments
769
+ * @param {string} [id]
770
+ * @param {string} [userId]
771
+ * @param {string} [userName]
772
+ * @param {string} [hospitalId]
773
+ * @param {string} [hospitalName]
774
+ * @param {string} [doctorId]
775
+ * @param {string} [doctorName]
776
+ * @param {string} [dealId]
777
+ * @param {string} [dealName]
778
+ * @param {string} [dealPackageId]
779
+ * @param {string} [hospitalSpecialtyId]
780
+ * @param {string} [serviceId]
781
+ * @param {boolean} [isOpen]
782
+ * @param {boolean} [isCompleted]
783
+ * @param {AppointmentStatus} [status]
784
+ * @param {AppointmentType} [appointmentType]
785
+ * @param {SortingOrder} [sortRequestDate]
786
+ * @param {SortingOrder} [sortConfirmedDateStart]
787
+ * @param {boolean} [paymentEnabled]
788
+ * @param {string} [languageCode]
789
+ * @param {boolean} [showHidden]
790
+ * @param {boolean} [isOnline]
791
+ * @param {boolean} [isExternal]
792
+ * @param {number} [page]
793
+ * @param {number} [limit]
794
+ * @param {Date} [lastRetrieved]
795
+ * @param {*} [options] Override http request option.
796
+ * @throws {RequiredError}
797
+ * @memberof AppointmentsApi
798
+ */
799
+ public apiV1AppointmentsGet(id?: string, userId?: string, userName?: string, hospitalId?: string, hospitalName?: string, doctorId?: string, doctorName?: string, dealId?: string, dealName?: string, dealPackageId?: string, hospitalSpecialtyId?: string, serviceId?: string, isOpen?: boolean, isCompleted?: boolean, status?: AppointmentStatus, appointmentType?: AppointmentType, sortRequestDate?: SortingOrder, sortConfirmedDateStart?: SortingOrder, paymentEnabled?: boolean, languageCode?: string, showHidden?: boolean, isOnline?: boolean, isExternal?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
800
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsGet(id, userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, dealPackageId, hospitalSpecialtyId, serviceId, isOpen, isCompleted, status, appointmentType, sortRequestDate, sortConfirmedDateStart, paymentEnabled, languageCode, showHidden, isOnline, isExternal, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
801
+ }
802
+ }