ch-admin-api-client-typescript 4.9.4 → 4.9.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 (231) 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/survey-forms-api.d.ts +6 -6
  16. package/lib/api/survey-forms-api.d.ts.map +1 -1
  17. package/lib/api.d.ts +1 -0
  18. package/lib/api.d.ts.map +1 -1
  19. package/lib/api.js +1 -0
  20. package/lib/models/appointment-change-log-model.d.ts +44 -0
  21. package/lib/models/appointment-change-log-model.d.ts.map +1 -0
  22. package/lib/models/appointment-change-log-model.js +15 -0
  23. package/lib/models/appointment-item-model.d.ts +282 -0
  24. package/lib/models/appointment-item-model.d.ts.map +1 -0
  25. package/lib/models/appointment-item-model.js +15 -0
  26. package/lib/models/appointment-model.d.ts +302 -0
  27. package/lib/models/appointment-model.d.ts.map +1 -0
  28. package/lib/models/appointment-model.js +15 -0
  29. package/lib/models/appointment-option-model.d.ts +63 -0
  30. package/lib/models/appointment-option-model.d.ts.map +1 -0
  31. package/lib/models/appointment-option-model.js +15 -0
  32. package/lib/models/appointment-status.d.ts +27 -0
  33. package/lib/models/appointment-status.d.ts.map +1 -0
  34. package/lib/models/appointment-status.js +30 -0
  35. package/lib/models/appointment-timetable-model.d.ts +44 -0
  36. package/lib/models/appointment-timetable-model.d.ts.map +1 -0
  37. package/lib/models/appointment-timetable-model.js +15 -0
  38. package/lib/models/appointment-timetable-override-model.d.ts +56 -0
  39. package/lib/models/appointment-timetable-override-model.d.ts.map +1 -0
  40. package/lib/models/appointment-timetable-override-model.js +15 -0
  41. package/lib/models/appointment-timetable-overrides-model.d.ts +33 -0
  42. package/lib/models/appointment-timetable-overrides-model.d.ts.map +1 -0
  43. package/lib/models/appointment-timetable-overrides-model.js +15 -0
  44. package/lib/models/appointment-timetables-model.d.ts +33 -0
  45. package/lib/models/appointment-timetables-model.d.ts.map +1 -0
  46. package/lib/models/appointment-timetables-model.js +15 -0
  47. package/lib/models/appointment-type.d.ts +26 -0
  48. package/lib/models/appointment-type.d.ts.map +1 -0
  49. package/lib/models/appointment-type.js +29 -0
  50. package/lib/models/appointments-model.d.ts +33 -0
  51. package/lib/models/appointments-model.d.ts.map +1 -0
  52. package/lib/models/appointments-model.js +15 -0
  53. package/lib/models/approve-appointment-command.d.ts +31 -0
  54. package/lib/models/approve-appointment-command.d.ts.map +1 -0
  55. package/lib/models/approve-appointment-command.js +15 -0
  56. package/lib/models/batch-add-appointment-timetable-model.d.ts +38 -0
  57. package/lib/models/batch-add-appointment-timetable-model.d.ts.map +1 -0
  58. package/lib/models/batch-add-appointment-timetable-model.js +15 -0
  59. package/lib/models/batch-appointment-timetables-result-model.d.ts +38 -0
  60. package/lib/models/batch-appointment-timetables-result-model.d.ts.map +1 -0
  61. package/lib/models/batch-appointment-timetables-result-model.js +15 -0
  62. package/lib/models/batch-deal-appointment-timetables-command.d.ts +39 -0
  63. package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +1 -0
  64. package/lib/models/batch-deal-appointment-timetables-command.js +15 -0
  65. package/lib/models/batch-deal-package-appointment-timetables-command.d.ts +39 -0
  66. package/lib/models/batch-deal-package-appointment-timetables-command.d.ts.map +1 -0
  67. package/lib/models/batch-deal-package-appointment-timetables-command.js +15 -0
  68. package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts +39 -0
  69. package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts.map +1 -0
  70. package/lib/models/batch-doctor-affiliation-appointment-timetables-command.js +15 -0
  71. package/lib/models/batch-hospital-appointment-timetables-command.d.ts +39 -0
  72. package/lib/models/batch-hospital-appointment-timetables-command.d.ts.map +1 -0
  73. package/lib/models/batch-hospital-appointment-timetables-command.js +15 -0
  74. package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts +39 -0
  75. package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts.map +1 -0
  76. package/lib/models/batch-hospital-specialty-appointment-timetables-command.js +15 -0
  77. package/lib/models/batch-service-appointment-timetables-command.d.ts +39 -0
  78. package/lib/models/batch-service-appointment-timetables-command.d.ts.map +1 -0
  79. package/lib/models/batch-service-appointment-timetables-command.js +15 -0
  80. package/lib/models/batch-update-appointment-timetable-model.d.ts +44 -0
  81. package/lib/models/batch-update-appointment-timetable-model.d.ts.map +1 -0
  82. package/lib/models/batch-update-appointment-timetable-model.js +15 -0
  83. package/lib/models/create-article-command.d.ts +6 -0
  84. package/lib/models/create-article-command.d.ts.map +1 -1
  85. package/lib/models/create-deal-command.d.ts +7 -0
  86. package/lib/models/create-deal-command.d.ts.map +1 -1
  87. package/lib/models/create-deal-package-command.d.ts +7 -0
  88. package/lib/models/create-deal-package-command.d.ts.map +1 -1
  89. package/lib/models/create-doctor-affiliation-command.d.ts +7 -0
  90. package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
  91. package/lib/models/create-hospital-command.d.ts +7 -0
  92. package/lib/models/create-hospital-command.d.ts.map +1 -1
  93. package/lib/models/create-hospital-service-command.d.ts +7 -0
  94. package/lib/models/create-hospital-service-command.d.ts.map +1 -1
  95. package/lib/models/create-hospital-specialty-command.d.ts +7 -0
  96. package/lib/models/create-hospital-specialty-command.d.ts.map +1 -1
  97. package/lib/models/deal-item-model.d.ts +7 -0
  98. package/lib/models/deal-item-model.d.ts.map +1 -1
  99. package/lib/models/deal-model.d.ts +7 -0
  100. package/lib/models/deal-model.d.ts.map +1 -1
  101. package/lib/models/deal-package-item-model.d.ts +7 -0
  102. package/lib/models/deal-package-item-model.d.ts.map +1 -1
  103. package/lib/models/deal-package-model.d.ts +7 -0
  104. package/lib/models/deal-package-model.d.ts.map +1 -1
  105. package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
  106. package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
  107. package/lib/models/doctor-affiliation-model.d.ts +7 -0
  108. package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
  109. package/lib/models/hospital-item-model.d.ts +7 -0
  110. package/lib/models/hospital-item-model.d.ts.map +1 -1
  111. package/lib/models/hospital-model.d.ts +7 -0
  112. package/lib/models/hospital-model.d.ts.map +1 -1
  113. package/lib/models/hospital-service-item-model.d.ts +7 -0
  114. package/lib/models/hospital-service-item-model.d.ts.map +1 -1
  115. package/lib/models/hospital-service-model.d.ts +7 -0
  116. package/lib/models/hospital-service-model.d.ts.map +1 -1
  117. package/lib/models/hospital-specialty-item-model.d.ts +7 -0
  118. package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
  119. package/lib/models/hospital-specialty-model.d.ts +7 -0
  120. package/lib/models/hospital-specialty-model.d.ts.map +1 -1
  121. package/lib/models/index.d.ts +30 -0
  122. package/lib/models/index.d.ts.map +1 -1
  123. package/lib/models/index.js +30 -0
  124. package/lib/models/notification-code.d.ts +9 -0
  125. package/lib/models/notification-code.d.ts.map +1 -1
  126. package/lib/models/notification-code.js +10 -1
  127. package/lib/models/reject-appointment-command.d.ts +32 -0
  128. package/lib/models/reject-appointment-command.d.ts.map +1 -0
  129. package/lib/models/reject-appointment-command.js +15 -0
  130. package/lib/models/save-appointment-timetable-override-model.d.ts +43 -0
  131. package/lib/models/save-appointment-timetable-override-model.d.ts.map +1 -0
  132. package/lib/models/save-appointment-timetable-override-model.js +15 -0
  133. package/lib/models/save-appointment-timetable-overrides-result-model.d.ts +26 -0
  134. package/lib/models/save-appointment-timetable-overrides-result-model.d.ts.map +1 -0
  135. package/lib/models/save-appointment-timetable-overrides-result-model.js +15 -0
  136. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +26 -0
  137. package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +1 -0
  138. package/lib/models/save-deal-appointment-timetable-overrides-command.js +15 -0
  139. package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts +26 -0
  140. package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts.map +1 -0
  141. package/lib/models/save-deal-package-appointment-timetable-overrides-command.js +15 -0
  142. package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts +26 -0
  143. package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts.map +1 -0
  144. package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.js +15 -0
  145. package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts +26 -0
  146. package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts.map +1 -0
  147. package/lib/models/save-hospital-appointment-timetable-overrides-command.js +15 -0
  148. package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts +26 -0
  149. package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts.map +1 -0
  150. package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.js +15 -0
  151. package/lib/models/save-service-appointment-timetable-overrides-command.d.ts +26 -0
  152. package/lib/models/save-service-appointment-timetable-overrides-command.d.ts.map +1 -0
  153. package/lib/models/save-service-appointment-timetable-overrides-command.js +15 -0
  154. package/lib/models/update-deal-command.d.ts +7 -0
  155. package/lib/models/update-deal-command.d.ts.map +1 -1
  156. package/lib/models/update-deal-package-command.d.ts +7 -0
  157. package/lib/models/update-deal-package-command.d.ts.map +1 -1
  158. package/lib/models/update-doctor-affiliation-command.d.ts +7 -0
  159. package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
  160. package/lib/models/update-hospital-command.d.ts +7 -0
  161. package/lib/models/update-hospital-command.d.ts.map +1 -1
  162. package/lib/models/update-hospital-service-command.d.ts +7 -0
  163. package/lib/models/update-hospital-service-command.d.ts.map +1 -1
  164. package/lib/models/update-hospital-specialty-command.d.ts +7 -0
  165. package/lib/models/update-hospital-specialty-command.d.ts.map +1 -1
  166. package/package.json +1 -1
  167. package/src/.openapi-generator/FILES +31 -0
  168. package/src/api/appointments-api.ts +802 -0
  169. package/src/api/deals-api.ts +842 -8
  170. package/src/api/doctor-affiliations-api.ts +408 -0
  171. package/src/api/hospitals-api.ts +1412 -124
  172. package/src/api/services-api.ts +8 -8
  173. package/src/api/survey-forms-api.ts +4 -4
  174. package/src/api.ts +1 -0
  175. package/src/models/appointment-change-log-model.ts +51 -0
  176. package/src/models/appointment-item-model.ts +297 -0
  177. package/src/models/appointment-model.ts +321 -0
  178. package/src/models/appointment-option-model.ts +72 -0
  179. package/src/models/appointment-status.ts +36 -0
  180. package/src/models/appointment-timetable-model.ts +51 -0
  181. package/src/models/appointment-timetable-override-model.ts +63 -0
  182. package/src/models/appointment-timetable-overrides-model.ts +42 -0
  183. package/src/models/appointment-timetables-model.ts +42 -0
  184. package/src/models/appointment-type.ts +35 -0
  185. package/src/models/appointments-model.ts +42 -0
  186. package/src/models/approve-appointment-command.ts +36 -0
  187. package/src/models/batch-add-appointment-timetable-model.ts +45 -0
  188. package/src/models/batch-appointment-timetables-result-model.ts +45 -0
  189. package/src/models/batch-deal-appointment-timetables-command.ts +48 -0
  190. package/src/models/batch-deal-package-appointment-timetables-command.ts +48 -0
  191. package/src/models/batch-doctor-affiliation-appointment-timetables-command.ts +48 -0
  192. package/src/models/batch-hospital-appointment-timetables-command.ts +48 -0
  193. package/src/models/batch-hospital-specialty-appointment-timetables-command.ts +48 -0
  194. package/src/models/batch-service-appointment-timetables-command.ts +48 -0
  195. package/src/models/batch-update-appointment-timetable-model.ts +51 -0
  196. package/src/models/create-article-command.ts +6 -0
  197. package/src/models/create-deal-command.ts +9 -0
  198. package/src/models/create-deal-package-command.ts +9 -0
  199. package/src/models/create-doctor-affiliation-command.ts +9 -0
  200. package/src/models/create-hospital-command.ts +9 -0
  201. package/src/models/create-hospital-service-command.ts +9 -0
  202. package/src/models/create-hospital-specialty-command.ts +9 -0
  203. package/src/models/deal-item-model.ts +9 -0
  204. package/src/models/deal-model.ts +9 -0
  205. package/src/models/deal-package-item-model.ts +9 -0
  206. package/src/models/deal-package-model.ts +9 -0
  207. package/src/models/doctor-affiliation-item-model.ts +9 -0
  208. package/src/models/doctor-affiliation-model.ts +9 -0
  209. package/src/models/hospital-item-model.ts +9 -0
  210. package/src/models/hospital-model.ts +9 -0
  211. package/src/models/hospital-service-item-model.ts +9 -0
  212. package/src/models/hospital-service-model.ts +9 -0
  213. package/src/models/hospital-specialty-item-model.ts +9 -0
  214. package/src/models/hospital-specialty-model.ts +9 -0
  215. package/src/models/index.ts +30 -0
  216. package/src/models/notification-code.ts +10 -1
  217. package/src/models/reject-appointment-command.ts +39 -0
  218. package/src/models/save-appointment-timetable-override-model.ts +48 -0
  219. package/src/models/save-appointment-timetable-overrides-result-model.ts +33 -0
  220. package/src/models/save-deal-appointment-timetable-overrides-command.ts +33 -0
  221. package/src/models/save-deal-package-appointment-timetable-overrides-command.ts +33 -0
  222. package/src/models/save-doctor-affiliation-appointment-timetable-overrides-command.ts +33 -0
  223. package/src/models/save-hospital-appointment-timetable-overrides-command.ts +33 -0
  224. package/src/models/save-hospital-specialty-appointment-timetable-overrides-command.ts +33 -0
  225. package/src/models/save-service-appointment-timetable-overrides-command.ts +33 -0
  226. package/src/models/update-deal-command.ts +9 -0
  227. package/src/models/update-deal-package-command.ts +9 -0
  228. package/src/models/update-doctor-affiliation-command.ts +9 -0
  229. package/src/models/update-hospital-command.ts +9 -0
  230. package/src/models/update-hospital-service-command.ts +9 -0
  231. package/src/models/update-hospital-specialty-command.ts +9 -0
@@ -21,12 +21,24 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
21
21
  // @ts-ignore
22
22
  import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
23
  // @ts-ignore
24
+ import { AppointmentTimetableOverridesModel } from '../models';
25
+ // @ts-ignore
26
+ import { AppointmentTimetablesModel } from '../models';
27
+ // @ts-ignore
28
+ import { BatchAppointmentTimetablesResultModel } from '../models';
29
+ // @ts-ignore
30
+ import { BatchDealAppointmentTimetablesCommand } from '../models';
31
+ // @ts-ignore
32
+ import { BatchDealPackageAppointmentTimetablesCommand } from '../models';
33
+ // @ts-ignore
24
34
  import { CreateDealCommand } from '../models';
25
35
  // @ts-ignore
26
36
  import { CreateDealPackageCommand } from '../models';
27
37
  // @ts-ignore
28
38
  import { CreateDealServiceCommand } from '../models';
29
39
  // @ts-ignore
40
+ import { DayOfWeek } from '../models';
41
+ // @ts-ignore
30
42
  import { DealModel } from '../models';
31
43
  // @ts-ignore
32
44
  import { DealPackageModel } from '../models';
@@ -45,6 +57,12 @@ import { MarketingType } from '../models';
45
57
  // @ts-ignore
46
58
  import { ProblemDetails } from '../models';
47
59
  // @ts-ignore
60
+ import { SaveAppointmentTimetableOverridesResultModel } from '../models';
61
+ // @ts-ignore
62
+ import { SaveDealAppointmentTimetableOverridesCommand } from '../models';
63
+ // @ts-ignore
64
+ import { SaveDealPackageAppointmentTimetableOverridesCommand } from '../models';
65
+ // @ts-ignore
48
66
  import { UpdateDealCommand } from '../models';
49
67
  // @ts-ignore
50
68
  import { UpdateDealPackageCommand } from '../models';
@@ -56,6 +74,229 @@ import { UpdateDealServiceCommand } from '../models';
56
74
  */
57
75
  export const DealsApiAxiosParamCreator = function (configuration?: Configuration) {
58
76
  return {
77
+ /**
78
+ *
79
+ * @summary Get DealAppointment tiemtable overrides
80
+ * @param {string} dealId
81
+ * @param {boolean} [includesPreviousItems]
82
+ * @param {Date} [startDate]
83
+ * @param {Date} [endDate]
84
+ * @param {DayOfWeek} [dayOfWeek]
85
+ * @param {number} [page]
86
+ * @param {number} [limit]
87
+ * @param {Date} [lastRetrieved]
88
+ * @param {*} [options] Override http request option.
89
+ * @throws {RequiredError}
90
+ */
91
+ apiV1DealsDealIdAppointmenttimetableoverridesGet: async (dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
92
+ // verify required parameter 'dealId' is not null or undefined
93
+ assertParamExists('apiV1DealsDealIdAppointmenttimetableoverridesGet', 'dealId', dealId)
94
+ const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetableoverrides`
95
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
96
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
97
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
98
+ let baseOptions;
99
+ if (configuration) {
100
+ baseOptions = configuration.baseOptions;
101
+ }
102
+
103
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
104
+ const localVarHeaderParameter = {} as any;
105
+ const localVarQueryParameter = {} as any;
106
+
107
+ // authentication oauth2 required
108
+ // oauth required
109
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
110
+
111
+ if (includesPreviousItems !== undefined) {
112
+ localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
113
+ }
114
+
115
+ if (startDate !== undefined) {
116
+ localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
117
+ (startDate as any).toISOString() :
118
+ startDate;
119
+ }
120
+
121
+ if (endDate !== undefined) {
122
+ localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
123
+ (endDate as any).toISOString() :
124
+ endDate;
125
+ }
126
+
127
+ if (dayOfWeek !== undefined) {
128
+ localVarQueryParameter['DayOfWeek'] = dayOfWeek;
129
+ }
130
+
131
+ if (page !== undefined) {
132
+ localVarQueryParameter['page'] = page;
133
+ }
134
+
135
+ if (limit !== undefined) {
136
+ localVarQueryParameter['limit'] = limit;
137
+ }
138
+
139
+ if (lastRetrieved !== undefined) {
140
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
141
+ (lastRetrieved as any).toISOString() :
142
+ lastRetrieved;
143
+ }
144
+
145
+
146
+
147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
149
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
150
+
151
+ return {
152
+ url: toPathString(localVarUrlObj),
153
+ options: localVarRequestOptions,
154
+ };
155
+ },
156
+ /**
157
+ *
158
+ * @summary Save Deal appointment timetable overrides
159
+ * @param {string} dealId
160
+ * @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
161
+ * @param {*} [options] Override http request option.
162
+ * @throws {RequiredError}
163
+ */
164
+ apiV1DealsDealIdAppointmenttimetableoverridesPost: async (dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
165
+ // verify required parameter 'dealId' is not null or undefined
166
+ assertParamExists('apiV1DealsDealIdAppointmenttimetableoverridesPost', 'dealId', dealId)
167
+ const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetableoverrides`
168
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
169
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
170
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
171
+ let baseOptions;
172
+ if (configuration) {
173
+ baseOptions = configuration.baseOptions;
174
+ }
175
+
176
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
177
+ const localVarHeaderParameter = {} as any;
178
+ const localVarQueryParameter = {} as any;
179
+
180
+ // authentication oauth2 required
181
+ // oauth required
182
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
183
+
184
+
185
+
186
+ localVarHeaderParameter['Content-Type'] = 'application/json';
187
+
188
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
189
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
190
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
191
+ localVarRequestOptions.data = serializeDataIfNeeded(saveDealAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration)
192
+
193
+ return {
194
+ url: toPathString(localVarUrlObj),
195
+ options: localVarRequestOptions,
196
+ };
197
+ },
198
+ /**
199
+ *
200
+ * @summary Add, update and delete deal appointment timetable
201
+ * @param {string} dealId
202
+ * @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
203
+ * @param {*} [options] Override http request option.
204
+ * @throws {RequiredError}
205
+ */
206
+ apiV1DealsDealIdAppointmenttimetablesBatchPost: async (dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
207
+ // verify required parameter 'dealId' is not null or undefined
208
+ assertParamExists('apiV1DealsDealIdAppointmenttimetablesBatchPost', 'dealId', dealId)
209
+ const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetables/batch`
210
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
211
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
212
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
213
+ let baseOptions;
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+
218
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
219
+ const localVarHeaderParameter = {} as any;
220
+ const localVarQueryParameter = {} as any;
221
+
222
+ // authentication oauth2 required
223
+ // oauth required
224
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
225
+
226
+
227
+
228
+ localVarHeaderParameter['Content-Type'] = 'application/json';
229
+
230
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
231
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
233
+ localVarRequestOptions.data = serializeDataIfNeeded(batchDealAppointmentTimetablesCommand, localVarRequestOptions, configuration)
234
+
235
+ return {
236
+ url: toPathString(localVarUrlObj),
237
+ options: localVarRequestOptions,
238
+ };
239
+ },
240
+ /**
241
+ *
242
+ * @summary Get deal appointment timetables
243
+ * @param {string} dealId
244
+ * @param {DayOfWeek} [dayOfWeek]
245
+ * @param {number} [page]
246
+ * @param {number} [limit]
247
+ * @param {Date} [lastRetrieved]
248
+ * @param {*} [options] Override http request option.
249
+ * @throws {RequiredError}
250
+ */
251
+ apiV1DealsDealIdAppointmenttimetablesGet: async (dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
252
+ // verify required parameter 'dealId' is not null or undefined
253
+ assertParamExists('apiV1DealsDealIdAppointmenttimetablesGet', 'dealId', dealId)
254
+ const localVarPath = `/api/v1/deals/{dealId}/appointmenttimetables`
255
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
256
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
257
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
258
+ let baseOptions;
259
+ if (configuration) {
260
+ baseOptions = configuration.baseOptions;
261
+ }
262
+
263
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
264
+ const localVarHeaderParameter = {} as any;
265
+ const localVarQueryParameter = {} as any;
266
+
267
+ // authentication oauth2 required
268
+ // oauth required
269
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
270
+
271
+ if (dayOfWeek !== undefined) {
272
+ localVarQueryParameter['DayOfWeek'] = dayOfWeek;
273
+ }
274
+
275
+ if (page !== undefined) {
276
+ localVarQueryParameter['page'] = page;
277
+ }
278
+
279
+ if (limit !== undefined) {
280
+ localVarQueryParameter['limit'] = limit;
281
+ }
282
+
283
+ if (lastRetrieved !== undefined) {
284
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
285
+ (lastRetrieved as any).toISOString() :
286
+ lastRetrieved;
287
+ }
288
+
289
+
290
+
291
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
292
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
293
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
294
+
295
+ return {
296
+ url: toPathString(localVarUrlObj),
297
+ options: localVarRequestOptions,
298
+ };
299
+ },
59
300
  /**
60
301
  *
61
302
  * @summary Delete deal.
@@ -200,16 +441,255 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
200
441
  localVarQueryParameter['HospitalId'] = hospitalId;
201
442
  }
202
443
 
203
- if (hospitalName !== undefined) {
204
- localVarQueryParameter['HospitalName'] = hospitalName;
205
- }
444
+ if (hospitalName !== undefined) {
445
+ localVarQueryParameter['HospitalName'] = hospitalName;
446
+ }
447
+
448
+ if (languageCode !== undefined) {
449
+ localVarQueryParameter['LanguageCode'] = languageCode;
450
+ }
451
+
452
+ if (showHidden !== undefined) {
453
+ localVarQueryParameter['ShowHidden'] = showHidden;
454
+ }
455
+
456
+ if (page !== undefined) {
457
+ localVarQueryParameter['page'] = page;
458
+ }
459
+
460
+ if (limit !== undefined) {
461
+ localVarQueryParameter['limit'] = limit;
462
+ }
463
+
464
+ if (lastRetrieved !== undefined) {
465
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
466
+ (lastRetrieved as any).toISOString() :
467
+ lastRetrieved;
468
+ }
469
+
470
+
471
+
472
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
473
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
474
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
475
+
476
+ return {
477
+ url: toPathString(localVarUrlObj),
478
+ options: localVarRequestOptions,
479
+ };
480
+ },
481
+ /**
482
+ *
483
+ * @summary Get DealPackage appointment timetable overrides
484
+ * @param {string} dealId
485
+ * @param {string} packageId
486
+ * @param {boolean} [includesPreviousItems]
487
+ * @param {Date} [startDate]
488
+ * @param {Date} [endDate]
489
+ * @param {DayOfWeek} [dayOfWeek]
490
+ * @param {number} [page]
491
+ * @param {number} [limit]
492
+ * @param {Date} [lastRetrieved]
493
+ * @param {*} [options] Override http request option.
494
+ * @throws {RequiredError}
495
+ */
496
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet: async (dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
497
+ // verify required parameter 'dealId' is not null or undefined
498
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet', 'dealId', dealId)
499
+ // verify required parameter 'packageId' is not null or undefined
500
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet', 'packageId', packageId)
501
+ const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetableoverrides`
502
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
503
+ .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
504
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
505
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
506
+ let baseOptions;
507
+ if (configuration) {
508
+ baseOptions = configuration.baseOptions;
509
+ }
510
+
511
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
512
+ const localVarHeaderParameter = {} as any;
513
+ const localVarQueryParameter = {} as any;
514
+
515
+ // authentication oauth2 required
516
+ // oauth required
517
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
518
+
519
+ if (includesPreviousItems !== undefined) {
520
+ localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
521
+ }
522
+
523
+ if (startDate !== undefined) {
524
+ localVarQueryParameter['StartDate'] = (startDate as any instanceof Date) ?
525
+ (startDate as any).toISOString() :
526
+ startDate;
527
+ }
528
+
529
+ if (endDate !== undefined) {
530
+ localVarQueryParameter['EndDate'] = (endDate as any instanceof Date) ?
531
+ (endDate as any).toISOString() :
532
+ endDate;
533
+ }
534
+
535
+ if (dayOfWeek !== undefined) {
536
+ localVarQueryParameter['DayOfWeek'] = dayOfWeek;
537
+ }
538
+
539
+ if (page !== undefined) {
540
+ localVarQueryParameter['page'] = page;
541
+ }
542
+
543
+ if (limit !== undefined) {
544
+ localVarQueryParameter['limit'] = limit;
545
+ }
546
+
547
+ if (lastRetrieved !== undefined) {
548
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
549
+ (lastRetrieved as any).toISOString() :
550
+ lastRetrieved;
551
+ }
552
+
553
+
554
+
555
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
556
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
557
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
558
+
559
+ return {
560
+ url: toPathString(localVarUrlObj),
561
+ options: localVarRequestOptions,
562
+ };
563
+ },
564
+ /**
565
+ *
566
+ * @summary Save DealPackage appointment timetable overrides
567
+ * @param {string} dealId
568
+ * @param {string} packageId
569
+ * @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
570
+ * @param {*} [options] Override http request option.
571
+ * @throws {RequiredError}
572
+ */
573
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost: async (dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
574
+ // verify required parameter 'dealId' is not null or undefined
575
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost', 'dealId', dealId)
576
+ // verify required parameter 'packageId' is not null or undefined
577
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost', 'packageId', packageId)
578
+ const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetableoverrides`
579
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
580
+ .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
581
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
582
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
583
+ let baseOptions;
584
+ if (configuration) {
585
+ baseOptions = configuration.baseOptions;
586
+ }
587
+
588
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
589
+ const localVarHeaderParameter = {} as any;
590
+ const localVarQueryParameter = {} as any;
591
+
592
+ // authentication oauth2 required
593
+ // oauth required
594
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
595
+
596
+
597
+
598
+ localVarHeaderParameter['Content-Type'] = 'application/json';
599
+
600
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
601
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
602
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
603
+ localVarRequestOptions.data = serializeDataIfNeeded(saveDealPackageAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration)
604
+
605
+ return {
606
+ url: toPathString(localVarUrlObj),
607
+ options: localVarRequestOptions,
608
+ };
609
+ },
610
+ /**
611
+ *
612
+ * @summary Add, update and delete DealPackage appointment timetable
613
+ * @param {string} dealId
614
+ * @param {string} packageId
615
+ * @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
616
+ * @param {*} [options] Override http request option.
617
+ * @throws {RequiredError}
618
+ */
619
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost: async (dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
620
+ // verify required parameter 'dealId' is not null or undefined
621
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost', 'dealId', dealId)
622
+ // verify required parameter 'packageId' is not null or undefined
623
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost', 'packageId', packageId)
624
+ const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetables/batch`
625
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
626
+ .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
627
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
628
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
629
+ let baseOptions;
630
+ if (configuration) {
631
+ baseOptions = configuration.baseOptions;
632
+ }
633
+
634
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
635
+ const localVarHeaderParameter = {} as any;
636
+ const localVarQueryParameter = {} as any;
637
+
638
+ // authentication oauth2 required
639
+ // oauth required
640
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
641
+
642
+
643
+
644
+ localVarHeaderParameter['Content-Type'] = 'application/json';
645
+
646
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
647
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
648
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
649
+ localVarRequestOptions.data = serializeDataIfNeeded(batchDealPackageAppointmentTimetablesCommand, localVarRequestOptions, configuration)
650
+
651
+ return {
652
+ url: toPathString(localVarUrlObj),
653
+ options: localVarRequestOptions,
654
+ };
655
+ },
656
+ /**
657
+ *
658
+ * @summary Get DealPackage appointment timetables
659
+ * @param {string} dealId
660
+ * @param {string} packageId
661
+ * @param {DayOfWeek} [dayOfWeek]
662
+ * @param {number} [page]
663
+ * @param {number} [limit]
664
+ * @param {Date} [lastRetrieved]
665
+ * @param {*} [options] Override http request option.
666
+ * @throws {RequiredError}
667
+ */
668
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet: async (dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
669
+ // verify required parameter 'dealId' is not null or undefined
670
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'dealId', dealId)
671
+ // verify required parameter 'packageId' is not null or undefined
672
+ assertParamExists('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'packageId', packageId)
673
+ const localVarPath = `/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetables`
674
+ .replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
675
+ .replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
676
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
677
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
678
+ let baseOptions;
679
+ if (configuration) {
680
+ baseOptions = configuration.baseOptions;
681
+ }
682
+
683
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
684
+ const localVarHeaderParameter = {} as any;
685
+ const localVarQueryParameter = {} as any;
206
686
 
207
- if (languageCode !== undefined) {
208
- localVarQueryParameter['LanguageCode'] = languageCode;
209
- }
687
+ // authentication oauth2 required
688
+ // oauth required
689
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
210
690
 
211
- if (showHidden !== undefined) {
212
- localVarQueryParameter['ShowHidden'] = showHidden;
691
+ if (dayOfWeek !== undefined) {
692
+ localVarQueryParameter['DayOfWeek'] = dayOfWeek;
213
693
  }
214
694
 
215
695
  if (page !== undefined) {
@@ -1086,6 +1566,63 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
1086
1566
  export const DealsApiFp = function(configuration?: Configuration) {
1087
1567
  const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
1088
1568
  return {
1569
+ /**
1570
+ *
1571
+ * @summary Get DealAppointment tiemtable overrides
1572
+ * @param {string} dealId
1573
+ * @param {boolean} [includesPreviousItems]
1574
+ * @param {Date} [startDate]
1575
+ * @param {Date} [endDate]
1576
+ * @param {DayOfWeek} [dayOfWeek]
1577
+ * @param {number} [page]
1578
+ * @param {number} [limit]
1579
+ * @param {Date} [lastRetrieved]
1580
+ * @param {*} [options] Override http request option.
1581
+ * @throws {RequiredError}
1582
+ */
1583
+ async apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetableOverridesModel>> {
1584
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options);
1585
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1586
+ },
1587
+ /**
1588
+ *
1589
+ * @summary Save Deal appointment timetable overrides
1590
+ * @param {string} dealId
1591
+ * @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
1592
+ * @param {*} [options] Override http request option.
1593
+ * @throws {RequiredError}
1594
+ */
1595
+ async apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SaveAppointmentTimetableOverridesResultModel>> {
1596
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options);
1597
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1598
+ },
1599
+ /**
1600
+ *
1601
+ * @summary Add, update and delete deal appointment timetable
1602
+ * @param {string} dealId
1603
+ * @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ */
1607
+ async apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchAppointmentTimetablesResultModel>> {
1608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options);
1609
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1610
+ },
1611
+ /**
1612
+ *
1613
+ * @summary Get deal appointment timetables
1614
+ * @param {string} dealId
1615
+ * @param {DayOfWeek} [dayOfWeek]
1616
+ * @param {number} [page]
1617
+ * @param {number} [limit]
1618
+ * @param {Date} [lastRetrieved]
1619
+ * @param {*} [options] Override http request option.
1620
+ * @throws {RequiredError}
1621
+ */
1622
+ async apiV1DealsDealIdAppointmenttimetablesGet(dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
1623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options);
1624
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1625
+ },
1089
1626
  /**
1090
1627
  *
1091
1628
  * @summary Delete deal.
@@ -1132,6 +1669,67 @@ export const DealsApiFp = function(configuration?: Configuration) {
1132
1669
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options);
1133
1670
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1134
1671
  },
1672
+ /**
1673
+ *
1674
+ * @summary Get DealPackage appointment timetable overrides
1675
+ * @param {string} dealId
1676
+ * @param {string} packageId
1677
+ * @param {boolean} [includesPreviousItems]
1678
+ * @param {Date} [startDate]
1679
+ * @param {Date} [endDate]
1680
+ * @param {DayOfWeek} [dayOfWeek]
1681
+ * @param {number} [page]
1682
+ * @param {number} [limit]
1683
+ * @param {Date} [lastRetrieved]
1684
+ * @param {*} [options] Override http request option.
1685
+ * @throws {RequiredError}
1686
+ */
1687
+ async apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetableOverridesModel>> {
1688
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options);
1689
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1690
+ },
1691
+ /**
1692
+ *
1693
+ * @summary Save DealPackage appointment timetable overrides
1694
+ * @param {string} dealId
1695
+ * @param {string} packageId
1696
+ * @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
1697
+ * @param {*} [options] Override http request option.
1698
+ * @throws {RequiredError}
1699
+ */
1700
+ async apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SaveAppointmentTimetableOverridesResultModel>> {
1701
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options);
1702
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1703
+ },
1704
+ /**
1705
+ *
1706
+ * @summary Add, update and delete DealPackage appointment timetable
1707
+ * @param {string} dealId
1708
+ * @param {string} packageId
1709
+ * @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
1710
+ * @param {*} [options] Override http request option.
1711
+ * @throws {RequiredError}
1712
+ */
1713
+ async apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<BatchAppointmentTimetablesResultModel>> {
1714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options);
1715
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1716
+ },
1717
+ /**
1718
+ *
1719
+ * @summary Get DealPackage appointment timetables
1720
+ * @param {string} dealId
1721
+ * @param {string} packageId
1722
+ * @param {DayOfWeek} [dayOfWeek]
1723
+ * @param {number} [page]
1724
+ * @param {number} [limit]
1725
+ * @param {Date} [lastRetrieved]
1726
+ * @param {*} [options] Override http request option.
1727
+ * @throws {RequiredError}
1728
+ */
1729
+ async apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
1730
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options);
1731
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
1732
+ },
1135
1733
  /**
1136
1734
  *
1137
1735
  * @summary Delete DealPackage.
@@ -1358,6 +1956,59 @@ export const DealsApiFp = function(configuration?: Configuration) {
1358
1956
  export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
1359
1957
  const localVarFp = DealsApiFp(configuration)
1360
1958
  return {
1959
+ /**
1960
+ *
1961
+ * @summary Get DealAppointment tiemtable overrides
1962
+ * @param {string} dealId
1963
+ * @param {boolean} [includesPreviousItems]
1964
+ * @param {Date} [startDate]
1965
+ * @param {Date} [endDate]
1966
+ * @param {DayOfWeek} [dayOfWeek]
1967
+ * @param {number} [page]
1968
+ * @param {number} [limit]
1969
+ * @param {Date} [lastRetrieved]
1970
+ * @param {*} [options] Override http request option.
1971
+ * @throws {RequiredError}
1972
+ */
1973
+ apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetableOverridesModel> {
1974
+ return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
1975
+ },
1976
+ /**
1977
+ *
1978
+ * @summary Save Deal appointment timetable overrides
1979
+ * @param {string} dealId
1980
+ * @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
1981
+ * @param {*} [options] Override http request option.
1982
+ * @throws {RequiredError}
1983
+ */
1984
+ apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options?: any): AxiosPromise<SaveAppointmentTimetableOverridesResultModel> {
1985
+ return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then((request) => request(axios, basePath));
1986
+ },
1987
+ /**
1988
+ *
1989
+ * @summary Add, update and delete deal appointment timetable
1990
+ * @param {string} dealId
1991
+ * @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
1992
+ * @param {*} [options] Override http request option.
1993
+ * @throws {RequiredError}
1994
+ */
1995
+ apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options?: any): AxiosPromise<BatchAppointmentTimetablesResultModel> {
1996
+ return localVarFp.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then((request) => request(axios, basePath));
1997
+ },
1998
+ /**
1999
+ *
2000
+ * @summary Get deal appointment timetables
2001
+ * @param {string} dealId
2002
+ * @param {DayOfWeek} [dayOfWeek]
2003
+ * @param {number} [page]
2004
+ * @param {number} [limit]
2005
+ * @param {Date} [lastRetrieved]
2006
+ * @param {*} [options] Override http request option.
2007
+ * @throws {RequiredError}
2008
+ */
2009
+ apiV1DealsDealIdAppointmenttimetablesGet(dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetablesModel> {
2010
+ return localVarFp.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2011
+ },
1361
2012
  /**
1362
2013
  *
1363
2014
  * @summary Delete deal.
@@ -1401,6 +2052,63 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
1401
2052
  apiV1DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealPackagesModel> {
1402
2053
  return localVarFp.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
1403
2054
  },
2055
+ /**
2056
+ *
2057
+ * @summary Get DealPackage appointment timetable overrides
2058
+ * @param {string} dealId
2059
+ * @param {string} packageId
2060
+ * @param {boolean} [includesPreviousItems]
2061
+ * @param {Date} [startDate]
2062
+ * @param {Date} [endDate]
2063
+ * @param {DayOfWeek} [dayOfWeek]
2064
+ * @param {number} [page]
2065
+ * @param {number} [limit]
2066
+ * @param {Date} [lastRetrieved]
2067
+ * @param {*} [options] Override http request option.
2068
+ * @throws {RequiredError}
2069
+ */
2070
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetableOverridesModel> {
2071
+ return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2072
+ },
2073
+ /**
2074
+ *
2075
+ * @summary Save DealPackage appointment timetable overrides
2076
+ * @param {string} dealId
2077
+ * @param {string} packageId
2078
+ * @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
2079
+ * @param {*} [options] Override http request option.
2080
+ * @throws {RequiredError}
2081
+ */
2082
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options?: any): AxiosPromise<SaveAppointmentTimetableOverridesResultModel> {
2083
+ return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options).then((request) => request(axios, basePath));
2084
+ },
2085
+ /**
2086
+ *
2087
+ * @summary Add, update and delete DealPackage appointment timetable
2088
+ * @param {string} dealId
2089
+ * @param {string} packageId
2090
+ * @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
2091
+ * @param {*} [options] Override http request option.
2092
+ * @throws {RequiredError}
2093
+ */
2094
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options?: any): AxiosPromise<BatchAppointmentTimetablesResultModel> {
2095
+ return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options).then((request) => request(axios, basePath));
2096
+ },
2097
+ /**
2098
+ *
2099
+ * @summary Get DealPackage appointment timetables
2100
+ * @param {string} dealId
2101
+ * @param {string} packageId
2102
+ * @param {DayOfWeek} [dayOfWeek]
2103
+ * @param {number} [page]
2104
+ * @param {number} [limit]
2105
+ * @param {Date} [lastRetrieved]
2106
+ * @param {*} [options] Override http request option.
2107
+ * @throws {RequiredError}
2108
+ */
2109
+ apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<AppointmentTimetablesModel> {
2110
+ return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
2111
+ },
1404
2112
  /**
1405
2113
  *
1406
2114
  * @summary Delete DealPackage.
@@ -1613,6 +2321,67 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
1613
2321
  * @extends {BaseAPI}
1614
2322
  */
1615
2323
  export class DealsApi extends BaseAPI {
2324
+ /**
2325
+ *
2326
+ * @summary Get DealAppointment tiemtable overrides
2327
+ * @param {string} dealId
2328
+ * @param {boolean} [includesPreviousItems]
2329
+ * @param {Date} [startDate]
2330
+ * @param {Date} [endDate]
2331
+ * @param {DayOfWeek} [dayOfWeek]
2332
+ * @param {number} [page]
2333
+ * @param {number} [limit]
2334
+ * @param {Date} [lastRetrieved]
2335
+ * @param {*} [options] Override http request option.
2336
+ * @throws {RequiredError}
2337
+ * @memberof DealsApi
2338
+ */
2339
+ public apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
2340
+ return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
2341
+ }
2342
+
2343
+ /**
2344
+ *
2345
+ * @summary Save Deal appointment timetable overrides
2346
+ * @param {string} dealId
2347
+ * @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
2348
+ * @param {*} [options] Override http request option.
2349
+ * @throws {RequiredError}
2350
+ * @memberof DealsApi
2351
+ */
2352
+ public apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId: string, saveDealAppointmentTimetableOverridesCommand?: SaveDealAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig) {
2353
+ return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then((request) => request(this.axios, this.basePath));
2354
+ }
2355
+
2356
+ /**
2357
+ *
2358
+ * @summary Add, update and delete deal appointment timetable
2359
+ * @param {string} dealId
2360
+ * @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
2361
+ * @param {*} [options] Override http request option.
2362
+ * @throws {RequiredError}
2363
+ * @memberof DealsApi
2364
+ */
2365
+ public apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId: string, batchDealAppointmentTimetablesCommand?: BatchDealAppointmentTimetablesCommand, options?: AxiosRequestConfig) {
2366
+ return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then((request) => request(this.axios, this.basePath));
2367
+ }
2368
+
2369
+ /**
2370
+ *
2371
+ * @summary Get deal appointment timetables
2372
+ * @param {string} dealId
2373
+ * @param {DayOfWeek} [dayOfWeek]
2374
+ * @param {number} [page]
2375
+ * @param {number} [limit]
2376
+ * @param {Date} [lastRetrieved]
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ * @memberof DealsApi
2380
+ */
2381
+ public apiV1DealsDealIdAppointmenttimetablesGet(dealId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
2382
+ return DealsApiFp(this.configuration).apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
2383
+ }
2384
+
1616
2385
  /**
1617
2386
  *
1618
2387
  * @summary Delete deal.
@@ -1662,6 +2431,71 @@ export class DealsApi extends BaseAPI {
1662
2431
  return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
1663
2432
  }
1664
2433
 
2434
+ /**
2435
+ *
2436
+ * @summary Get DealPackage appointment timetable overrides
2437
+ * @param {string} dealId
2438
+ * @param {string} packageId
2439
+ * @param {boolean} [includesPreviousItems]
2440
+ * @param {Date} [startDate]
2441
+ * @param {Date} [endDate]
2442
+ * @param {DayOfWeek} [dayOfWeek]
2443
+ * @param {number} [page]
2444
+ * @param {number} [limit]
2445
+ * @param {Date} [lastRetrieved]
2446
+ * @param {*} [options] Override http request option.
2447
+ * @throws {RequiredError}
2448
+ * @memberof DealsApi
2449
+ */
2450
+ public apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId: string, packageId: string, includesPreviousItems?: boolean, startDate?: Date, endDate?: Date, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
2451
+ return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
2452
+ }
2453
+
2454
+ /**
2455
+ *
2456
+ * @summary Save DealPackage appointment timetable overrides
2457
+ * @param {string} dealId
2458
+ * @param {string} packageId
2459
+ * @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
2460
+ * @param {*} [options] Override http request option.
2461
+ * @throws {RequiredError}
2462
+ * @memberof DealsApi
2463
+ */
2464
+ public apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId: string, packageId: string, saveDealPackageAppointmentTimetableOverridesCommand?: SaveDealPackageAppointmentTimetableOverridesCommand, options?: AxiosRequestConfig) {
2465
+ return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options).then((request) => request(this.axios, this.basePath));
2466
+ }
2467
+
2468
+ /**
2469
+ *
2470
+ * @summary Add, update and delete DealPackage appointment timetable
2471
+ * @param {string} dealId
2472
+ * @param {string} packageId
2473
+ * @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
2474
+ * @param {*} [options] Override http request option.
2475
+ * @throws {RequiredError}
2476
+ * @memberof DealsApi
2477
+ */
2478
+ public apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId: string, packageId: string, batchDealPackageAppointmentTimetablesCommand?: BatchDealPackageAppointmentTimetablesCommand, options?: AxiosRequestConfig) {
2479
+ return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options).then((request) => request(this.axios, this.basePath));
2480
+ }
2481
+
2482
+ /**
2483
+ *
2484
+ * @summary Get DealPackage appointment timetables
2485
+ * @param {string} dealId
2486
+ * @param {string} packageId
2487
+ * @param {DayOfWeek} [dayOfWeek]
2488
+ * @param {number} [page]
2489
+ * @param {number} [limit]
2490
+ * @param {Date} [lastRetrieved]
2491
+ * @param {*} [options] Override http request option.
2492
+ * @throws {RequiredError}
2493
+ * @memberof DealsApi
2494
+ */
2495
+ public apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, dayOfWeek?: DayOfWeek, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) {
2496
+ return DealsApiFp(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
2497
+ }
2498
+
1665
2499
  /**
1666
2500
  *
1667
2501
  * @summary Delete DealPackage.