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.
- package/lib/api/appointments-api.d.ts +395 -0
- package/lib/api/appointments-api.d.ts.map +1 -0
- package/lib/api/appointments-api.js +929 -0
- package/lib/api/deals-api.d.ts +393 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +912 -10
- package/lib/api/doctor-affiliations-api.d.ts +191 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +437 -0
- package/lib/api/hospitals-api.d.ts +611 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +1439 -44
- package/lib/api/services-api.d.ts +8 -8
- package/lib/api/services-api.js +8 -8
- package/lib/api/survey-forms-api.d.ts +6 -6
- package/lib/api/survey-forms-api.d.ts.map +1 -1
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/appointment-change-log-model.d.ts +44 -0
- package/lib/models/appointment-change-log-model.d.ts.map +1 -0
- package/lib/models/appointment-change-log-model.js +15 -0
- package/lib/models/appointment-item-model.d.ts +282 -0
- package/lib/models/appointment-item-model.d.ts.map +1 -0
- package/lib/models/appointment-item-model.js +15 -0
- package/lib/models/appointment-model.d.ts +302 -0
- package/lib/models/appointment-model.d.ts.map +1 -0
- package/lib/models/appointment-model.js +15 -0
- package/lib/models/appointment-option-model.d.ts +63 -0
- package/lib/models/appointment-option-model.d.ts.map +1 -0
- package/lib/models/appointment-option-model.js +15 -0
- package/lib/models/appointment-status.d.ts +27 -0
- package/lib/models/appointment-status.d.ts.map +1 -0
- package/lib/models/appointment-status.js +30 -0
- package/lib/models/appointment-timetable-model.d.ts +44 -0
- package/lib/models/appointment-timetable-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-model.js +15 -0
- package/lib/models/appointment-timetable-override-model.d.ts +56 -0
- package/lib/models/appointment-timetable-override-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-override-model.js +15 -0
- package/lib/models/appointment-timetable-overrides-model.d.ts +33 -0
- package/lib/models/appointment-timetable-overrides-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-overrides-model.js +15 -0
- package/lib/models/appointment-timetables-model.d.ts +33 -0
- package/lib/models/appointment-timetables-model.d.ts.map +1 -0
- package/lib/models/appointment-timetables-model.js +15 -0
- package/lib/models/appointment-type.d.ts +26 -0
- package/lib/models/appointment-type.d.ts.map +1 -0
- package/lib/models/appointment-type.js +29 -0
- package/lib/models/appointments-model.d.ts +33 -0
- package/lib/models/appointments-model.d.ts.map +1 -0
- package/lib/models/appointments-model.js +15 -0
- package/lib/models/approve-appointment-command.d.ts +31 -0
- package/lib/models/approve-appointment-command.d.ts.map +1 -0
- package/lib/models/approve-appointment-command.js +15 -0
- package/lib/models/batch-add-appointment-timetable-model.d.ts +38 -0
- package/lib/models/batch-add-appointment-timetable-model.d.ts.map +1 -0
- package/lib/models/batch-add-appointment-timetable-model.js +15 -0
- package/lib/models/batch-appointment-timetables-result-model.d.ts +38 -0
- package/lib/models/batch-appointment-timetables-result-model.d.ts.map +1 -0
- package/lib/models/batch-appointment-timetables-result-model.js +15 -0
- package/lib/models/batch-deal-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-deal-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-deal-appointment-timetables-command.js +15 -0
- package/lib/models/batch-deal-package-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-deal-package-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-deal-package-appointment-timetables-command.js +15 -0
- package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-doctor-affiliation-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-doctor-affiliation-appointment-timetables-command.js +15 -0
- package/lib/models/batch-hospital-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-hospital-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-hospital-appointment-timetables-command.js +15 -0
- package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-hospital-specialty-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-hospital-specialty-appointment-timetables-command.js +15 -0
- package/lib/models/batch-service-appointment-timetables-command.d.ts +39 -0
- package/lib/models/batch-service-appointment-timetables-command.d.ts.map +1 -0
- package/lib/models/batch-service-appointment-timetables-command.js +15 -0
- package/lib/models/batch-update-appointment-timetable-model.d.ts +44 -0
- package/lib/models/batch-update-appointment-timetable-model.d.ts.map +1 -0
- package/lib/models/batch-update-appointment-timetable-model.js +15 -0
- package/lib/models/create-article-command.d.ts +6 -0
- package/lib/models/create-article-command.d.ts.map +1 -1
- package/lib/models/create-deal-command.d.ts +7 -0
- package/lib/models/create-deal-command.d.ts.map +1 -1
- package/lib/models/create-deal-package-command.d.ts +7 -0
- package/lib/models/create-deal-package-command.d.ts.map +1 -1
- package/lib/models/create-doctor-affiliation-command.d.ts +7 -0
- package/lib/models/create-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/create-hospital-command.d.ts +7 -0
- package/lib/models/create-hospital-command.d.ts.map +1 -1
- package/lib/models/create-hospital-service-command.d.ts +7 -0
- package/lib/models/create-hospital-service-command.d.ts.map +1 -1
- package/lib/models/create-hospital-specialty-command.d.ts +7 -0
- package/lib/models/create-hospital-specialty-command.d.ts.map +1 -1
- package/lib/models/deal-item-model.d.ts +7 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +7 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/deal-package-item-model.d.ts +7 -0
- package/lib/models/deal-package-item-model.d.ts.map +1 -1
- package/lib/models/deal-package-model.d.ts +7 -0
- package/lib/models/deal-package-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +7 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/hospital-service-item-model.d.ts +7 -0
- package/lib/models/hospital-service-item-model.d.ts.map +1 -1
- package/lib/models/hospital-service-model.d.ts +7 -0
- package/lib/models/hospital-service-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-item-model.d.ts +7 -0
- package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-model.d.ts +7 -0
- package/lib/models/hospital-specialty-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +30 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +30 -0
- package/lib/models/notification-code.d.ts +9 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +10 -1
- package/lib/models/reject-appointment-command.d.ts +32 -0
- package/lib/models/reject-appointment-command.d.ts.map +1 -0
- package/lib/models/reject-appointment-command.js +15 -0
- package/lib/models/save-appointment-timetable-override-model.d.ts +43 -0
- package/lib/models/save-appointment-timetable-override-model.d.ts.map +1 -0
- package/lib/models/save-appointment-timetable-override-model.js +15 -0
- package/lib/models/save-appointment-timetable-overrides-result-model.d.ts +26 -0
- package/lib/models/save-appointment-timetable-overrides-result-model.d.ts.map +1 -0
- package/lib/models/save-appointment-timetable-overrides-result-model.js +15 -0
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-deal-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-deal-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-deal-package-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-deal-package-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-doctor-affiliation-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-hospital-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-hospital-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-hospital-specialty-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/save-service-appointment-timetable-overrides-command.d.ts +26 -0
- package/lib/models/save-service-appointment-timetable-overrides-command.d.ts.map +1 -0
- package/lib/models/save-service-appointment-timetable-overrides-command.js +15 -0
- package/lib/models/update-deal-command.d.ts +7 -0
- package/lib/models/update-deal-command.d.ts.map +1 -1
- package/lib/models/update-deal-package-command.d.ts +7 -0
- package/lib/models/update-deal-package-command.d.ts.map +1 -1
- package/lib/models/update-doctor-affiliation-command.d.ts +7 -0
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/lib/models/update-hospital-command.d.ts +7 -0
- package/lib/models/update-hospital-command.d.ts.map +1 -1
- package/lib/models/update-hospital-service-command.d.ts +7 -0
- package/lib/models/update-hospital-service-command.d.ts.map +1 -1
- package/lib/models/update-hospital-specialty-command.d.ts +7 -0
- package/lib/models/update-hospital-specialty-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +31 -0
- package/src/api/appointments-api.ts +802 -0
- package/src/api/deals-api.ts +842 -8
- package/src/api/doctor-affiliations-api.ts +408 -0
- package/src/api/hospitals-api.ts +1412 -124
- package/src/api/services-api.ts +8 -8
- package/src/api/survey-forms-api.ts +4 -4
- package/src/api.ts +1 -0
- package/src/models/appointment-change-log-model.ts +51 -0
- package/src/models/appointment-item-model.ts +297 -0
- package/src/models/appointment-model.ts +321 -0
- package/src/models/appointment-option-model.ts +72 -0
- package/src/models/appointment-status.ts +36 -0
- package/src/models/appointment-timetable-model.ts +51 -0
- package/src/models/appointment-timetable-override-model.ts +63 -0
- package/src/models/appointment-timetable-overrides-model.ts +42 -0
- package/src/models/appointment-timetables-model.ts +42 -0
- package/src/models/appointment-type.ts +35 -0
- package/src/models/appointments-model.ts +42 -0
- package/src/models/approve-appointment-command.ts +36 -0
- package/src/models/batch-add-appointment-timetable-model.ts +45 -0
- package/src/models/batch-appointment-timetables-result-model.ts +45 -0
- package/src/models/batch-deal-appointment-timetables-command.ts +48 -0
- package/src/models/batch-deal-package-appointment-timetables-command.ts +48 -0
- package/src/models/batch-doctor-affiliation-appointment-timetables-command.ts +48 -0
- package/src/models/batch-hospital-appointment-timetables-command.ts +48 -0
- package/src/models/batch-hospital-specialty-appointment-timetables-command.ts +48 -0
- package/src/models/batch-service-appointment-timetables-command.ts +48 -0
- package/src/models/batch-update-appointment-timetable-model.ts +51 -0
- package/src/models/create-article-command.ts +6 -0
- package/src/models/create-deal-command.ts +9 -0
- package/src/models/create-deal-package-command.ts +9 -0
- package/src/models/create-doctor-affiliation-command.ts +9 -0
- package/src/models/create-hospital-command.ts +9 -0
- package/src/models/create-hospital-service-command.ts +9 -0
- package/src/models/create-hospital-specialty-command.ts +9 -0
- package/src/models/deal-item-model.ts +9 -0
- package/src/models/deal-model.ts +9 -0
- package/src/models/deal-package-item-model.ts +9 -0
- package/src/models/deal-package-model.ts +9 -0
- package/src/models/doctor-affiliation-item-model.ts +9 -0
- package/src/models/doctor-affiliation-model.ts +9 -0
- package/src/models/hospital-item-model.ts +9 -0
- package/src/models/hospital-model.ts +9 -0
- package/src/models/hospital-service-item-model.ts +9 -0
- package/src/models/hospital-service-model.ts +9 -0
- package/src/models/hospital-specialty-item-model.ts +9 -0
- package/src/models/hospital-specialty-model.ts +9 -0
- package/src/models/index.ts +30 -0
- package/src/models/notification-code.ts +10 -1
- package/src/models/reject-appointment-command.ts +39 -0
- package/src/models/save-appointment-timetable-override-model.ts +48 -0
- package/src/models/save-appointment-timetable-overrides-result-model.ts +33 -0
- package/src/models/save-deal-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-deal-package-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-doctor-affiliation-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-hospital-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-hospital-specialty-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/save-service-appointment-timetable-overrides-command.ts +33 -0
- package/src/models/update-deal-command.ts +9 -0
- package/src/models/update-deal-package-command.ts +9 -0
- package/src/models/update-doctor-affiliation-command.ts +9 -0
- package/src/models/update-hospital-command.ts +9 -0
- package/src/models/update-hospital-service-command.ts +9 -0
- package/src/models/update-hospital-specialty-command.ts +9 -0
package/lib/api/deals-api.js
CHANGED
|
@@ -92,6 +92,236 @@ var base_1 = require("../base");
|
|
|
92
92
|
var DealsApiAxiosParamCreator = function (configuration) {
|
|
93
93
|
var _this = this;
|
|
94
94
|
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
98
|
+
* @param {string} dealId
|
|
99
|
+
* @param {boolean} [includesPreviousItems]
|
|
100
|
+
* @param {Date} [startDate]
|
|
101
|
+
* @param {Date} [endDate]
|
|
102
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
103
|
+
* @param {number} [page]
|
|
104
|
+
* @param {number} [limit]
|
|
105
|
+
* @param {Date} [lastRetrieved]
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
apiV1DealsDealIdAppointmenttimetableoverridesGet: function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
110
|
+
if (options === void 0) { options = {}; }
|
|
111
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
+
return __generator(this, function (_a) {
|
|
114
|
+
switch (_a.label) {
|
|
115
|
+
case 0:
|
|
116
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
117
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetableoverridesGet', 'dealId', dealId);
|
|
118
|
+
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetableoverrides"
|
|
119
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
120
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
|
+
if (configuration) {
|
|
122
|
+
baseOptions = configuration.baseOptions;
|
|
123
|
+
}
|
|
124
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
125
|
+
localVarHeaderParameter = {};
|
|
126
|
+
localVarQueryParameter = {};
|
|
127
|
+
// authentication oauth2 required
|
|
128
|
+
// oauth required
|
|
129
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
130
|
+
case 1:
|
|
131
|
+
// authentication oauth2 required
|
|
132
|
+
// oauth required
|
|
133
|
+
_a.sent();
|
|
134
|
+
if (includesPreviousItems !== undefined) {
|
|
135
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
136
|
+
}
|
|
137
|
+
if (startDate !== undefined) {
|
|
138
|
+
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
139
|
+
startDate.toISOString() :
|
|
140
|
+
startDate;
|
|
141
|
+
}
|
|
142
|
+
if (endDate !== undefined) {
|
|
143
|
+
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
144
|
+
endDate.toISOString() :
|
|
145
|
+
endDate;
|
|
146
|
+
}
|
|
147
|
+
if (dayOfWeek !== undefined) {
|
|
148
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
149
|
+
}
|
|
150
|
+
if (page !== undefined) {
|
|
151
|
+
localVarQueryParameter['page'] = page;
|
|
152
|
+
}
|
|
153
|
+
if (limit !== undefined) {
|
|
154
|
+
localVarQueryParameter['limit'] = limit;
|
|
155
|
+
}
|
|
156
|
+
if (lastRetrieved !== undefined) {
|
|
157
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
158
|
+
lastRetrieved.toISOString() :
|
|
159
|
+
lastRetrieved;
|
|
160
|
+
}
|
|
161
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
162
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
+
return [2 /*return*/, {
|
|
165
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
166
|
+
options: localVarRequestOptions,
|
|
167
|
+
}];
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
},
|
|
172
|
+
/**
|
|
173
|
+
*
|
|
174
|
+
* @summary Save Deal appointment timetable overrides
|
|
175
|
+
* @param {string} dealId
|
|
176
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
177
|
+
* @param {*} [options] Override http request option.
|
|
178
|
+
* @throws {RequiredError}
|
|
179
|
+
*/
|
|
180
|
+
apiV1DealsDealIdAppointmenttimetableoverridesPost: function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
181
|
+
if (options === void 0) { options = {}; }
|
|
182
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
183
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
184
|
+
return __generator(this, function (_a) {
|
|
185
|
+
switch (_a.label) {
|
|
186
|
+
case 0:
|
|
187
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
188
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetableoverridesPost', 'dealId', dealId);
|
|
189
|
+
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetableoverrides"
|
|
190
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
191
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
192
|
+
if (configuration) {
|
|
193
|
+
baseOptions = configuration.baseOptions;
|
|
194
|
+
}
|
|
195
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
196
|
+
localVarHeaderParameter = {};
|
|
197
|
+
localVarQueryParameter = {};
|
|
198
|
+
// authentication oauth2 required
|
|
199
|
+
// oauth required
|
|
200
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
201
|
+
case 1:
|
|
202
|
+
// authentication oauth2 required
|
|
203
|
+
// oauth required
|
|
204
|
+
_a.sent();
|
|
205
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
206
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
207
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
208
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
209
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveDealAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration);
|
|
210
|
+
return [2 /*return*/, {
|
|
211
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
212
|
+
options: localVarRequestOptions,
|
|
213
|
+
}];
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
});
|
|
217
|
+
},
|
|
218
|
+
/**
|
|
219
|
+
*
|
|
220
|
+
* @summary Add, update and delete deal appointment timetable
|
|
221
|
+
* @param {string} dealId
|
|
222
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
223
|
+
* @param {*} [options] Override http request option.
|
|
224
|
+
* @throws {RequiredError}
|
|
225
|
+
*/
|
|
226
|
+
apiV1DealsDealIdAppointmenttimetablesBatchPost: function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
227
|
+
if (options === void 0) { options = {}; }
|
|
228
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
229
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
230
|
+
return __generator(this, function (_a) {
|
|
231
|
+
switch (_a.label) {
|
|
232
|
+
case 0:
|
|
233
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
234
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetablesBatchPost', 'dealId', dealId);
|
|
235
|
+
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetables/batch"
|
|
236
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
237
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
238
|
+
if (configuration) {
|
|
239
|
+
baseOptions = configuration.baseOptions;
|
|
240
|
+
}
|
|
241
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
242
|
+
localVarHeaderParameter = {};
|
|
243
|
+
localVarQueryParameter = {};
|
|
244
|
+
// authentication oauth2 required
|
|
245
|
+
// oauth required
|
|
246
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
247
|
+
case 1:
|
|
248
|
+
// authentication oauth2 required
|
|
249
|
+
// oauth required
|
|
250
|
+
_a.sent();
|
|
251
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
252
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
253
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
254
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
255
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchDealAppointmentTimetablesCommand, localVarRequestOptions, configuration);
|
|
256
|
+
return [2 /*return*/, {
|
|
257
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
258
|
+
options: localVarRequestOptions,
|
|
259
|
+
}];
|
|
260
|
+
}
|
|
261
|
+
});
|
|
262
|
+
});
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
*
|
|
266
|
+
* @summary Get deal appointment timetables
|
|
267
|
+
* @param {string} dealId
|
|
268
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
269
|
+
* @param {number} [page]
|
|
270
|
+
* @param {number} [limit]
|
|
271
|
+
* @param {Date} [lastRetrieved]
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
apiV1DealsDealIdAppointmenttimetablesGet: function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
276
|
+
if (options === void 0) { options = {}; }
|
|
277
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
278
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
279
|
+
return __generator(this, function (_a) {
|
|
280
|
+
switch (_a.label) {
|
|
281
|
+
case 0:
|
|
282
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
283
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdAppointmenttimetablesGet', 'dealId', dealId);
|
|
284
|
+
localVarPath = "/api/v1/deals/{dealId}/appointmenttimetables"
|
|
285
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)));
|
|
286
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
287
|
+
if (configuration) {
|
|
288
|
+
baseOptions = configuration.baseOptions;
|
|
289
|
+
}
|
|
290
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
291
|
+
localVarHeaderParameter = {};
|
|
292
|
+
localVarQueryParameter = {};
|
|
293
|
+
// authentication oauth2 required
|
|
294
|
+
// oauth required
|
|
295
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
296
|
+
case 1:
|
|
297
|
+
// authentication oauth2 required
|
|
298
|
+
// oauth required
|
|
299
|
+
_a.sent();
|
|
300
|
+
if (dayOfWeek !== undefined) {
|
|
301
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
302
|
+
}
|
|
303
|
+
if (page !== undefined) {
|
|
304
|
+
localVarQueryParameter['page'] = page;
|
|
305
|
+
}
|
|
306
|
+
if (limit !== undefined) {
|
|
307
|
+
localVarQueryParameter['limit'] = limit;
|
|
308
|
+
}
|
|
309
|
+
if (lastRetrieved !== undefined) {
|
|
310
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
311
|
+
lastRetrieved.toISOString() :
|
|
312
|
+
lastRetrieved;
|
|
313
|
+
}
|
|
314
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
315
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
316
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
317
|
+
return [2 /*return*/, {
|
|
318
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
319
|
+
options: localVarRequestOptions,
|
|
320
|
+
}];
|
|
321
|
+
}
|
|
322
|
+
});
|
|
323
|
+
});
|
|
324
|
+
},
|
|
95
325
|
/**
|
|
96
326
|
*
|
|
97
327
|
* @summary Delete deal.
|
|
@@ -275,6 +505,252 @@ var DealsApiAxiosParamCreator = function (configuration) {
|
|
|
275
505
|
});
|
|
276
506
|
});
|
|
277
507
|
},
|
|
508
|
+
/**
|
|
509
|
+
*
|
|
510
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
511
|
+
* @param {string} dealId
|
|
512
|
+
* @param {string} packageId
|
|
513
|
+
* @param {boolean} [includesPreviousItems]
|
|
514
|
+
* @param {Date} [startDate]
|
|
515
|
+
* @param {Date} [endDate]
|
|
516
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
517
|
+
* @param {number} [page]
|
|
518
|
+
* @param {number} [limit]
|
|
519
|
+
* @param {Date} [lastRetrieved]
|
|
520
|
+
* @param {*} [options] Override http request option.
|
|
521
|
+
* @throws {RequiredError}
|
|
522
|
+
*/
|
|
523
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet: function (dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
524
|
+
if (options === void 0) { options = {}; }
|
|
525
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
526
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
527
|
+
return __generator(this, function (_a) {
|
|
528
|
+
switch (_a.label) {
|
|
529
|
+
case 0:
|
|
530
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
531
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet', 'dealId', dealId);
|
|
532
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
533
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet', 'packageId', packageId);
|
|
534
|
+
localVarPath = "/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetableoverrides"
|
|
535
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)))
|
|
536
|
+
.replace("{".concat("packageId", "}"), encodeURIComponent(String(packageId)));
|
|
537
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
538
|
+
if (configuration) {
|
|
539
|
+
baseOptions = configuration.baseOptions;
|
|
540
|
+
}
|
|
541
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
542
|
+
localVarHeaderParameter = {};
|
|
543
|
+
localVarQueryParameter = {};
|
|
544
|
+
// authentication oauth2 required
|
|
545
|
+
// oauth required
|
|
546
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
547
|
+
case 1:
|
|
548
|
+
// authentication oauth2 required
|
|
549
|
+
// oauth required
|
|
550
|
+
_a.sent();
|
|
551
|
+
if (includesPreviousItems !== undefined) {
|
|
552
|
+
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
553
|
+
}
|
|
554
|
+
if (startDate !== undefined) {
|
|
555
|
+
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
556
|
+
startDate.toISOString() :
|
|
557
|
+
startDate;
|
|
558
|
+
}
|
|
559
|
+
if (endDate !== undefined) {
|
|
560
|
+
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
561
|
+
endDate.toISOString() :
|
|
562
|
+
endDate;
|
|
563
|
+
}
|
|
564
|
+
if (dayOfWeek !== undefined) {
|
|
565
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
566
|
+
}
|
|
567
|
+
if (page !== undefined) {
|
|
568
|
+
localVarQueryParameter['page'] = page;
|
|
569
|
+
}
|
|
570
|
+
if (limit !== undefined) {
|
|
571
|
+
localVarQueryParameter['limit'] = limit;
|
|
572
|
+
}
|
|
573
|
+
if (lastRetrieved !== undefined) {
|
|
574
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
575
|
+
lastRetrieved.toISOString() :
|
|
576
|
+
lastRetrieved;
|
|
577
|
+
}
|
|
578
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
579
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
580
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
581
|
+
return [2 /*return*/, {
|
|
582
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
583
|
+
options: localVarRequestOptions,
|
|
584
|
+
}];
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
});
|
|
588
|
+
},
|
|
589
|
+
/**
|
|
590
|
+
*
|
|
591
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
592
|
+
* @param {string} dealId
|
|
593
|
+
* @param {string} packageId
|
|
594
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
595
|
+
* @param {*} [options] Override http request option.
|
|
596
|
+
* @throws {RequiredError}
|
|
597
|
+
*/
|
|
598
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost: function (dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options) {
|
|
599
|
+
if (options === void 0) { options = {}; }
|
|
600
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
601
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
602
|
+
return __generator(this, function (_a) {
|
|
603
|
+
switch (_a.label) {
|
|
604
|
+
case 0:
|
|
605
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
606
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost', 'dealId', dealId);
|
|
607
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
608
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost', 'packageId', packageId);
|
|
609
|
+
localVarPath = "/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetableoverrides"
|
|
610
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)))
|
|
611
|
+
.replace("{".concat("packageId", "}"), encodeURIComponent(String(packageId)));
|
|
612
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
613
|
+
if (configuration) {
|
|
614
|
+
baseOptions = configuration.baseOptions;
|
|
615
|
+
}
|
|
616
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
617
|
+
localVarHeaderParameter = {};
|
|
618
|
+
localVarQueryParameter = {};
|
|
619
|
+
// authentication oauth2 required
|
|
620
|
+
// oauth required
|
|
621
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
622
|
+
case 1:
|
|
623
|
+
// authentication oauth2 required
|
|
624
|
+
// oauth required
|
|
625
|
+
_a.sent();
|
|
626
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
627
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
628
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
629
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
630
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveDealPackageAppointmentTimetableOverridesCommand, localVarRequestOptions, configuration);
|
|
631
|
+
return [2 /*return*/, {
|
|
632
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
633
|
+
options: localVarRequestOptions,
|
|
634
|
+
}];
|
|
635
|
+
}
|
|
636
|
+
});
|
|
637
|
+
});
|
|
638
|
+
},
|
|
639
|
+
/**
|
|
640
|
+
*
|
|
641
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
642
|
+
* @param {string} dealId
|
|
643
|
+
* @param {string} packageId
|
|
644
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
645
|
+
* @param {*} [options] Override http request option.
|
|
646
|
+
* @throws {RequiredError}
|
|
647
|
+
*/
|
|
648
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost: function (dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options) {
|
|
649
|
+
if (options === void 0) { options = {}; }
|
|
650
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
651
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
652
|
+
return __generator(this, function (_a) {
|
|
653
|
+
switch (_a.label) {
|
|
654
|
+
case 0:
|
|
655
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
656
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost', 'dealId', dealId);
|
|
657
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
658
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost', 'packageId', packageId);
|
|
659
|
+
localVarPath = "/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetables/batch"
|
|
660
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)))
|
|
661
|
+
.replace("{".concat("packageId", "}"), encodeURIComponent(String(packageId)));
|
|
662
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
663
|
+
if (configuration) {
|
|
664
|
+
baseOptions = configuration.baseOptions;
|
|
665
|
+
}
|
|
666
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
667
|
+
localVarHeaderParameter = {};
|
|
668
|
+
localVarQueryParameter = {};
|
|
669
|
+
// authentication oauth2 required
|
|
670
|
+
// oauth required
|
|
671
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
672
|
+
case 1:
|
|
673
|
+
// authentication oauth2 required
|
|
674
|
+
// oauth required
|
|
675
|
+
_a.sent();
|
|
676
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
677
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
678
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
679
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
680
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(batchDealPackageAppointmentTimetablesCommand, localVarRequestOptions, configuration);
|
|
681
|
+
return [2 /*return*/, {
|
|
682
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
683
|
+
options: localVarRequestOptions,
|
|
684
|
+
}];
|
|
685
|
+
}
|
|
686
|
+
});
|
|
687
|
+
});
|
|
688
|
+
},
|
|
689
|
+
/**
|
|
690
|
+
*
|
|
691
|
+
* @summary Get DealPackage appointment timetables
|
|
692
|
+
* @param {string} dealId
|
|
693
|
+
* @param {string} packageId
|
|
694
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
695
|
+
* @param {number} [page]
|
|
696
|
+
* @param {number} [limit]
|
|
697
|
+
* @param {Date} [lastRetrieved]
|
|
698
|
+
* @param {*} [options] Override http request option.
|
|
699
|
+
* @throws {RequiredError}
|
|
700
|
+
*/
|
|
701
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet: function (dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
702
|
+
if (options === void 0) { options = {}; }
|
|
703
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
704
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
705
|
+
return __generator(this, function (_a) {
|
|
706
|
+
switch (_a.label) {
|
|
707
|
+
case 0:
|
|
708
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
709
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'dealId', dealId);
|
|
710
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
711
|
+
(0, common_1.assertParamExists)('apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'packageId', packageId);
|
|
712
|
+
localVarPath = "/api/v1/deals/{dealId}/packages/{packageId}/appointmenttimetables"
|
|
713
|
+
.replace("{".concat("dealId", "}"), encodeURIComponent(String(dealId)))
|
|
714
|
+
.replace("{".concat("packageId", "}"), encodeURIComponent(String(packageId)));
|
|
715
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
716
|
+
if (configuration) {
|
|
717
|
+
baseOptions = configuration.baseOptions;
|
|
718
|
+
}
|
|
719
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
720
|
+
localVarHeaderParameter = {};
|
|
721
|
+
localVarQueryParameter = {};
|
|
722
|
+
// authentication oauth2 required
|
|
723
|
+
// oauth required
|
|
724
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
725
|
+
case 1:
|
|
726
|
+
// authentication oauth2 required
|
|
727
|
+
// oauth required
|
|
728
|
+
_a.sent();
|
|
729
|
+
if (dayOfWeek !== undefined) {
|
|
730
|
+
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
731
|
+
}
|
|
732
|
+
if (page !== undefined) {
|
|
733
|
+
localVarQueryParameter['page'] = page;
|
|
734
|
+
}
|
|
735
|
+
if (limit !== undefined) {
|
|
736
|
+
localVarQueryParameter['limit'] = limit;
|
|
737
|
+
}
|
|
738
|
+
if (lastRetrieved !== undefined) {
|
|
739
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
740
|
+
lastRetrieved.toISOString() :
|
|
741
|
+
lastRetrieved;
|
|
742
|
+
}
|
|
743
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
744
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
745
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
746
|
+
return [2 /*return*/, {
|
|
747
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
748
|
+
options: localVarRequestOptions,
|
|
749
|
+
}];
|
|
750
|
+
}
|
|
751
|
+
});
|
|
752
|
+
});
|
|
753
|
+
},
|
|
278
754
|
/**
|
|
279
755
|
*
|
|
280
756
|
* @summary Delete DealPackage.
|
|
@@ -1125,16 +1601,109 @@ var DealsApiAxiosParamCreator = function (configuration) {
|
|
|
1125
1601
|
});
|
|
1126
1602
|
});
|
|
1127
1603
|
},
|
|
1128
|
-
};
|
|
1129
|
-
};
|
|
1130
|
-
exports.DealsApiAxiosParamCreator = DealsApiAxiosParamCreator;
|
|
1131
|
-
/**
|
|
1132
|
-
* DealsApi - functional programming interface
|
|
1133
|
-
* @export
|
|
1134
|
-
*/
|
|
1135
|
-
var DealsApiFp = function (configuration) {
|
|
1136
|
-
var localVarAxiosParamCreator = (0, exports.DealsApiAxiosParamCreator)(configuration);
|
|
1137
|
-
return {
|
|
1604
|
+
};
|
|
1605
|
+
};
|
|
1606
|
+
exports.DealsApiAxiosParamCreator = DealsApiAxiosParamCreator;
|
|
1607
|
+
/**
|
|
1608
|
+
* DealsApi - functional programming interface
|
|
1609
|
+
* @export
|
|
1610
|
+
*/
|
|
1611
|
+
var DealsApiFp = function (configuration) {
|
|
1612
|
+
var localVarAxiosParamCreator = (0, exports.DealsApiAxiosParamCreator)(configuration);
|
|
1613
|
+
return {
|
|
1614
|
+
/**
|
|
1615
|
+
*
|
|
1616
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
1617
|
+
* @param {string} dealId
|
|
1618
|
+
* @param {boolean} [includesPreviousItems]
|
|
1619
|
+
* @param {Date} [startDate]
|
|
1620
|
+
* @param {Date} [endDate]
|
|
1621
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1622
|
+
* @param {number} [page]
|
|
1623
|
+
* @param {number} [limit]
|
|
1624
|
+
* @param {Date} [lastRetrieved]
|
|
1625
|
+
* @param {*} [options] Override http request option.
|
|
1626
|
+
* @throws {RequiredError}
|
|
1627
|
+
*/
|
|
1628
|
+
apiV1DealsDealIdAppointmenttimetableoverridesGet: function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
1629
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1630
|
+
var localVarAxiosArgs;
|
|
1631
|
+
return __generator(this, function (_a) {
|
|
1632
|
+
switch (_a.label) {
|
|
1633
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
1634
|
+
case 1:
|
|
1635
|
+
localVarAxiosArgs = _a.sent();
|
|
1636
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1637
|
+
}
|
|
1638
|
+
});
|
|
1639
|
+
});
|
|
1640
|
+
},
|
|
1641
|
+
/**
|
|
1642
|
+
*
|
|
1643
|
+
* @summary Save Deal appointment timetable overrides
|
|
1644
|
+
* @param {string} dealId
|
|
1645
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
1646
|
+
* @param {*} [options] Override http request option.
|
|
1647
|
+
* @throws {RequiredError}
|
|
1648
|
+
*/
|
|
1649
|
+
apiV1DealsDealIdAppointmenttimetableoverridesPost: function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
1650
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1651
|
+
var localVarAxiosArgs;
|
|
1652
|
+
return __generator(this, function (_a) {
|
|
1653
|
+
switch (_a.label) {
|
|
1654
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options)];
|
|
1655
|
+
case 1:
|
|
1656
|
+
localVarAxiosArgs = _a.sent();
|
|
1657
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1658
|
+
}
|
|
1659
|
+
});
|
|
1660
|
+
});
|
|
1661
|
+
},
|
|
1662
|
+
/**
|
|
1663
|
+
*
|
|
1664
|
+
* @summary Add, update and delete deal appointment timetable
|
|
1665
|
+
* @param {string} dealId
|
|
1666
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
1667
|
+
* @param {*} [options] Override http request option.
|
|
1668
|
+
* @throws {RequiredError}
|
|
1669
|
+
*/
|
|
1670
|
+
apiV1DealsDealIdAppointmenttimetablesBatchPost: function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
1671
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1672
|
+
var localVarAxiosArgs;
|
|
1673
|
+
return __generator(this, function (_a) {
|
|
1674
|
+
switch (_a.label) {
|
|
1675
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options)];
|
|
1676
|
+
case 1:
|
|
1677
|
+
localVarAxiosArgs = _a.sent();
|
|
1678
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1679
|
+
}
|
|
1680
|
+
});
|
|
1681
|
+
});
|
|
1682
|
+
},
|
|
1683
|
+
/**
|
|
1684
|
+
*
|
|
1685
|
+
* @summary Get deal appointment timetables
|
|
1686
|
+
* @param {string} dealId
|
|
1687
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1688
|
+
* @param {number} [page]
|
|
1689
|
+
* @param {number} [limit]
|
|
1690
|
+
* @param {Date} [lastRetrieved]
|
|
1691
|
+
* @param {*} [options] Override http request option.
|
|
1692
|
+
* @throws {RequiredError}
|
|
1693
|
+
*/
|
|
1694
|
+
apiV1DealsDealIdAppointmenttimetablesGet: function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
1695
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1696
|
+
var localVarAxiosArgs;
|
|
1697
|
+
return __generator(this, function (_a) {
|
|
1698
|
+
switch (_a.label) {
|
|
1699
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
1700
|
+
case 1:
|
|
1701
|
+
localVarAxiosArgs = _a.sent();
|
|
1702
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1703
|
+
}
|
|
1704
|
+
});
|
|
1705
|
+
});
|
|
1706
|
+
},
|
|
1138
1707
|
/**
|
|
1139
1708
|
*
|
|
1140
1709
|
* @summary Delete deal.
|
|
@@ -1208,6 +1777,103 @@ var DealsApiFp = function (configuration) {
|
|
|
1208
1777
|
});
|
|
1209
1778
|
});
|
|
1210
1779
|
},
|
|
1780
|
+
/**
|
|
1781
|
+
*
|
|
1782
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
1783
|
+
* @param {string} dealId
|
|
1784
|
+
* @param {string} packageId
|
|
1785
|
+
* @param {boolean} [includesPreviousItems]
|
|
1786
|
+
* @param {Date} [startDate]
|
|
1787
|
+
* @param {Date} [endDate]
|
|
1788
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1789
|
+
* @param {number} [page]
|
|
1790
|
+
* @param {number} [limit]
|
|
1791
|
+
* @param {Date} [lastRetrieved]
|
|
1792
|
+
* @param {*} [options] Override http request option.
|
|
1793
|
+
* @throws {RequiredError}
|
|
1794
|
+
*/
|
|
1795
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet: function (dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
1796
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1797
|
+
var localVarAxiosArgs;
|
|
1798
|
+
return __generator(this, function (_a) {
|
|
1799
|
+
switch (_a.label) {
|
|
1800
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
1801
|
+
case 1:
|
|
1802
|
+
localVarAxiosArgs = _a.sent();
|
|
1803
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1804
|
+
}
|
|
1805
|
+
});
|
|
1806
|
+
});
|
|
1807
|
+
},
|
|
1808
|
+
/**
|
|
1809
|
+
*
|
|
1810
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
1811
|
+
* @param {string} dealId
|
|
1812
|
+
* @param {string} packageId
|
|
1813
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
1814
|
+
* @param {*} [options] Override http request option.
|
|
1815
|
+
* @throws {RequiredError}
|
|
1816
|
+
*/
|
|
1817
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost: function (dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options) {
|
|
1818
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1819
|
+
var localVarAxiosArgs;
|
|
1820
|
+
return __generator(this, function (_a) {
|
|
1821
|
+
switch (_a.label) {
|
|
1822
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options)];
|
|
1823
|
+
case 1:
|
|
1824
|
+
localVarAxiosArgs = _a.sent();
|
|
1825
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1826
|
+
}
|
|
1827
|
+
});
|
|
1828
|
+
});
|
|
1829
|
+
},
|
|
1830
|
+
/**
|
|
1831
|
+
*
|
|
1832
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
1833
|
+
* @param {string} dealId
|
|
1834
|
+
* @param {string} packageId
|
|
1835
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
1836
|
+
* @param {*} [options] Override http request option.
|
|
1837
|
+
* @throws {RequiredError}
|
|
1838
|
+
*/
|
|
1839
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost: function (dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options) {
|
|
1840
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1841
|
+
var localVarAxiosArgs;
|
|
1842
|
+
return __generator(this, function (_a) {
|
|
1843
|
+
switch (_a.label) {
|
|
1844
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options)];
|
|
1845
|
+
case 1:
|
|
1846
|
+
localVarAxiosArgs = _a.sent();
|
|
1847
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
});
|
|
1851
|
+
},
|
|
1852
|
+
/**
|
|
1853
|
+
*
|
|
1854
|
+
* @summary Get DealPackage appointment timetables
|
|
1855
|
+
* @param {string} dealId
|
|
1856
|
+
* @param {string} packageId
|
|
1857
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
1858
|
+
* @param {number} [page]
|
|
1859
|
+
* @param {number} [limit]
|
|
1860
|
+
* @param {Date} [lastRetrieved]
|
|
1861
|
+
* @param {*} [options] Override http request option.
|
|
1862
|
+
* @throws {RequiredError}
|
|
1863
|
+
*/
|
|
1864
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet: function (dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
1865
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1866
|
+
var localVarAxiosArgs;
|
|
1867
|
+
return __generator(this, function (_a) {
|
|
1868
|
+
switch (_a.label) {
|
|
1869
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
1870
|
+
case 1:
|
|
1871
|
+
localVarAxiosArgs = _a.sent();
|
|
1872
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
1873
|
+
}
|
|
1874
|
+
});
|
|
1875
|
+
});
|
|
1876
|
+
},
|
|
1211
1877
|
/**
|
|
1212
1878
|
*
|
|
1213
1879
|
* @summary Delete DealPackage.
|
|
@@ -1560,6 +2226,59 @@ exports.DealsApiFp = DealsApiFp;
|
|
|
1560
2226
|
var DealsApiFactory = function (configuration, basePath, axios) {
|
|
1561
2227
|
var localVarFp = (0, exports.DealsApiFp)(configuration);
|
|
1562
2228
|
return {
|
|
2229
|
+
/**
|
|
2230
|
+
*
|
|
2231
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
2232
|
+
* @param {string} dealId
|
|
2233
|
+
* @param {boolean} [includesPreviousItems]
|
|
2234
|
+
* @param {Date} [startDate]
|
|
2235
|
+
* @param {Date} [endDate]
|
|
2236
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2237
|
+
* @param {number} [page]
|
|
2238
|
+
* @param {number} [limit]
|
|
2239
|
+
* @param {Date} [lastRetrieved]
|
|
2240
|
+
* @param {*} [options] Override http request option.
|
|
2241
|
+
* @throws {RequiredError}
|
|
2242
|
+
*/
|
|
2243
|
+
apiV1DealsDealIdAppointmenttimetableoverridesGet: function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2244
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2245
|
+
},
|
|
2246
|
+
/**
|
|
2247
|
+
*
|
|
2248
|
+
* @summary Save Deal appointment timetable overrides
|
|
2249
|
+
* @param {string} dealId
|
|
2250
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
2251
|
+
* @param {*} [options] Override http request option.
|
|
2252
|
+
* @throws {RequiredError}
|
|
2253
|
+
*/
|
|
2254
|
+
apiV1DealsDealIdAppointmenttimetableoverridesPost: function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
2255
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2256
|
+
},
|
|
2257
|
+
/**
|
|
2258
|
+
*
|
|
2259
|
+
* @summary Add, update and delete deal appointment timetable
|
|
2260
|
+
* @param {string} dealId
|
|
2261
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
2262
|
+
* @param {*} [options] Override http request option.
|
|
2263
|
+
* @throws {RequiredError}
|
|
2264
|
+
*/
|
|
2265
|
+
apiV1DealsDealIdAppointmenttimetablesBatchPost: function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
2266
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2267
|
+
},
|
|
2268
|
+
/**
|
|
2269
|
+
*
|
|
2270
|
+
* @summary Get deal appointment timetables
|
|
2271
|
+
* @param {string} dealId
|
|
2272
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2273
|
+
* @param {number} [page]
|
|
2274
|
+
* @param {number} [limit]
|
|
2275
|
+
* @param {Date} [lastRetrieved]
|
|
2276
|
+
* @param {*} [options] Override http request option.
|
|
2277
|
+
* @throws {RequiredError}
|
|
2278
|
+
*/
|
|
2279
|
+
apiV1DealsDealIdAppointmenttimetablesGet: function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2280
|
+
return localVarFp.apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2281
|
+
},
|
|
1563
2282
|
/**
|
|
1564
2283
|
*
|
|
1565
2284
|
* @summary Delete deal.
|
|
@@ -1603,6 +2322,63 @@ var DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
1603
2322
|
apiV1DealsDealIdPackagesGet: function (dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
1604
2323
|
return localVarFp.apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
1605
2324
|
},
|
|
2325
|
+
/**
|
|
2326
|
+
*
|
|
2327
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
2328
|
+
* @param {string} dealId
|
|
2329
|
+
* @param {string} packageId
|
|
2330
|
+
* @param {boolean} [includesPreviousItems]
|
|
2331
|
+
* @param {Date} [startDate]
|
|
2332
|
+
* @param {Date} [endDate]
|
|
2333
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2334
|
+
* @param {number} [page]
|
|
2335
|
+
* @param {number} [limit]
|
|
2336
|
+
* @param {Date} [lastRetrieved]
|
|
2337
|
+
* @param {*} [options] Override http request option.
|
|
2338
|
+
* @throws {RequiredError}
|
|
2339
|
+
*/
|
|
2340
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet: function (dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2341
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2342
|
+
},
|
|
2343
|
+
/**
|
|
2344
|
+
*
|
|
2345
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
2346
|
+
* @param {string} dealId
|
|
2347
|
+
* @param {string} packageId
|
|
2348
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
2349
|
+
* @param {*} [options] Override http request option.
|
|
2350
|
+
* @throws {RequiredError}
|
|
2351
|
+
*/
|
|
2352
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost: function (dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options) {
|
|
2353
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2354
|
+
},
|
|
2355
|
+
/**
|
|
2356
|
+
*
|
|
2357
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
2358
|
+
* @param {string} dealId
|
|
2359
|
+
* @param {string} packageId
|
|
2360
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
2361
|
+
* @param {*} [options] Override http request option.
|
|
2362
|
+
* @throws {RequiredError}
|
|
2363
|
+
*/
|
|
2364
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost: function (dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options) {
|
|
2365
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2366
|
+
},
|
|
2367
|
+
/**
|
|
2368
|
+
*
|
|
2369
|
+
* @summary Get DealPackage appointment timetables
|
|
2370
|
+
* @param {string} dealId
|
|
2371
|
+
* @param {string} packageId
|
|
2372
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2373
|
+
* @param {number} [page]
|
|
2374
|
+
* @param {number} [limit]
|
|
2375
|
+
* @param {Date} [lastRetrieved]
|
|
2376
|
+
* @param {*} [options] Override http request option.
|
|
2377
|
+
* @throws {RequiredError}
|
|
2378
|
+
*/
|
|
2379
|
+
apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet: function (dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2380
|
+
return localVarFp.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2381
|
+
},
|
|
1606
2382
|
/**
|
|
1607
2383
|
*
|
|
1608
2384
|
* @summary Delete DealPackage.
|
|
@@ -1819,6 +2595,67 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
1819
2595
|
function DealsApi() {
|
|
1820
2596
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
1821
2597
|
}
|
|
2598
|
+
/**
|
|
2599
|
+
*
|
|
2600
|
+
* @summary Get DealAppointment tiemtable overrides
|
|
2601
|
+
* @param {string} dealId
|
|
2602
|
+
* @param {boolean} [includesPreviousItems]
|
|
2603
|
+
* @param {Date} [startDate]
|
|
2604
|
+
* @param {Date} [endDate]
|
|
2605
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2606
|
+
* @param {number} [page]
|
|
2607
|
+
* @param {number} [limit]
|
|
2608
|
+
* @param {Date} [lastRetrieved]
|
|
2609
|
+
* @param {*} [options] Override http request option.
|
|
2610
|
+
* @throws {RequiredError}
|
|
2611
|
+
* @memberof DealsApi
|
|
2612
|
+
*/
|
|
2613
|
+
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetableoverridesGet = function (dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2614
|
+
var _this = this;
|
|
2615
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesGet(dealId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2616
|
+
};
|
|
2617
|
+
/**
|
|
2618
|
+
*
|
|
2619
|
+
* @summary Save Deal appointment timetable overrides
|
|
2620
|
+
* @param {string} dealId
|
|
2621
|
+
* @param {SaveDealAppointmentTimetableOverridesCommand} [saveDealAppointmentTimetableOverridesCommand]
|
|
2622
|
+
* @param {*} [options] Override http request option.
|
|
2623
|
+
* @throws {RequiredError}
|
|
2624
|
+
* @memberof DealsApi
|
|
2625
|
+
*/
|
|
2626
|
+
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetableoverridesPost = function (dealId, saveDealAppointmentTimetableOverridesCommand, options) {
|
|
2627
|
+
var _this = this;
|
|
2628
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetableoverridesPost(dealId, saveDealAppointmentTimetableOverridesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2629
|
+
};
|
|
2630
|
+
/**
|
|
2631
|
+
*
|
|
2632
|
+
* @summary Add, update and delete deal appointment timetable
|
|
2633
|
+
* @param {string} dealId
|
|
2634
|
+
* @param {BatchDealAppointmentTimetablesCommand} [batchDealAppointmentTimetablesCommand]
|
|
2635
|
+
* @param {*} [options] Override http request option.
|
|
2636
|
+
* @throws {RequiredError}
|
|
2637
|
+
* @memberof DealsApi
|
|
2638
|
+
*/
|
|
2639
|
+
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetablesBatchPost = function (dealId, batchDealAppointmentTimetablesCommand, options) {
|
|
2640
|
+
var _this = this;
|
|
2641
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetablesBatchPost(dealId, batchDealAppointmentTimetablesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2642
|
+
};
|
|
2643
|
+
/**
|
|
2644
|
+
*
|
|
2645
|
+
* @summary Get deal appointment timetables
|
|
2646
|
+
* @param {string} dealId
|
|
2647
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2648
|
+
* @param {number} [page]
|
|
2649
|
+
* @param {number} [limit]
|
|
2650
|
+
* @param {Date} [lastRetrieved]
|
|
2651
|
+
* @param {*} [options] Override http request option.
|
|
2652
|
+
* @throws {RequiredError}
|
|
2653
|
+
* @memberof DealsApi
|
|
2654
|
+
*/
|
|
2655
|
+
DealsApi.prototype.apiV1DealsDealIdAppointmenttimetablesGet = function (dealId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2656
|
+
var _this = this;
|
|
2657
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdAppointmenttimetablesGet(dealId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2658
|
+
};
|
|
1822
2659
|
/**
|
|
1823
2660
|
*
|
|
1824
2661
|
* @summary Delete deal.
|
|
@@ -1868,6 +2705,71 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
1868
2705
|
var _this = this;
|
|
1869
2706
|
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
1870
2707
|
};
|
|
2708
|
+
/**
|
|
2709
|
+
*
|
|
2710
|
+
* @summary Get DealPackage appointment timetable overrides
|
|
2711
|
+
* @param {string} dealId
|
|
2712
|
+
* @param {string} packageId
|
|
2713
|
+
* @param {boolean} [includesPreviousItems]
|
|
2714
|
+
* @param {Date} [startDate]
|
|
2715
|
+
* @param {Date} [endDate]
|
|
2716
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2717
|
+
* @param {number} [page]
|
|
2718
|
+
* @param {number} [limit]
|
|
2719
|
+
* @param {Date} [lastRetrieved]
|
|
2720
|
+
* @param {*} [options] Override http request option.
|
|
2721
|
+
* @throws {RequiredError}
|
|
2722
|
+
* @memberof DealsApi
|
|
2723
|
+
*/
|
|
2724
|
+
DealsApi.prototype.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet = function (dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2725
|
+
var _this = this;
|
|
2726
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesGet(dealId, packageId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2727
|
+
};
|
|
2728
|
+
/**
|
|
2729
|
+
*
|
|
2730
|
+
* @summary Save DealPackage appointment timetable overrides
|
|
2731
|
+
* @param {string} dealId
|
|
2732
|
+
* @param {string} packageId
|
|
2733
|
+
* @param {SaveDealPackageAppointmentTimetableOverridesCommand} [saveDealPackageAppointmentTimetableOverridesCommand]
|
|
2734
|
+
* @param {*} [options] Override http request option.
|
|
2735
|
+
* @throws {RequiredError}
|
|
2736
|
+
* @memberof DealsApi
|
|
2737
|
+
*/
|
|
2738
|
+
DealsApi.prototype.apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost = function (dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options) {
|
|
2739
|
+
var _this = this;
|
|
2740
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetableoverridesPost(dealId, packageId, saveDealPackageAppointmentTimetableOverridesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2741
|
+
};
|
|
2742
|
+
/**
|
|
2743
|
+
*
|
|
2744
|
+
* @summary Add, update and delete DealPackage appointment timetable
|
|
2745
|
+
* @param {string} dealId
|
|
2746
|
+
* @param {string} packageId
|
|
2747
|
+
* @param {BatchDealPackageAppointmentTimetablesCommand} [batchDealPackageAppointmentTimetablesCommand]
|
|
2748
|
+
* @param {*} [options] Override http request option.
|
|
2749
|
+
* @throws {RequiredError}
|
|
2750
|
+
* @memberof DealsApi
|
|
2751
|
+
*/
|
|
2752
|
+
DealsApi.prototype.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost = function (dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options) {
|
|
2753
|
+
var _this = this;
|
|
2754
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesBatchPost(dealId, packageId, batchDealPackageAppointmentTimetablesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2755
|
+
};
|
|
2756
|
+
/**
|
|
2757
|
+
*
|
|
2758
|
+
* @summary Get DealPackage appointment timetables
|
|
2759
|
+
* @param {string} dealId
|
|
2760
|
+
* @param {string} packageId
|
|
2761
|
+
* @param {DayOfWeek} [dayOfWeek]
|
|
2762
|
+
* @param {number} [page]
|
|
2763
|
+
* @param {number} [limit]
|
|
2764
|
+
* @param {Date} [lastRetrieved]
|
|
2765
|
+
* @param {*} [options] Override http request option.
|
|
2766
|
+
* @throws {RequiredError}
|
|
2767
|
+
* @memberof DealsApi
|
|
2768
|
+
*/
|
|
2769
|
+
DealsApi.prototype.apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet = function (dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
2770
|
+
var _this = this;
|
|
2771
|
+
return (0, exports.DealsApiFp)(this.configuration).apiV1DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2772
|
+
};
|
|
1871
2773
|
/**
|
|
1872
2774
|
*
|
|
1873
2775
|
* @summary Delete DealPackage.
|