ch-api-client-typescript2 5.15.0 → 5.16.3
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/doctor-affiliations-api.d.ts +3 -12
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +6 -12
- package/lib/api.d.ts +0 -3
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +0 -3
- package/lib/models/index.d.ts +0 -20
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +0 -20
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +0 -23
- package/src/api/doctor-affiliations-api.ts +6 -20
- package/src/api.ts +0 -3
- package/src/models/index.ts +0 -20
- package/lib/api/bookings-api.d.ts +0 -439
- package/lib/api/bookings-api.d.ts.map +0 -1
- package/lib/api/bookings-api.js +0 -665
- package/lib/api/consultations-api.d.ts +0 -421
- package/lib/api/consultations-api.d.ts.map +0 -1
- package/lib/api/consultations-api.js +0 -653
- package/lib/api/hospitals-consultation-timetables-api.d.ts +0 -124
- package/lib/api/hospitals-consultation-timetables-api.d.ts.map +0 -1
- package/lib/api/hospitals-consultation-timetables-api.js +0 -240
- package/lib/models/booking-change-log-model.d.ts +0 -44
- package/lib/models/booking-change-log-model.d.ts.map +0 -1
- package/lib/models/booking-change-log-model.js +0 -15
- package/lib/models/booking-item-model.d.ts +0 -233
- package/lib/models/booking-item-model.d.ts.map +0 -1
- package/lib/models/booking-item-model.js +0 -15
- package/lib/models/booking-model.d.ts +0 -240
- package/lib/models/booking-model.d.ts.map +0 -1
- package/lib/models/booking-model.js +0 -15
- package/lib/models/booking-status.d.ts +0 -27
- package/lib/models/booking-status.d.ts.map +0 -1
- package/lib/models/booking-status.js +0 -30
- package/lib/models/bookings-model.d.ts +0 -33
- package/lib/models/bookings-model.d.ts.map +0 -1
- package/lib/models/bookings-model.js +0 -15
- package/lib/models/consultation-change-log-model.d.ts +0 -44
- package/lib/models/consultation-change-log-model.d.ts.map +0 -1
- package/lib/models/consultation-change-log-model.js +0 -15
- package/lib/models/consultation-item-model.d.ts +0 -275
- package/lib/models/consultation-item-model.d.ts.map +0 -1
- package/lib/models/consultation-item-model.js +0 -15
- package/lib/models/consultation-model.d.ts +0 -282
- package/lib/models/consultation-model.d.ts.map +0 -1
- package/lib/models/consultation-model.js +0 -15
- package/lib/models/consultation-status.d.ts +0 -27
- package/lib/models/consultation-status.d.ts.map +0 -1
- package/lib/models/consultation-status.js +0 -30
- package/lib/models/consultation-timetable-date-model.d.ts +0 -58
- package/lib/models/consultation-timetable-date-model.d.ts.map +0 -1
- package/lib/models/consultation-timetable-date-model.js +0 -15
- package/lib/models/consultation-timetable-model.d.ts +0 -44
- package/lib/models/consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/consultation-timetable-model.js +0 -15
- package/lib/models/consultation-timetable-status.d.ts +0 -22
- package/lib/models/consultation-timetable-status.d.ts.map +0 -1
- package/lib/models/consultation-timetable-status.js +0 -25
- package/lib/models/consultation-timetable-time-slot-model.d.ts +0 -56
- package/lib/models/consultation-timetable-time-slot-model.d.ts.map +0 -1
- package/lib/models/consultation-timetable-time-slot-model.js +0 -15
- package/lib/models/consultation-type.d.ts +0 -23
- package/lib/models/consultation-type.d.ts.map +0 -1
- package/lib/models/consultation-type.js +0 -26
- package/lib/models/consultations-model.d.ts +0 -33
- package/lib/models/consultations-model.d.ts.map +0 -1
- package/lib/models/consultations-model.js +0 -15
- package/lib/models/create-booking-command.d.ts +0 -104
- package/lib/models/create-booking-command.d.ts.map +0 -1
- package/lib/models/create-booking-command.js +0 -15
- package/lib/models/create-consultation-command.d.ts +0 -135
- package/lib/models/create-consultation-command.d.ts.map +0 -1
- package/lib/models/create-consultation-command.js +0 -15
- package/lib/models/sorting-order.d.ts +0 -22
- package/lib/models/sorting-order.d.ts.map +0 -1
- package/lib/models/sorting-order.js +0 -25
- package/lib/models/update-booking-command.d.ts +0 -86
- package/lib/models/update-booking-command.d.ts.map +0 -1
- package/lib/models/update-booking-command.js +0 -15
- package/lib/models/update-consultation-command.d.ts +0 -110
- package/lib/models/update-consultation-command.d.ts.map +0 -1
- package/lib/models/update-consultation-command.js +0 -15
- package/src/api/bookings-api.ts +0 -748
- package/src/api/consultations-api.ts +0 -720
- package/src/api/hospitals-consultation-timetables-api.ts +0 -201
- package/src/models/booking-change-log-model.ts +0 -51
- package/src/models/booking-item-model.ts +0 -246
- package/src/models/booking-model.ts +0 -255
- package/src/models/booking-status.ts +0 -36
- package/src/models/bookings-model.ts +0 -42
- package/src/models/consultation-change-log-model.ts +0 -51
- package/src/models/consultation-item-model.ts +0 -288
- package/src/models/consultation-model.ts +0 -297
- package/src/models/consultation-status.ts +0 -36
- package/src/models/consultation-timetable-date-model.ts +0 -69
- package/src/models/consultation-timetable-model.ts +0 -51
- package/src/models/consultation-timetable-status.ts +0 -31
- package/src/models/consultation-timetable-time-slot-model.ts +0 -63
- package/src/models/consultation-type.ts +0 -32
- package/src/models/consultations-model.ts +0 -42
- package/src/models/create-booking-command.ts +0 -111
- package/src/models/create-consultation-command.ts +0 -144
- package/src/models/sorting-order.ts +0 -31
- package/src/models/update-booking-command.ts +0 -93
- package/src/models/update-consultation-command.ts +0 -117
|
@@ -1,653 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger UI - Cloud Hospital Api-INT
|
|
6
|
-
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 2
|
|
9
|
-
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
-
};
|
|
80
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = void 0;
|
|
82
|
-
var axios_1 = __importDefault(require("axios"));
|
|
83
|
-
// Some imports not used depending on template conditions
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
var common_1 = require("../common");
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var base_1 = require("../base");
|
|
88
|
-
/**
|
|
89
|
-
* ConsultationsApi - axios parameter creator
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
93
|
-
var _this = this;
|
|
94
|
-
return {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @summary Get consultation.
|
|
98
|
-
* @param {string} consultationId
|
|
99
|
-
* @param {string} [languageCode]
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
apiV2ConsultationsConsultationIdGet: function (consultationId, languageCode, options) {
|
|
104
|
-
if (options === void 0) { options = {}; }
|
|
105
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
111
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdGet', 'consultationId', consultationId);
|
|
112
|
-
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
113
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
114
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
-
if (configuration) {
|
|
116
|
-
baseOptions = configuration.baseOptions;
|
|
117
|
-
}
|
|
118
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
119
|
-
localVarHeaderParameter = {};
|
|
120
|
-
localVarQueryParameter = {};
|
|
121
|
-
// authentication oauth2 required
|
|
122
|
-
// oauth required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
124
|
-
case 1:
|
|
125
|
-
// authentication oauth2 required
|
|
126
|
-
// oauth required
|
|
127
|
-
_a.sent();
|
|
128
|
-
if (languageCode !== undefined) {
|
|
129
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
130
|
-
}
|
|
131
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
132
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
133
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
134
|
-
return [2 /*return*/, {
|
|
135
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
136
|
-
options: localVarRequestOptions,
|
|
137
|
-
}];
|
|
138
|
-
}
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
},
|
|
142
|
-
/**
|
|
143
|
-
*
|
|
144
|
-
* @summary Pay consultation.
|
|
145
|
-
* @param {string} consultationId
|
|
146
|
-
* @param {*} [options] Override http request option.
|
|
147
|
-
* @throws {RequiredError}
|
|
148
|
-
*/
|
|
149
|
-
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
150
|
-
if (options === void 0) { options = {}; }
|
|
151
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
152
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
153
|
-
return __generator(this, function (_a) {
|
|
154
|
-
switch (_a.label) {
|
|
155
|
-
case 0:
|
|
156
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
157
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId);
|
|
158
|
-
localVarPath = "/api/v2/consultations/{consultationId}/pay"
|
|
159
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
160
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
161
|
-
if (configuration) {
|
|
162
|
-
baseOptions = configuration.baseOptions;
|
|
163
|
-
}
|
|
164
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
165
|
-
localVarHeaderParameter = {};
|
|
166
|
-
localVarQueryParameter = {};
|
|
167
|
-
// authentication oauth2 required
|
|
168
|
-
// oauth required
|
|
169
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
170
|
-
case 1:
|
|
171
|
-
// authentication oauth2 required
|
|
172
|
-
// oauth required
|
|
173
|
-
_a.sent();
|
|
174
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
175
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
-
return [2 /*return*/, {
|
|
178
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
|
-
options: localVarRequestOptions,
|
|
180
|
-
}];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
},
|
|
185
|
-
/**
|
|
186
|
-
*
|
|
187
|
-
* @summary Update consultation.
|
|
188
|
-
* @param {string} consultationId
|
|
189
|
-
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
190
|
-
* @param {*} [options] Override http request option.
|
|
191
|
-
* @throws {RequiredError}
|
|
192
|
-
*/
|
|
193
|
-
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
194
|
-
if (options === void 0) { options = {}; }
|
|
195
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
196
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
197
|
-
return __generator(this, function (_a) {
|
|
198
|
-
switch (_a.label) {
|
|
199
|
-
case 0:
|
|
200
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
201
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId);
|
|
202
|
-
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
203
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
204
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
205
|
-
if (configuration) {
|
|
206
|
-
baseOptions = configuration.baseOptions;
|
|
207
|
-
}
|
|
208
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
209
|
-
localVarHeaderParameter = {};
|
|
210
|
-
localVarQueryParameter = {};
|
|
211
|
-
// authentication oauth2 required
|
|
212
|
-
// oauth required
|
|
213
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
214
|
-
case 1:
|
|
215
|
-
// authentication oauth2 required
|
|
216
|
-
// oauth required
|
|
217
|
-
_a.sent();
|
|
218
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
219
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
220
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
221
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
222
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateConsultationCommand, localVarRequestOptions, configuration);
|
|
223
|
-
return [2 /*return*/, {
|
|
224
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
225
|
-
options: localVarRequestOptions,
|
|
226
|
-
}];
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
});
|
|
230
|
-
},
|
|
231
|
-
/**
|
|
232
|
-
*
|
|
233
|
-
* @summary Get all consultations.
|
|
234
|
-
* @param {string} [hospitalId]
|
|
235
|
-
* @param {string} [hospitalName]
|
|
236
|
-
* @param {string} [doctorId]
|
|
237
|
-
* @param {string} [doctorName]
|
|
238
|
-
* @param {string} [dealId]
|
|
239
|
-
* @param {string} [dealName]
|
|
240
|
-
* @param {boolean} [isOpen]
|
|
241
|
-
* @param {boolean} [isCompleted]
|
|
242
|
-
* @param {ConsultationStatus} [status]
|
|
243
|
-
* @param {ConsultationType} [consultationType]
|
|
244
|
-
* @param {string} [languageCode]
|
|
245
|
-
* @param {number} [page]
|
|
246
|
-
* @param {number} [limit]
|
|
247
|
-
* @param {Date} [lastRetrieved]
|
|
248
|
-
* @param {*} [options] Override http request option.
|
|
249
|
-
* @throws {RequiredError}
|
|
250
|
-
*/
|
|
251
|
-
apiV2ConsultationsGet: function (hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, languageCode, page, limit, lastRetrieved, options) {
|
|
252
|
-
if (options === void 0) { options = {}; }
|
|
253
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
254
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
255
|
-
return __generator(this, function (_a) {
|
|
256
|
-
switch (_a.label) {
|
|
257
|
-
case 0:
|
|
258
|
-
localVarPath = "/api/v2/consultations";
|
|
259
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
260
|
-
if (configuration) {
|
|
261
|
-
baseOptions = configuration.baseOptions;
|
|
262
|
-
}
|
|
263
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
264
|
-
localVarHeaderParameter = {};
|
|
265
|
-
localVarQueryParameter = {};
|
|
266
|
-
// authentication oauth2 required
|
|
267
|
-
// oauth required
|
|
268
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
269
|
-
case 1:
|
|
270
|
-
// authentication oauth2 required
|
|
271
|
-
// oauth required
|
|
272
|
-
_a.sent();
|
|
273
|
-
if (hospitalId !== undefined) {
|
|
274
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
275
|
-
}
|
|
276
|
-
if (hospitalName !== undefined) {
|
|
277
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
278
|
-
}
|
|
279
|
-
if (doctorId !== undefined) {
|
|
280
|
-
localVarQueryParameter['DoctorId'] = doctorId;
|
|
281
|
-
}
|
|
282
|
-
if (doctorName !== undefined) {
|
|
283
|
-
localVarQueryParameter['DoctorName'] = doctorName;
|
|
284
|
-
}
|
|
285
|
-
if (dealId !== undefined) {
|
|
286
|
-
localVarQueryParameter['DealId'] = dealId;
|
|
287
|
-
}
|
|
288
|
-
if (dealName !== undefined) {
|
|
289
|
-
localVarQueryParameter['DealName'] = dealName;
|
|
290
|
-
}
|
|
291
|
-
if (isOpen !== undefined) {
|
|
292
|
-
localVarQueryParameter['IsOpen'] = isOpen;
|
|
293
|
-
}
|
|
294
|
-
if (isCompleted !== undefined) {
|
|
295
|
-
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
296
|
-
}
|
|
297
|
-
if (status !== undefined) {
|
|
298
|
-
localVarQueryParameter['Status'] = status;
|
|
299
|
-
}
|
|
300
|
-
if (consultationType !== undefined) {
|
|
301
|
-
localVarQueryParameter['ConsultationType'] = consultationType;
|
|
302
|
-
}
|
|
303
|
-
if (languageCode !== undefined) {
|
|
304
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
305
|
-
}
|
|
306
|
-
if (page !== undefined) {
|
|
307
|
-
localVarQueryParameter['page'] = page;
|
|
308
|
-
}
|
|
309
|
-
if (limit !== undefined) {
|
|
310
|
-
localVarQueryParameter['limit'] = limit;
|
|
311
|
-
}
|
|
312
|
-
if (lastRetrieved !== undefined) {
|
|
313
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
314
|
-
lastRetrieved.toISOString() :
|
|
315
|
-
lastRetrieved;
|
|
316
|
-
}
|
|
317
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
320
|
-
return [2 /*return*/, {
|
|
321
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
322
|
-
options: localVarRequestOptions,
|
|
323
|
-
}];
|
|
324
|
-
}
|
|
325
|
-
});
|
|
326
|
-
});
|
|
327
|
-
},
|
|
328
|
-
/**
|
|
329
|
-
*
|
|
330
|
-
* @summary Create consultation.
|
|
331
|
-
* @param {string} requestId
|
|
332
|
-
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
333
|
-
* @param {*} [options] Override http request option.
|
|
334
|
-
* @throws {RequiredError}
|
|
335
|
-
*/
|
|
336
|
-
apiV2ConsultationsRequestIdPost: function (requestId, createConsultationCommand, options) {
|
|
337
|
-
if (options === void 0) { options = {}; }
|
|
338
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
339
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
340
|
-
return __generator(this, function (_a) {
|
|
341
|
-
switch (_a.label) {
|
|
342
|
-
case 0:
|
|
343
|
-
// verify required parameter 'requestId' is not null or undefined
|
|
344
|
-
(0, common_1.assertParamExists)('apiV2ConsultationsRequestIdPost', 'requestId', requestId);
|
|
345
|
-
localVarPath = "/api/v2/consultations/{requestId}"
|
|
346
|
-
.replace("{".concat("requestId", "}"), encodeURIComponent(String(requestId)));
|
|
347
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
348
|
-
if (configuration) {
|
|
349
|
-
baseOptions = configuration.baseOptions;
|
|
350
|
-
}
|
|
351
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
352
|
-
localVarHeaderParameter = {};
|
|
353
|
-
localVarQueryParameter = {};
|
|
354
|
-
// authentication oauth2 required
|
|
355
|
-
// oauth required
|
|
356
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
357
|
-
case 1:
|
|
358
|
-
// authentication oauth2 required
|
|
359
|
-
// oauth required
|
|
360
|
-
_a.sent();
|
|
361
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
362
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
363
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
364
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
365
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createConsultationCommand, localVarRequestOptions, configuration);
|
|
366
|
-
return [2 /*return*/, {
|
|
367
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
368
|
-
options: localVarRequestOptions,
|
|
369
|
-
}];
|
|
370
|
-
}
|
|
371
|
-
});
|
|
372
|
-
});
|
|
373
|
-
},
|
|
374
|
-
};
|
|
375
|
-
};
|
|
376
|
-
exports.ConsultationsApiAxiosParamCreator = ConsultationsApiAxiosParamCreator;
|
|
377
|
-
/**
|
|
378
|
-
* ConsultationsApi - functional programming interface
|
|
379
|
-
* @export
|
|
380
|
-
*/
|
|
381
|
-
var ConsultationsApiFp = function (configuration) {
|
|
382
|
-
var localVarAxiosParamCreator = (0, exports.ConsultationsApiAxiosParamCreator)(configuration);
|
|
383
|
-
return {
|
|
384
|
-
/**
|
|
385
|
-
*
|
|
386
|
-
* @summary Get consultation.
|
|
387
|
-
* @param {string} consultationId
|
|
388
|
-
* @param {string} [languageCode]
|
|
389
|
-
* @param {*} [options] Override http request option.
|
|
390
|
-
* @throws {RequiredError}
|
|
391
|
-
*/
|
|
392
|
-
apiV2ConsultationsConsultationIdGet: function (consultationId, languageCode, options) {
|
|
393
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
394
|
-
var localVarAxiosArgs;
|
|
395
|
-
return __generator(this, function (_a) {
|
|
396
|
-
switch (_a.label) {
|
|
397
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdGet(consultationId, languageCode, options)];
|
|
398
|
-
case 1:
|
|
399
|
-
localVarAxiosArgs = _a.sent();
|
|
400
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
401
|
-
}
|
|
402
|
-
});
|
|
403
|
-
});
|
|
404
|
-
},
|
|
405
|
-
/**
|
|
406
|
-
*
|
|
407
|
-
* @summary Pay consultation.
|
|
408
|
-
* @param {string} consultationId
|
|
409
|
-
* @param {*} [options] Override http request option.
|
|
410
|
-
* @throws {RequiredError}
|
|
411
|
-
*/
|
|
412
|
-
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
413
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
414
|
-
var localVarAxiosArgs;
|
|
415
|
-
return __generator(this, function (_a) {
|
|
416
|
-
switch (_a.label) {
|
|
417
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPayPost(consultationId, options)];
|
|
418
|
-
case 1:
|
|
419
|
-
localVarAxiosArgs = _a.sent();
|
|
420
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
421
|
-
}
|
|
422
|
-
});
|
|
423
|
-
});
|
|
424
|
-
},
|
|
425
|
-
/**
|
|
426
|
-
*
|
|
427
|
-
* @summary Update consultation.
|
|
428
|
-
* @param {string} consultationId
|
|
429
|
-
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
430
|
-
* @param {*} [options] Override http request option.
|
|
431
|
-
* @throws {RequiredError}
|
|
432
|
-
*/
|
|
433
|
-
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
434
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
435
|
-
var localVarAxiosArgs;
|
|
436
|
-
return __generator(this, function (_a) {
|
|
437
|
-
switch (_a.label) {
|
|
438
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options)];
|
|
439
|
-
case 1:
|
|
440
|
-
localVarAxiosArgs = _a.sent();
|
|
441
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
442
|
-
}
|
|
443
|
-
});
|
|
444
|
-
});
|
|
445
|
-
},
|
|
446
|
-
/**
|
|
447
|
-
*
|
|
448
|
-
* @summary Get all consultations.
|
|
449
|
-
* @param {string} [hospitalId]
|
|
450
|
-
* @param {string} [hospitalName]
|
|
451
|
-
* @param {string} [doctorId]
|
|
452
|
-
* @param {string} [doctorName]
|
|
453
|
-
* @param {string} [dealId]
|
|
454
|
-
* @param {string} [dealName]
|
|
455
|
-
* @param {boolean} [isOpen]
|
|
456
|
-
* @param {boolean} [isCompleted]
|
|
457
|
-
* @param {ConsultationStatus} [status]
|
|
458
|
-
* @param {ConsultationType} [consultationType]
|
|
459
|
-
* @param {string} [languageCode]
|
|
460
|
-
* @param {number} [page]
|
|
461
|
-
* @param {number} [limit]
|
|
462
|
-
* @param {Date} [lastRetrieved]
|
|
463
|
-
* @param {*} [options] Override http request option.
|
|
464
|
-
* @throws {RequiredError}
|
|
465
|
-
*/
|
|
466
|
-
apiV2ConsultationsGet: function (hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, languageCode, page, limit, lastRetrieved, options) {
|
|
467
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
468
|
-
var localVarAxiosArgs;
|
|
469
|
-
return __generator(this, function (_a) {
|
|
470
|
-
switch (_a.label) {
|
|
471
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsGet(hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, languageCode, page, limit, lastRetrieved, options)];
|
|
472
|
-
case 1:
|
|
473
|
-
localVarAxiosArgs = _a.sent();
|
|
474
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
475
|
-
}
|
|
476
|
-
});
|
|
477
|
-
});
|
|
478
|
-
},
|
|
479
|
-
/**
|
|
480
|
-
*
|
|
481
|
-
* @summary Create consultation.
|
|
482
|
-
* @param {string} requestId
|
|
483
|
-
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
484
|
-
* @param {*} [options] Override http request option.
|
|
485
|
-
* @throws {RequiredError}
|
|
486
|
-
*/
|
|
487
|
-
apiV2ConsultationsRequestIdPost: function (requestId, createConsultationCommand, options) {
|
|
488
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
489
|
-
var localVarAxiosArgs;
|
|
490
|
-
return __generator(this, function (_a) {
|
|
491
|
-
switch (_a.label) {
|
|
492
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options)];
|
|
493
|
-
case 1:
|
|
494
|
-
localVarAxiosArgs = _a.sent();
|
|
495
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
496
|
-
}
|
|
497
|
-
});
|
|
498
|
-
});
|
|
499
|
-
},
|
|
500
|
-
};
|
|
501
|
-
};
|
|
502
|
-
exports.ConsultationsApiFp = ConsultationsApiFp;
|
|
503
|
-
/**
|
|
504
|
-
* ConsultationsApi - factory interface
|
|
505
|
-
* @export
|
|
506
|
-
*/
|
|
507
|
-
var ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
508
|
-
var localVarFp = (0, exports.ConsultationsApiFp)(configuration);
|
|
509
|
-
return {
|
|
510
|
-
/**
|
|
511
|
-
*
|
|
512
|
-
* @summary Get consultation.
|
|
513
|
-
* @param {string} consultationId
|
|
514
|
-
* @param {string} [languageCode]
|
|
515
|
-
* @param {*} [options] Override http request option.
|
|
516
|
-
* @throws {RequiredError}
|
|
517
|
-
*/
|
|
518
|
-
apiV2ConsultationsConsultationIdGet: function (consultationId, languageCode, options) {
|
|
519
|
-
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
520
|
-
},
|
|
521
|
-
/**
|
|
522
|
-
*
|
|
523
|
-
* @summary Pay consultation.
|
|
524
|
-
* @param {string} consultationId
|
|
525
|
-
* @param {*} [options] Override http request option.
|
|
526
|
-
* @throws {RequiredError}
|
|
527
|
-
*/
|
|
528
|
-
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
529
|
-
return localVarFp.apiV2ConsultationsConsultationIdPayPost(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
530
|
-
},
|
|
531
|
-
/**
|
|
532
|
-
*
|
|
533
|
-
* @summary Update consultation.
|
|
534
|
-
* @param {string} consultationId
|
|
535
|
-
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
536
|
-
* @param {*} [options] Override http request option.
|
|
537
|
-
* @throws {RequiredError}
|
|
538
|
-
*/
|
|
539
|
-
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
540
|
-
return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
541
|
-
},
|
|
542
|
-
/**
|
|
543
|
-
*
|
|
544
|
-
* @summary Get all consultations.
|
|
545
|
-
* @param {string} [hospitalId]
|
|
546
|
-
* @param {string} [hospitalName]
|
|
547
|
-
* @param {string} [doctorId]
|
|
548
|
-
* @param {string} [doctorName]
|
|
549
|
-
* @param {string} [dealId]
|
|
550
|
-
* @param {string} [dealName]
|
|
551
|
-
* @param {boolean} [isOpen]
|
|
552
|
-
* @param {boolean} [isCompleted]
|
|
553
|
-
* @param {ConsultationStatus} [status]
|
|
554
|
-
* @param {ConsultationType} [consultationType]
|
|
555
|
-
* @param {string} [languageCode]
|
|
556
|
-
* @param {number} [page]
|
|
557
|
-
* @param {number} [limit]
|
|
558
|
-
* @param {Date} [lastRetrieved]
|
|
559
|
-
* @param {*} [options] Override http request option.
|
|
560
|
-
* @throws {RequiredError}
|
|
561
|
-
*/
|
|
562
|
-
apiV2ConsultationsGet: function (hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, languageCode, page, limit, lastRetrieved, options) {
|
|
563
|
-
return localVarFp.apiV2ConsultationsGet(hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
564
|
-
},
|
|
565
|
-
/**
|
|
566
|
-
*
|
|
567
|
-
* @summary Create consultation.
|
|
568
|
-
* @param {string} requestId
|
|
569
|
-
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
570
|
-
* @param {*} [options] Override http request option.
|
|
571
|
-
* @throws {RequiredError}
|
|
572
|
-
*/
|
|
573
|
-
apiV2ConsultationsRequestIdPost: function (requestId, createConsultationCommand, options) {
|
|
574
|
-
return localVarFp.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
575
|
-
},
|
|
576
|
-
};
|
|
577
|
-
};
|
|
578
|
-
exports.ConsultationsApiFactory = ConsultationsApiFactory;
|
|
579
|
-
/**
|
|
580
|
-
* ConsultationsApi - object-oriented interface
|
|
581
|
-
* @export
|
|
582
|
-
* @class ConsultationsApi
|
|
583
|
-
* @extends {BaseAPI}
|
|
584
|
-
*/
|
|
585
|
-
var ConsultationsApi = /** @class */ (function (_super) {
|
|
586
|
-
__extends(ConsultationsApi, _super);
|
|
587
|
-
function ConsultationsApi() {
|
|
588
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
589
|
-
}
|
|
590
|
-
/**
|
|
591
|
-
*
|
|
592
|
-
* @summary Get consultation.
|
|
593
|
-
* @param {ConsultationsApiApiV2ConsultationsConsultationIdGetRequest} requestParameters Request parameters.
|
|
594
|
-
* @param {*} [options] Override http request option.
|
|
595
|
-
* @throws {RequiredError}
|
|
596
|
-
* @memberof ConsultationsApi
|
|
597
|
-
*/
|
|
598
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdGet = function (requestParameters, options) {
|
|
599
|
-
var _this = this;
|
|
600
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdGet(requestParameters.consultationId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
601
|
-
};
|
|
602
|
-
/**
|
|
603
|
-
*
|
|
604
|
-
* @summary Pay consultation.
|
|
605
|
-
* @param {ConsultationsApiApiV2ConsultationsConsultationIdPayPostRequest} requestParameters Request parameters.
|
|
606
|
-
* @param {*} [options] Override http request option.
|
|
607
|
-
* @throws {RequiredError}
|
|
608
|
-
* @memberof ConsultationsApi
|
|
609
|
-
*/
|
|
610
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdPayPost = function (requestParameters, options) {
|
|
611
|
-
var _this = this;
|
|
612
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdPayPost(requestParameters.consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
|
-
};
|
|
614
|
-
/**
|
|
615
|
-
*
|
|
616
|
-
* @summary Update consultation.
|
|
617
|
-
* @param {ConsultationsApiApiV2ConsultationsConsultationIdPutRequest} requestParameters Request parameters.
|
|
618
|
-
* @param {*} [options] Override http request option.
|
|
619
|
-
* @throws {RequiredError}
|
|
620
|
-
* @memberof ConsultationsApi
|
|
621
|
-
*/
|
|
622
|
-
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdPut = function (requestParameters, options) {
|
|
623
|
-
var _this = this;
|
|
624
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsConsultationIdPut(requestParameters.consultationId, requestParameters.updateConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
|
-
};
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @summary Get all consultations.
|
|
629
|
-
* @param {ConsultationsApiApiV2ConsultationsGetRequest} requestParameters Request parameters.
|
|
630
|
-
* @param {*} [options] Override http request option.
|
|
631
|
-
* @throws {RequiredError}
|
|
632
|
-
* @memberof ConsultationsApi
|
|
633
|
-
*/
|
|
634
|
-
ConsultationsApi.prototype.apiV2ConsultationsGet = function (requestParameters, options) {
|
|
635
|
-
var _this = this;
|
|
636
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
637
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsGet(requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.doctorId, requestParameters.doctorName, requestParameters.dealId, requestParameters.dealName, requestParameters.isOpen, requestParameters.isCompleted, requestParameters.status, requestParameters.consultationType, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
638
|
-
};
|
|
639
|
-
/**
|
|
640
|
-
*
|
|
641
|
-
* @summary Create consultation.
|
|
642
|
-
* @param {ConsultationsApiApiV2ConsultationsRequestIdPostRequest} requestParameters Request parameters.
|
|
643
|
-
* @param {*} [options] Override http request option.
|
|
644
|
-
* @throws {RequiredError}
|
|
645
|
-
* @memberof ConsultationsApi
|
|
646
|
-
*/
|
|
647
|
-
ConsultationsApi.prototype.apiV2ConsultationsRequestIdPost = function (requestParameters, options) {
|
|
648
|
-
var _this = this;
|
|
649
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV2ConsultationsRequestIdPost(requestParameters.requestId, requestParameters.createConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
650
|
-
};
|
|
651
|
-
return ConsultationsApi;
|
|
652
|
-
}(base_1.BaseAPI));
|
|
653
|
-
exports.ConsultationsApi = ConsultationsApi;
|