ch-api-client-typescript2 2.6.7 → 2.7.0
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.d.ts +836 -79
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +619 -0
- package/package.json +1 -1
- package/src/api.ts +1123 -88
package/lib/api.js
CHANGED
|
@@ -1896,6 +1896,138 @@ exports.BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
1896
1896
|
});
|
|
1897
1897
|
});
|
|
1898
1898
|
},
|
|
1899
|
+
/**
|
|
1900
|
+
*
|
|
1901
|
+
* @summary Mark as Paid booking.
|
|
1902
|
+
* @param {string} bookingId
|
|
1903
|
+
* @param {*} [options] Override http request option.
|
|
1904
|
+
* @throws {RequiredError}
|
|
1905
|
+
*/
|
|
1906
|
+
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
1907
|
+
if (options === void 0) { options = {}; }
|
|
1908
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1909
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1910
|
+
return __generator(this, function (_a) {
|
|
1911
|
+
switch (_a.label) {
|
|
1912
|
+
case 0:
|
|
1913
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1914
|
+
common_1.assertParamExists('apiV2BookingsBookingIdPaidPost', 'bookingId', bookingId);
|
|
1915
|
+
localVarPath = "/api/v2/bookings/{bookingId}/paid"
|
|
1916
|
+
.replace("{" + "bookingId" + "}", encodeURIComponent(String(bookingId)));
|
|
1917
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1918
|
+
if (configuration) {
|
|
1919
|
+
baseOptions = configuration.baseOptions;
|
|
1920
|
+
}
|
|
1921
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1922
|
+
localVarHeaderParameter = {};
|
|
1923
|
+
localVarQueryParameter = {};
|
|
1924
|
+
// authentication oauth2 required
|
|
1925
|
+
// oauth required
|
|
1926
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
1927
|
+
case 1:
|
|
1928
|
+
// authentication oauth2 required
|
|
1929
|
+
// oauth required
|
|
1930
|
+
_a.sent();
|
|
1931
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1932
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1933
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1934
|
+
return [2 /*return*/, {
|
|
1935
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1936
|
+
options: localVarRequestOptions,
|
|
1937
|
+
}];
|
|
1938
|
+
}
|
|
1939
|
+
});
|
|
1940
|
+
});
|
|
1941
|
+
},
|
|
1942
|
+
/**
|
|
1943
|
+
*
|
|
1944
|
+
* @summary Pay booking.
|
|
1945
|
+
* @param {string} bookingId
|
|
1946
|
+
* @param {*} [options] Override http request option.
|
|
1947
|
+
* @throws {RequiredError}
|
|
1948
|
+
*/
|
|
1949
|
+
apiV2BookingsBookingIdPayPost: function (bookingId, options) {
|
|
1950
|
+
if (options === void 0) { options = {}; }
|
|
1951
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1952
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1953
|
+
return __generator(this, function (_a) {
|
|
1954
|
+
switch (_a.label) {
|
|
1955
|
+
case 0:
|
|
1956
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
1957
|
+
common_1.assertParamExists('apiV2BookingsBookingIdPayPost', 'bookingId', bookingId);
|
|
1958
|
+
localVarPath = "/api/v2/bookings/{bookingId}/pay"
|
|
1959
|
+
.replace("{" + "bookingId" + "}", encodeURIComponent(String(bookingId)));
|
|
1960
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1961
|
+
if (configuration) {
|
|
1962
|
+
baseOptions = configuration.baseOptions;
|
|
1963
|
+
}
|
|
1964
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
1965
|
+
localVarHeaderParameter = {};
|
|
1966
|
+
localVarQueryParameter = {};
|
|
1967
|
+
// authentication oauth2 required
|
|
1968
|
+
// oauth required
|
|
1969
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
1970
|
+
case 1:
|
|
1971
|
+
// authentication oauth2 required
|
|
1972
|
+
// oauth required
|
|
1973
|
+
_a.sent();
|
|
1974
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1975
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1976
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1977
|
+
return [2 /*return*/, {
|
|
1978
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
1979
|
+
options: localVarRequestOptions,
|
|
1980
|
+
}];
|
|
1981
|
+
}
|
|
1982
|
+
});
|
|
1983
|
+
});
|
|
1984
|
+
},
|
|
1985
|
+
/**
|
|
1986
|
+
*
|
|
1987
|
+
* @summary Update booking.
|
|
1988
|
+
* @param {string} bookingId
|
|
1989
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
1990
|
+
* @param {*} [options] Override http request option.
|
|
1991
|
+
* @throws {RequiredError}
|
|
1992
|
+
*/
|
|
1993
|
+
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
1994
|
+
if (options === void 0) { options = {}; }
|
|
1995
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
1996
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
1997
|
+
return __generator(this, function (_a) {
|
|
1998
|
+
switch (_a.label) {
|
|
1999
|
+
case 0:
|
|
2000
|
+
// verify required parameter 'bookingId' is not null or undefined
|
|
2001
|
+
common_1.assertParamExists('apiV2BookingsBookingIdPut', 'bookingId', bookingId);
|
|
2002
|
+
localVarPath = "/api/v2/bookings/{bookingId}"
|
|
2003
|
+
.replace("{" + "bookingId" + "}", encodeURIComponent(String(bookingId)));
|
|
2004
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2005
|
+
if (configuration) {
|
|
2006
|
+
baseOptions = configuration.baseOptions;
|
|
2007
|
+
}
|
|
2008
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
2009
|
+
localVarHeaderParameter = {};
|
|
2010
|
+
localVarQueryParameter = {};
|
|
2011
|
+
// authentication oauth2 required
|
|
2012
|
+
// oauth required
|
|
2013
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2014
|
+
case 1:
|
|
2015
|
+
// authentication oauth2 required
|
|
2016
|
+
// oauth required
|
|
2017
|
+
_a.sent();
|
|
2018
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2019
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2020
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2021
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2022
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateBookingCommand, localVarRequestOptions, configuration);
|
|
2023
|
+
return [2 /*return*/, {
|
|
2024
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2025
|
+
options: localVarRequestOptions,
|
|
2026
|
+
}];
|
|
2027
|
+
}
|
|
2028
|
+
});
|
|
2029
|
+
});
|
|
2030
|
+
},
|
|
1899
2031
|
/**
|
|
1900
2032
|
*
|
|
1901
2033
|
* @summary Reject booking.
|
|
@@ -2015,6 +2147,52 @@ exports.BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2015
2147
|
});
|
|
2016
2148
|
});
|
|
2017
2149
|
},
|
|
2150
|
+
/**
|
|
2151
|
+
*
|
|
2152
|
+
* @summary Create booking.
|
|
2153
|
+
* @param {string} requestId
|
|
2154
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
2155
|
+
* @param {*} [options] Override http request option.
|
|
2156
|
+
* @throws {RequiredError}
|
|
2157
|
+
*/
|
|
2158
|
+
apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
|
|
2159
|
+
if (options === void 0) { options = {}; }
|
|
2160
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
2161
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
2162
|
+
return __generator(this, function (_a) {
|
|
2163
|
+
switch (_a.label) {
|
|
2164
|
+
case 0:
|
|
2165
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
2166
|
+
common_1.assertParamExists('apiV2BookingsRequestIdPost', 'requestId', requestId);
|
|
2167
|
+
localVarPath = "/api/v2/bookings/{requestId}"
|
|
2168
|
+
.replace("{" + "requestId" + "}", encodeURIComponent(String(requestId)));
|
|
2169
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2170
|
+
if (configuration) {
|
|
2171
|
+
baseOptions = configuration.baseOptions;
|
|
2172
|
+
}
|
|
2173
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
2174
|
+
localVarHeaderParameter = {};
|
|
2175
|
+
localVarQueryParameter = {};
|
|
2176
|
+
// authentication oauth2 required
|
|
2177
|
+
// oauth required
|
|
2178
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
2179
|
+
case 1:
|
|
2180
|
+
// authentication oauth2 required
|
|
2181
|
+
// oauth required
|
|
2182
|
+
_a.sent();
|
|
2183
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
2184
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2185
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2186
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2187
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createBookingCommand, localVarRequestOptions, configuration);
|
|
2188
|
+
return [2 /*return*/, {
|
|
2189
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
2190
|
+
options: localVarRequestOptions,
|
|
2191
|
+
}];
|
|
2192
|
+
}
|
|
2193
|
+
});
|
|
2194
|
+
});
|
|
2195
|
+
},
|
|
2018
2196
|
};
|
|
2019
2197
|
};
|
|
2020
2198
|
/**
|
|
@@ -2105,6 +2283,67 @@ exports.BookingsApiFp = function (configuration) {
|
|
|
2105
2283
|
});
|
|
2106
2284
|
});
|
|
2107
2285
|
},
|
|
2286
|
+
/**
|
|
2287
|
+
*
|
|
2288
|
+
* @summary Mark as Paid booking.
|
|
2289
|
+
* @param {string} bookingId
|
|
2290
|
+
* @param {*} [options] Override http request option.
|
|
2291
|
+
* @throws {RequiredError}
|
|
2292
|
+
*/
|
|
2293
|
+
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2294
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2295
|
+
var localVarAxiosArgs;
|
|
2296
|
+
return __generator(this, function (_a) {
|
|
2297
|
+
switch (_a.label) {
|
|
2298
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPaidPost(bookingId, options)];
|
|
2299
|
+
case 1:
|
|
2300
|
+
localVarAxiosArgs = _a.sent();
|
|
2301
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2302
|
+
}
|
|
2303
|
+
});
|
|
2304
|
+
});
|
|
2305
|
+
},
|
|
2306
|
+
/**
|
|
2307
|
+
*
|
|
2308
|
+
* @summary Pay booking.
|
|
2309
|
+
* @param {string} bookingId
|
|
2310
|
+
* @param {*} [options] Override http request option.
|
|
2311
|
+
* @throws {RequiredError}
|
|
2312
|
+
*/
|
|
2313
|
+
apiV2BookingsBookingIdPayPost: function (bookingId, options) {
|
|
2314
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2315
|
+
var localVarAxiosArgs;
|
|
2316
|
+
return __generator(this, function (_a) {
|
|
2317
|
+
switch (_a.label) {
|
|
2318
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPayPost(bookingId, options)];
|
|
2319
|
+
case 1:
|
|
2320
|
+
localVarAxiosArgs = _a.sent();
|
|
2321
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2322
|
+
}
|
|
2323
|
+
});
|
|
2324
|
+
});
|
|
2325
|
+
},
|
|
2326
|
+
/**
|
|
2327
|
+
*
|
|
2328
|
+
* @summary Update booking.
|
|
2329
|
+
* @param {string} bookingId
|
|
2330
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2331
|
+
* @param {*} [options] Override http request option.
|
|
2332
|
+
* @throws {RequiredError}
|
|
2333
|
+
*/
|
|
2334
|
+
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2335
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2336
|
+
var localVarAxiosArgs;
|
|
2337
|
+
return __generator(this, function (_a) {
|
|
2338
|
+
switch (_a.label) {
|
|
2339
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options)];
|
|
2340
|
+
case 1:
|
|
2341
|
+
localVarAxiosArgs = _a.sent();
|
|
2342
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2343
|
+
}
|
|
2344
|
+
});
|
|
2345
|
+
});
|
|
2346
|
+
},
|
|
2108
2347
|
/**
|
|
2109
2348
|
*
|
|
2110
2349
|
* @summary Reject booking.
|
|
@@ -2153,6 +2392,27 @@ exports.BookingsApiFp = function (configuration) {
|
|
|
2153
2392
|
});
|
|
2154
2393
|
});
|
|
2155
2394
|
},
|
|
2395
|
+
/**
|
|
2396
|
+
*
|
|
2397
|
+
* @summary Create booking.
|
|
2398
|
+
* @param {string} requestId
|
|
2399
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
2400
|
+
* @param {*} [options] Override http request option.
|
|
2401
|
+
* @throws {RequiredError}
|
|
2402
|
+
*/
|
|
2403
|
+
apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
|
|
2404
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2405
|
+
var localVarAxiosArgs;
|
|
2406
|
+
return __generator(this, function (_a) {
|
|
2407
|
+
switch (_a.label) {
|
|
2408
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options)];
|
|
2409
|
+
case 1:
|
|
2410
|
+
localVarAxiosArgs = _a.sent();
|
|
2411
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
2412
|
+
}
|
|
2413
|
+
});
|
|
2414
|
+
});
|
|
2415
|
+
},
|
|
2156
2416
|
};
|
|
2157
2417
|
};
|
|
2158
2418
|
/**
|
|
@@ -2203,6 +2463,37 @@ exports.BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2203
2463
|
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2204
2464
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2205
2465
|
},
|
|
2466
|
+
/**
|
|
2467
|
+
*
|
|
2468
|
+
* @summary Mark as Paid booking.
|
|
2469
|
+
* @param {string} bookingId
|
|
2470
|
+
* @param {*} [options] Override http request option.
|
|
2471
|
+
* @throws {RequiredError}
|
|
2472
|
+
*/
|
|
2473
|
+
apiV2BookingsBookingIdPaidPost: function (bookingId, options) {
|
|
2474
|
+
return localVarFp.apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2475
|
+
},
|
|
2476
|
+
/**
|
|
2477
|
+
*
|
|
2478
|
+
* @summary Pay booking.
|
|
2479
|
+
* @param {string} bookingId
|
|
2480
|
+
* @param {*} [options] Override http request option.
|
|
2481
|
+
* @throws {RequiredError}
|
|
2482
|
+
*/
|
|
2483
|
+
apiV2BookingsBookingIdPayPost: function (bookingId, options) {
|
|
2484
|
+
return localVarFp.apiV2BookingsBookingIdPayPost(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2485
|
+
},
|
|
2486
|
+
/**
|
|
2487
|
+
*
|
|
2488
|
+
* @summary Update booking.
|
|
2489
|
+
* @param {string} bookingId
|
|
2490
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2491
|
+
* @param {*} [options] Override http request option.
|
|
2492
|
+
* @throws {RequiredError}
|
|
2493
|
+
*/
|
|
2494
|
+
apiV2BookingsBookingIdPut: function (bookingId, updateBookingCommand, options) {
|
|
2495
|
+
return localVarFp.apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2496
|
+
},
|
|
2206
2497
|
/**
|
|
2207
2498
|
*
|
|
2208
2499
|
* @summary Reject booking.
|
|
@@ -2231,6 +2522,17 @@ exports.BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2231
2522
|
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options) {
|
|
2232
2523
|
return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2233
2524
|
},
|
|
2525
|
+
/**
|
|
2526
|
+
*
|
|
2527
|
+
* @summary Create booking.
|
|
2528
|
+
* @param {string} requestId
|
|
2529
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
2530
|
+
* @param {*} [options] Override http request option.
|
|
2531
|
+
* @throws {RequiredError}
|
|
2532
|
+
*/
|
|
2533
|
+
apiV2BookingsRequestIdPost: function (requestId, createBookingCommand, options) {
|
|
2534
|
+
return localVarFp.apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then(function (request) { return request(axios, basePath); });
|
|
2535
|
+
},
|
|
2234
2536
|
};
|
|
2235
2537
|
};
|
|
2236
2538
|
/**
|
|
@@ -2293,6 +2595,43 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2293
2595
|
var _this = this;
|
|
2294
2596
|
return exports.BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2295
2597
|
};
|
|
2598
|
+
/**
|
|
2599
|
+
*
|
|
2600
|
+
* @summary Mark as Paid booking.
|
|
2601
|
+
* @param {string} bookingId
|
|
2602
|
+
* @param {*} [options] Override http request option.
|
|
2603
|
+
* @throws {RequiredError}
|
|
2604
|
+
* @memberof BookingsApi
|
|
2605
|
+
*/
|
|
2606
|
+
BookingsApi.prototype.apiV2BookingsBookingIdPaidPost = function (bookingId, options) {
|
|
2607
|
+
var _this = this;
|
|
2608
|
+
return exports.BookingsApiFp(this.configuration).apiV2BookingsBookingIdPaidPost(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2609
|
+
};
|
|
2610
|
+
/**
|
|
2611
|
+
*
|
|
2612
|
+
* @summary Pay booking.
|
|
2613
|
+
* @param {string} bookingId
|
|
2614
|
+
* @param {*} [options] Override http request option.
|
|
2615
|
+
* @throws {RequiredError}
|
|
2616
|
+
* @memberof BookingsApi
|
|
2617
|
+
*/
|
|
2618
|
+
BookingsApi.prototype.apiV2BookingsBookingIdPayPost = function (bookingId, options) {
|
|
2619
|
+
var _this = this;
|
|
2620
|
+
return exports.BookingsApiFp(this.configuration).apiV2BookingsBookingIdPayPost(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2621
|
+
};
|
|
2622
|
+
/**
|
|
2623
|
+
*
|
|
2624
|
+
* @summary Update booking.
|
|
2625
|
+
* @param {string} bookingId
|
|
2626
|
+
* @param {UpdateBookingCommand} [updateBookingCommand]
|
|
2627
|
+
* @param {*} [options] Override http request option.
|
|
2628
|
+
* @throws {RequiredError}
|
|
2629
|
+
* @memberof BookingsApi
|
|
2630
|
+
*/
|
|
2631
|
+
BookingsApi.prototype.apiV2BookingsBookingIdPut = function (bookingId, updateBookingCommand, options) {
|
|
2632
|
+
var _this = this;
|
|
2633
|
+
return exports.BookingsApiFp(this.configuration).apiV2BookingsBookingIdPut(bookingId, updateBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2634
|
+
};
|
|
2296
2635
|
/**
|
|
2297
2636
|
*
|
|
2298
2637
|
* @summary Reject booking.
|
|
@@ -2325,6 +2664,19 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2325
2664
|
var _this = this;
|
|
2326
2665
|
return exports.BookingsApiFp(this.configuration).apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2327
2666
|
};
|
|
2667
|
+
/**
|
|
2668
|
+
*
|
|
2669
|
+
* @summary Create booking.
|
|
2670
|
+
* @param {string} requestId
|
|
2671
|
+
* @param {CreateBookingCommand} [createBookingCommand]
|
|
2672
|
+
* @param {*} [options] Override http request option.
|
|
2673
|
+
* @throws {RequiredError}
|
|
2674
|
+
* @memberof BookingsApi
|
|
2675
|
+
*/
|
|
2676
|
+
BookingsApi.prototype.apiV2BookingsRequestIdPost = function (requestId, createBookingCommand, options) {
|
|
2677
|
+
var _this = this;
|
|
2678
|
+
return exports.BookingsApiFp(this.configuration).apiV2BookingsRequestIdPost(requestId, createBookingCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2679
|
+
};
|
|
2328
2680
|
return BookingsApi;
|
|
2329
2681
|
}(base_1.BaseAPI));
|
|
2330
2682
|
exports.BookingsApi = BookingsApi;
|
|
@@ -3358,6 +3710,95 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3358
3710
|
});
|
|
3359
3711
|
});
|
|
3360
3712
|
},
|
|
3713
|
+
/**
|
|
3714
|
+
*
|
|
3715
|
+
* @summary Pay consultation.
|
|
3716
|
+
* @param {string} consultationId
|
|
3717
|
+
* @param {*} [options] Override http request option.
|
|
3718
|
+
* @throws {RequiredError}
|
|
3719
|
+
*/
|
|
3720
|
+
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
3721
|
+
if (options === void 0) { options = {}; }
|
|
3722
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3723
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3724
|
+
return __generator(this, function (_a) {
|
|
3725
|
+
switch (_a.label) {
|
|
3726
|
+
case 0:
|
|
3727
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
3728
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId);
|
|
3729
|
+
localVarPath = "/api/v2/consultations/{consultationId}/pay"
|
|
3730
|
+
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3731
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3732
|
+
if (configuration) {
|
|
3733
|
+
baseOptions = configuration.baseOptions;
|
|
3734
|
+
}
|
|
3735
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3736
|
+
localVarHeaderParameter = {};
|
|
3737
|
+
localVarQueryParameter = {};
|
|
3738
|
+
// authentication oauth2 required
|
|
3739
|
+
// oauth required
|
|
3740
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
3741
|
+
case 1:
|
|
3742
|
+
// authentication oauth2 required
|
|
3743
|
+
// oauth required
|
|
3744
|
+
_a.sent();
|
|
3745
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3746
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3747
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3748
|
+
return [2 /*return*/, {
|
|
3749
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3750
|
+
options: localVarRequestOptions,
|
|
3751
|
+
}];
|
|
3752
|
+
}
|
|
3753
|
+
});
|
|
3754
|
+
});
|
|
3755
|
+
},
|
|
3756
|
+
/**
|
|
3757
|
+
*
|
|
3758
|
+
* @summary Update consultation.
|
|
3759
|
+
* @param {string} consultationId
|
|
3760
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
3761
|
+
* @param {*} [options] Override http request option.
|
|
3762
|
+
* @throws {RequiredError}
|
|
3763
|
+
*/
|
|
3764
|
+
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
3765
|
+
if (options === void 0) { options = {}; }
|
|
3766
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3767
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3768
|
+
return __generator(this, function (_a) {
|
|
3769
|
+
switch (_a.label) {
|
|
3770
|
+
case 0:
|
|
3771
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
3772
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId);
|
|
3773
|
+
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
3774
|
+
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3775
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3776
|
+
if (configuration) {
|
|
3777
|
+
baseOptions = configuration.baseOptions;
|
|
3778
|
+
}
|
|
3779
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
3780
|
+
localVarHeaderParameter = {};
|
|
3781
|
+
localVarQueryParameter = {};
|
|
3782
|
+
// authentication oauth2 required
|
|
3783
|
+
// oauth required
|
|
3784
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
3785
|
+
case 1:
|
|
3786
|
+
// authentication oauth2 required
|
|
3787
|
+
// oauth required
|
|
3788
|
+
_a.sent();
|
|
3789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3790
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3791
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3792
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3793
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateConsultationCommand, localVarRequestOptions, configuration);
|
|
3794
|
+
return [2 /*return*/, {
|
|
3795
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3796
|
+
options: localVarRequestOptions,
|
|
3797
|
+
}];
|
|
3798
|
+
}
|
|
3799
|
+
});
|
|
3800
|
+
});
|
|
3801
|
+
},
|
|
3361
3802
|
/**
|
|
3362
3803
|
*
|
|
3363
3804
|
* @summary Reject consultation.
|
|
@@ -3477,6 +3918,52 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3477
3918
|
});
|
|
3478
3919
|
});
|
|
3479
3920
|
},
|
|
3921
|
+
/**
|
|
3922
|
+
*
|
|
3923
|
+
* @summary Create consultation.
|
|
3924
|
+
* @param {string} requestId
|
|
3925
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
3926
|
+
* @param {*} [options] Override http request option.
|
|
3927
|
+
* @throws {RequiredError}
|
|
3928
|
+
*/
|
|
3929
|
+
apiV2ConsultationsRequestIdPost: function (requestId, createConsultationCommand, options) {
|
|
3930
|
+
if (options === void 0) { options = {}; }
|
|
3931
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3932
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3933
|
+
return __generator(this, function (_a) {
|
|
3934
|
+
switch (_a.label) {
|
|
3935
|
+
case 0:
|
|
3936
|
+
// verify required parameter 'requestId' is not null or undefined
|
|
3937
|
+
common_1.assertParamExists('apiV2ConsultationsRequestIdPost', 'requestId', requestId);
|
|
3938
|
+
localVarPath = "/api/v2/consultations/{requestId}"
|
|
3939
|
+
.replace("{" + "requestId" + "}", encodeURIComponent(String(requestId)));
|
|
3940
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3941
|
+
if (configuration) {
|
|
3942
|
+
baseOptions = configuration.baseOptions;
|
|
3943
|
+
}
|
|
3944
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3945
|
+
localVarHeaderParameter = {};
|
|
3946
|
+
localVarQueryParameter = {};
|
|
3947
|
+
// authentication oauth2 required
|
|
3948
|
+
// oauth required
|
|
3949
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
3950
|
+
case 1:
|
|
3951
|
+
// authentication oauth2 required
|
|
3952
|
+
// oauth required
|
|
3953
|
+
_a.sent();
|
|
3954
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3955
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3956
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3957
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3958
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(createConsultationCommand, localVarRequestOptions, configuration);
|
|
3959
|
+
return [2 /*return*/, {
|
|
3960
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3961
|
+
options: localVarRequestOptions,
|
|
3962
|
+
}];
|
|
3963
|
+
}
|
|
3964
|
+
});
|
|
3965
|
+
});
|
|
3966
|
+
},
|
|
3480
3967
|
};
|
|
3481
3968
|
};
|
|
3482
3969
|
/**
|
|
@@ -3567,6 +4054,47 @@ exports.ConsultationsApiFp = function (configuration) {
|
|
|
3567
4054
|
});
|
|
3568
4055
|
});
|
|
3569
4056
|
},
|
|
4057
|
+
/**
|
|
4058
|
+
*
|
|
4059
|
+
* @summary Pay consultation.
|
|
4060
|
+
* @param {string} consultationId
|
|
4061
|
+
* @param {*} [options] Override http request option.
|
|
4062
|
+
* @throws {RequiredError}
|
|
4063
|
+
*/
|
|
4064
|
+
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
4065
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4066
|
+
var localVarAxiosArgs;
|
|
4067
|
+
return __generator(this, function (_a) {
|
|
4068
|
+
switch (_a.label) {
|
|
4069
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPayPost(consultationId, options)];
|
|
4070
|
+
case 1:
|
|
4071
|
+
localVarAxiosArgs = _a.sent();
|
|
4072
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4073
|
+
}
|
|
4074
|
+
});
|
|
4075
|
+
});
|
|
4076
|
+
},
|
|
4077
|
+
/**
|
|
4078
|
+
*
|
|
4079
|
+
* @summary Update consultation.
|
|
4080
|
+
* @param {string} consultationId
|
|
4081
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
4082
|
+
* @param {*} [options] Override http request option.
|
|
4083
|
+
* @throws {RequiredError}
|
|
4084
|
+
*/
|
|
4085
|
+
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
4086
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4087
|
+
var localVarAxiosArgs;
|
|
4088
|
+
return __generator(this, function (_a) {
|
|
4089
|
+
switch (_a.label) {
|
|
4090
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options)];
|
|
4091
|
+
case 1:
|
|
4092
|
+
localVarAxiosArgs = _a.sent();
|
|
4093
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4094
|
+
}
|
|
4095
|
+
});
|
|
4096
|
+
});
|
|
4097
|
+
},
|
|
3570
4098
|
/**
|
|
3571
4099
|
*
|
|
3572
4100
|
* @summary Reject consultation.
|
|
@@ -3615,6 +4143,27 @@ exports.ConsultationsApiFp = function (configuration) {
|
|
|
3615
4143
|
});
|
|
3616
4144
|
});
|
|
3617
4145
|
},
|
|
4146
|
+
/**
|
|
4147
|
+
*
|
|
4148
|
+
* @summary Create consultation.
|
|
4149
|
+
* @param {string} requestId
|
|
4150
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
4151
|
+
* @param {*} [options] Override http request option.
|
|
4152
|
+
* @throws {RequiredError}
|
|
4153
|
+
*/
|
|
4154
|
+
apiV2ConsultationsRequestIdPost: function (requestId, createConsultationCommand, options) {
|
|
4155
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
4156
|
+
var localVarAxiosArgs;
|
|
4157
|
+
return __generator(this, function (_a) {
|
|
4158
|
+
switch (_a.label) {
|
|
4159
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options)];
|
|
4160
|
+
case 1:
|
|
4161
|
+
localVarAxiosArgs = _a.sent();
|
|
4162
|
+
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
4163
|
+
}
|
|
4164
|
+
});
|
|
4165
|
+
});
|
|
4166
|
+
},
|
|
3618
4167
|
};
|
|
3619
4168
|
};
|
|
3620
4169
|
/**
|
|
@@ -3665,6 +4214,27 @@ exports.ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
3665
4214
|
apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
3666
4215
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
3667
4216
|
},
|
|
4217
|
+
/**
|
|
4218
|
+
*
|
|
4219
|
+
* @summary Pay consultation.
|
|
4220
|
+
* @param {string} consultationId
|
|
4221
|
+
* @param {*} [options] Override http request option.
|
|
4222
|
+
* @throws {RequiredError}
|
|
4223
|
+
*/
|
|
4224
|
+
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
4225
|
+
return localVarFp.apiV2ConsultationsConsultationIdPayPost(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
4226
|
+
},
|
|
4227
|
+
/**
|
|
4228
|
+
*
|
|
4229
|
+
* @summary Update consultation.
|
|
4230
|
+
* @param {string} consultationId
|
|
4231
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
4232
|
+
* @param {*} [options] Override http request option.
|
|
4233
|
+
* @throws {RequiredError}
|
|
4234
|
+
*/
|
|
4235
|
+
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
4236
|
+
return localVarFp.apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
4237
|
+
},
|
|
3668
4238
|
/**
|
|
3669
4239
|
*
|
|
3670
4240
|
* @summary Reject consultation.
|
|
@@ -3693,6 +4263,17 @@ exports.ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
3693
4263
|
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
3694
4264
|
return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
3695
4265
|
},
|
|
4266
|
+
/**
|
|
4267
|
+
*
|
|
4268
|
+
* @summary Create consultation.
|
|
4269
|
+
* @param {string} requestId
|
|
4270
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
4271
|
+
* @param {*} [options] Override http request option.
|
|
4272
|
+
* @throws {RequiredError}
|
|
4273
|
+
*/
|
|
4274
|
+
apiV2ConsultationsRequestIdPost: function (requestId, createConsultationCommand, options) {
|
|
4275
|
+
return localVarFp.apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
4276
|
+
},
|
|
3696
4277
|
};
|
|
3697
4278
|
};
|
|
3698
4279
|
/**
|
|
@@ -3755,6 +4336,31 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
3755
4336
|
var _this = this;
|
|
3756
4337
|
return exports.ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3757
4338
|
};
|
|
4339
|
+
/**
|
|
4340
|
+
*
|
|
4341
|
+
* @summary Pay consultation.
|
|
4342
|
+
* @param {string} consultationId
|
|
4343
|
+
* @param {*} [options] Override http request option.
|
|
4344
|
+
* @throws {RequiredError}
|
|
4345
|
+
* @memberof ConsultationsApi
|
|
4346
|
+
*/
|
|
4347
|
+
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdPayPost = function (consultationId, options) {
|
|
4348
|
+
var _this = this;
|
|
4349
|
+
return exports.ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPayPost(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4350
|
+
};
|
|
4351
|
+
/**
|
|
4352
|
+
*
|
|
4353
|
+
* @summary Update consultation.
|
|
4354
|
+
* @param {string} consultationId
|
|
4355
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
4356
|
+
* @param {*} [options] Override http request option.
|
|
4357
|
+
* @throws {RequiredError}
|
|
4358
|
+
* @memberof ConsultationsApi
|
|
4359
|
+
*/
|
|
4360
|
+
ConsultationsApi.prototype.apiV2ConsultationsConsultationIdPut = function (consultationId, updateConsultationCommand, options) {
|
|
4361
|
+
var _this = this;
|
|
4362
|
+
return exports.ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdPut(consultationId, updateConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4363
|
+
};
|
|
3758
4364
|
/**
|
|
3759
4365
|
*
|
|
3760
4366
|
* @summary Reject consultation.
|
|
@@ -3787,6 +4393,19 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
3787
4393
|
var _this = this;
|
|
3788
4394
|
return exports.ConsultationsApiFp(this.configuration).apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3789
4395
|
};
|
|
4396
|
+
/**
|
|
4397
|
+
*
|
|
4398
|
+
* @summary Create consultation.
|
|
4399
|
+
* @param {string} requestId
|
|
4400
|
+
* @param {CreateConsultationCommand} [createConsultationCommand]
|
|
4401
|
+
* @param {*} [options] Override http request option.
|
|
4402
|
+
* @throws {RequiredError}
|
|
4403
|
+
* @memberof ConsultationsApi
|
|
4404
|
+
*/
|
|
4405
|
+
ConsultationsApi.prototype.apiV2ConsultationsRequestIdPost = function (requestId, createConsultationCommand, options) {
|
|
4406
|
+
var _this = this;
|
|
4407
|
+
return exports.ConsultationsApiFp(this.configuration).apiV2ConsultationsRequestIdPost(requestId, createConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
4408
|
+
};
|
|
3790
4409
|
return ConsultationsApi;
|
|
3791
4410
|
}(base_1.BaseAPI));
|
|
3792
4411
|
exports.ConsultationsApi = ConsultationsApi;
|