ch-api-client-typescript2 2.6.5 → 2.6.9
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 +736 -78
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +728 -71
- package/package.json +1 -1
- package/src/api.ts +1058 -102
package/lib/api.js
CHANGED
|
@@ -181,6 +181,9 @@ var MediaType;
|
|
|
181
181
|
MediaType["Video"] = "Video";
|
|
182
182
|
MediaType["Youtube"] = "Youtube";
|
|
183
183
|
MediaType["Document"] = "Document";
|
|
184
|
+
MediaType["Frontal"] = "Frontal";
|
|
185
|
+
MediaType["Diagonal"] = "Diagonal";
|
|
186
|
+
MediaType["Side"] = "Side";
|
|
184
187
|
})(MediaType = exports.MediaType || (exports.MediaType = {}));
|
|
185
188
|
/**
|
|
186
189
|
*
|
|
@@ -1893,6 +1896,138 @@ exports.BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
1893
1896
|
});
|
|
1894
1897
|
});
|
|
1895
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
|
+
},
|
|
1896
2031
|
/**
|
|
1897
2032
|
*
|
|
1898
2033
|
* @summary Reject booking.
|
|
@@ -2012,6 +2147,52 @@ exports.BookingsApiAxiosParamCreator = function (configuration) {
|
|
|
2012
2147
|
});
|
|
2013
2148
|
});
|
|
2014
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
|
+
},
|
|
2015
2196
|
};
|
|
2016
2197
|
};
|
|
2017
2198
|
/**
|
|
@@ -2102,6 +2283,67 @@ exports.BookingsApiFp = function (configuration) {
|
|
|
2102
2283
|
});
|
|
2103
2284
|
});
|
|
2104
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
|
+
},
|
|
2105
2347
|
/**
|
|
2106
2348
|
*
|
|
2107
2349
|
* @summary Reject booking.
|
|
@@ -2150,6 +2392,27 @@ exports.BookingsApiFp = function (configuration) {
|
|
|
2150
2392
|
});
|
|
2151
2393
|
});
|
|
2152
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
|
+
},
|
|
2153
2416
|
};
|
|
2154
2417
|
};
|
|
2155
2418
|
/**
|
|
@@ -2200,6 +2463,37 @@ exports.BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2200
2463
|
apiV2BookingsBookingIdGet: function (bookingId, options) {
|
|
2201
2464
|
return localVarFp.apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(axios, basePath); });
|
|
2202
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
|
+
},
|
|
2203
2497
|
/**
|
|
2204
2498
|
*
|
|
2205
2499
|
* @summary Reject booking.
|
|
@@ -2228,6 +2522,17 @@ exports.BookingsApiFactory = function (configuration, basePath, axios) {
|
|
|
2228
2522
|
apiV2BookingsGet: function (searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options) {
|
|
2229
2523
|
return localVarFp.apiV2BookingsGet(searchString, isOpen, isCompleted, status, dealPackageId, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
2230
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
|
+
},
|
|
2231
2536
|
};
|
|
2232
2537
|
};
|
|
2233
2538
|
/**
|
|
@@ -2290,6 +2595,43 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2290
2595
|
var _this = this;
|
|
2291
2596
|
return exports.BookingsApiFp(this.configuration).apiV2BookingsBookingIdGet(bookingId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
2292
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
|
+
};
|
|
2293
2635
|
/**
|
|
2294
2636
|
*
|
|
2295
2637
|
* @summary Reject booking.
|
|
@@ -2322,6 +2664,19 @@ var BookingsApi = /** @class */ (function (_super) {
|
|
|
2322
2664
|
var _this = this;
|
|
2323
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); });
|
|
2324
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
|
+
};
|
|
2325
2680
|
return BookingsApi;
|
|
2326
2681
|
}(base_1.BaseAPI));
|
|
2327
2682
|
exports.BookingsApi = BookingsApi;
|
|
@@ -3182,13 +3537,101 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3182
3537
|
return {
|
|
3183
3538
|
/**
|
|
3184
3539
|
*
|
|
3185
|
-
* @summary Approve consultation.
|
|
3540
|
+
* @summary Approve consultation.
|
|
3541
|
+
* @param {string} consultationId
|
|
3542
|
+
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
3543
|
+
* @param {*} [options] Override http request option.
|
|
3544
|
+
* @throws {RequiredError}
|
|
3545
|
+
*/
|
|
3546
|
+
apiV2ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
3547
|
+
if (options === void 0) { options = {}; }
|
|
3548
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3549
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3550
|
+
return __generator(this, function (_a) {
|
|
3551
|
+
switch (_a.label) {
|
|
3552
|
+
case 0:
|
|
3553
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
3554
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdApprovePut', 'consultationId', consultationId);
|
|
3555
|
+
localVarPath = "/api/v2/consultations/{consultationId}/approve"
|
|
3556
|
+
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3557
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3558
|
+
if (configuration) {
|
|
3559
|
+
baseOptions = configuration.baseOptions;
|
|
3560
|
+
}
|
|
3561
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
3562
|
+
localVarHeaderParameter = {};
|
|
3563
|
+
localVarQueryParameter = {};
|
|
3564
|
+
// authentication oauth2 required
|
|
3565
|
+
// oauth required
|
|
3566
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
3567
|
+
case 1:
|
|
3568
|
+
// authentication oauth2 required
|
|
3569
|
+
// oauth required
|
|
3570
|
+
_a.sent();
|
|
3571
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3572
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3573
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3574
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3575
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(approveConsultationCommand, localVarRequestOptions, configuration);
|
|
3576
|
+
return [2 /*return*/, {
|
|
3577
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3578
|
+
options: localVarRequestOptions,
|
|
3579
|
+
}];
|
|
3580
|
+
}
|
|
3581
|
+
});
|
|
3582
|
+
});
|
|
3583
|
+
},
|
|
3584
|
+
/**
|
|
3585
|
+
*
|
|
3586
|
+
* @summary Cancel consultation.
|
|
3587
|
+
* @param {string} consultationId
|
|
3588
|
+
* @param {*} [options] Override http request option.
|
|
3589
|
+
* @throws {RequiredError}
|
|
3590
|
+
*/
|
|
3591
|
+
apiV2ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
3592
|
+
if (options === void 0) { options = {}; }
|
|
3593
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
3594
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
3595
|
+
return __generator(this, function (_a) {
|
|
3596
|
+
switch (_a.label) {
|
|
3597
|
+
case 0:
|
|
3598
|
+
// verify required parameter 'consultationId' is not null or undefined
|
|
3599
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdCancelPut', 'consultationId', consultationId);
|
|
3600
|
+
localVarPath = "/api/v2/consultations/{consultationId}/cancel"
|
|
3601
|
+
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3602
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3603
|
+
if (configuration) {
|
|
3604
|
+
baseOptions = configuration.baseOptions;
|
|
3605
|
+
}
|
|
3606
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
3607
|
+
localVarHeaderParameter = {};
|
|
3608
|
+
localVarQueryParameter = {};
|
|
3609
|
+
// authentication oauth2 required
|
|
3610
|
+
// oauth required
|
|
3611
|
+
return [4 /*yield*/, common_1.setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
|
|
3612
|
+
case 1:
|
|
3613
|
+
// authentication oauth2 required
|
|
3614
|
+
// oauth required
|
|
3615
|
+
_a.sent();
|
|
3616
|
+
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3617
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3618
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3619
|
+
return [2 /*return*/, {
|
|
3620
|
+
url: common_1.toPathString(localVarUrlObj),
|
|
3621
|
+
options: localVarRequestOptions,
|
|
3622
|
+
}];
|
|
3623
|
+
}
|
|
3624
|
+
});
|
|
3625
|
+
});
|
|
3626
|
+
},
|
|
3627
|
+
/**
|
|
3628
|
+
*
|
|
3629
|
+
* @summary Delete consultation.
|
|
3186
3630
|
* @param {string} consultationId
|
|
3187
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
3188
3631
|
* @param {*} [options] Override http request option.
|
|
3189
3632
|
* @throws {RequiredError}
|
|
3190
3633
|
*/
|
|
3191
|
-
|
|
3634
|
+
apiV2ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
3192
3635
|
if (options === void 0) { options = {}; }
|
|
3193
3636
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3194
3637
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3196,14 +3639,14 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3196
3639
|
switch (_a.label) {
|
|
3197
3640
|
case 0:
|
|
3198
3641
|
// verify required parameter 'consultationId' is not null or undefined
|
|
3199
|
-
common_1.assertParamExists('
|
|
3200
|
-
localVarPath = "/api/v2/consultations/{consultationId}
|
|
3642
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdDelete', 'consultationId', consultationId);
|
|
3643
|
+
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
3201
3644
|
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3202
3645
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3203
3646
|
if (configuration) {
|
|
3204
3647
|
baseOptions = configuration.baseOptions;
|
|
3205
3648
|
}
|
|
3206
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
3649
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
3207
3650
|
localVarHeaderParameter = {};
|
|
3208
3651
|
localVarQueryParameter = {};
|
|
3209
3652
|
// authentication oauth2 required
|
|
@@ -3213,11 +3656,9 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3213
3656
|
// authentication oauth2 required
|
|
3214
3657
|
// oauth required
|
|
3215
3658
|
_a.sent();
|
|
3216
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3217
3659
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3218
3660
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3219
3661
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3220
|
-
localVarRequestOptions.data = common_1.serializeDataIfNeeded(approveConsultationCommand, localVarRequestOptions, configuration);
|
|
3221
3662
|
return [2 /*return*/, {
|
|
3222
3663
|
url: common_1.toPathString(localVarUrlObj),
|
|
3223
3664
|
options: localVarRequestOptions,
|
|
@@ -3228,12 +3669,12 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3228
3669
|
},
|
|
3229
3670
|
/**
|
|
3230
3671
|
*
|
|
3231
|
-
* @summary
|
|
3672
|
+
* @summary Get consultation.
|
|
3232
3673
|
* @param {string} consultationId
|
|
3233
3674
|
* @param {*} [options] Override http request option.
|
|
3234
3675
|
* @throws {RequiredError}
|
|
3235
3676
|
*/
|
|
3236
|
-
|
|
3677
|
+
apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
3237
3678
|
if (options === void 0) { options = {}; }
|
|
3238
3679
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3239
3680
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3241,14 +3682,14 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3241
3682
|
switch (_a.label) {
|
|
3242
3683
|
case 0:
|
|
3243
3684
|
// verify required parameter 'consultationId' is not null or undefined
|
|
3244
|
-
common_1.assertParamExists('
|
|
3245
|
-
localVarPath = "/api/v2/consultations/{consultationId}
|
|
3685
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdGet', 'consultationId', consultationId);
|
|
3686
|
+
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
3246
3687
|
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3247
3688
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3248
3689
|
if (configuration) {
|
|
3249
3690
|
baseOptions = configuration.baseOptions;
|
|
3250
3691
|
}
|
|
3251
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
3692
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
3252
3693
|
localVarHeaderParameter = {};
|
|
3253
3694
|
localVarQueryParameter = {};
|
|
3254
3695
|
// authentication oauth2 required
|
|
@@ -3271,12 +3712,12 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3271
3712
|
},
|
|
3272
3713
|
/**
|
|
3273
3714
|
*
|
|
3274
|
-
* @summary
|
|
3715
|
+
* @summary Pay consultation.
|
|
3275
3716
|
* @param {string} consultationId
|
|
3276
3717
|
* @param {*} [options] Override http request option.
|
|
3277
3718
|
* @throws {RequiredError}
|
|
3278
3719
|
*/
|
|
3279
|
-
|
|
3720
|
+
apiV2ConsultationsConsultationIdPayPost: function (consultationId, options) {
|
|
3280
3721
|
if (options === void 0) { options = {}; }
|
|
3281
3722
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3282
3723
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3284,14 +3725,14 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3284
3725
|
switch (_a.label) {
|
|
3285
3726
|
case 0:
|
|
3286
3727
|
// verify required parameter 'consultationId' is not null or undefined
|
|
3287
|
-
common_1.assertParamExists('
|
|
3288
|
-
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
3728
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdPayPost', 'consultationId', consultationId);
|
|
3729
|
+
localVarPath = "/api/v2/consultations/{consultationId}/pay"
|
|
3289
3730
|
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3290
3731
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3291
3732
|
if (configuration) {
|
|
3292
3733
|
baseOptions = configuration.baseOptions;
|
|
3293
3734
|
}
|
|
3294
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
3735
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
3295
3736
|
localVarHeaderParameter = {};
|
|
3296
3737
|
localVarQueryParameter = {};
|
|
3297
3738
|
// authentication oauth2 required
|
|
@@ -3314,12 +3755,13 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3314
3755
|
},
|
|
3315
3756
|
/**
|
|
3316
3757
|
*
|
|
3317
|
-
* @summary
|
|
3758
|
+
* @summary Update consultation.
|
|
3318
3759
|
* @param {string} consultationId
|
|
3760
|
+
* @param {UpdateConsultationCommand} [updateConsultationCommand]
|
|
3319
3761
|
* @param {*} [options] Override http request option.
|
|
3320
3762
|
* @throws {RequiredError}
|
|
3321
3763
|
*/
|
|
3322
|
-
|
|
3764
|
+
apiV2ConsultationsConsultationIdPut: function (consultationId, updateConsultationCommand, options) {
|
|
3323
3765
|
if (options === void 0) { options = {}; }
|
|
3324
3766
|
return __awaiter(_this, void 0, void 0, function () {
|
|
3325
3767
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -3327,14 +3769,14 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3327
3769
|
switch (_a.label) {
|
|
3328
3770
|
case 0:
|
|
3329
3771
|
// verify required parameter 'consultationId' is not null or undefined
|
|
3330
|
-
common_1.assertParamExists('
|
|
3772
|
+
common_1.assertParamExists('apiV2ConsultationsConsultationIdPut', 'consultationId', consultationId);
|
|
3331
3773
|
localVarPath = "/api/v2/consultations/{consultationId}"
|
|
3332
3774
|
.replace("{" + "consultationId" + "}", encodeURIComponent(String(consultationId)));
|
|
3333
3775
|
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3334
3776
|
if (configuration) {
|
|
3335
3777
|
baseOptions = configuration.baseOptions;
|
|
3336
3778
|
}
|
|
3337
|
-
localVarRequestOptions = __assign(__assign({ method: '
|
|
3779
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
3338
3780
|
localVarHeaderParameter = {};
|
|
3339
3781
|
localVarQueryParameter = {};
|
|
3340
3782
|
// authentication oauth2 required
|
|
@@ -3344,9 +3786,11 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3344
3786
|
// authentication oauth2 required
|
|
3345
3787
|
// oauth required
|
|
3346
3788
|
_a.sent();
|
|
3789
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3347
3790
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3348
3791
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3349
3792
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3793
|
+
localVarRequestOptions.data = common_1.serializeDataIfNeeded(updateConsultationCommand, localVarRequestOptions, configuration);
|
|
3350
3794
|
return [2 /*return*/, {
|
|
3351
3795
|
url: common_1.toPathString(localVarUrlObj),
|
|
3352
3796
|
options: localVarRequestOptions,
|
|
@@ -3474,6 +3918,52 @@ exports.ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
|
3474
3918
|
});
|
|
3475
3919
|
});
|
|
3476
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
|
+
},
|
|
3477
3967
|
};
|
|
3478
3968
|
};
|
|
3479
3969
|
/**
|
|
@@ -3564,6 +4054,47 @@ exports.ConsultationsApiFp = function (configuration) {
|
|
|
3564
4054
|
});
|
|
3565
4055
|
});
|
|
3566
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
|
+
},
|
|
3567
4098
|
/**
|
|
3568
4099
|
*
|
|
3569
4100
|
* @summary Reject consultation.
|
|
@@ -3612,6 +4143,27 @@ exports.ConsultationsApiFp = function (configuration) {
|
|
|
3612
4143
|
});
|
|
3613
4144
|
});
|
|
3614
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
|
+
},
|
|
3615
4167
|
};
|
|
3616
4168
|
};
|
|
3617
4169
|
/**
|
|
@@ -3662,6 +4214,27 @@ exports.ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
3662
4214
|
apiV2ConsultationsConsultationIdGet: function (consultationId, options) {
|
|
3663
4215
|
return localVarFp.apiV2ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
3664
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
|
+
},
|
|
3665
4238
|
/**
|
|
3666
4239
|
*
|
|
3667
4240
|
* @summary Reject consultation.
|
|
@@ -3690,6 +4263,17 @@ exports.ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
|
3690
4263
|
apiV2ConsultationsGet: function (searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options) {
|
|
3691
4264
|
return localVarFp.apiV2ConsultationsGet(searchString, isOpen, isCompleted, status, consultationType, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
3692
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
|
+
},
|
|
3693
4277
|
};
|
|
3694
4278
|
};
|
|
3695
4279
|
/**
|
|
@@ -3752,6 +4336,31 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
3752
4336
|
var _this = this;
|
|
3753
4337
|
return exports.ConsultationsApiFp(this.configuration).apiV2ConsultationsConsultationIdGet(consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
3754
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
|
+
};
|
|
3755
4364
|
/**
|
|
3756
4365
|
*
|
|
3757
4366
|
* @summary Reject consultation.
|
|
@@ -3784,6 +4393,19 @@ var ConsultationsApi = /** @class */ (function (_super) {
|
|
|
3784
4393
|
var _this = this;
|
|
3785
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); });
|
|
3786
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
|
+
};
|
|
3787
4409
|
return ConsultationsApi;
|
|
3788
4410
|
}(base_1.BaseAPI));
|
|
3789
4411
|
exports.ConsultationsApi = ConsultationsApi;
|
|
@@ -4912,10 +5534,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
4912
5534
|
*
|
|
4913
5535
|
* @summary Get deal.
|
|
4914
5536
|
* @param {string} dealId
|
|
5537
|
+
* @param {string} [languageCode]
|
|
5538
|
+
* @param {boolean} [returnDefaultValue]
|
|
4915
5539
|
* @param {*} [options] Override http request option.
|
|
4916
5540
|
* @throws {RequiredError}
|
|
4917
5541
|
*/
|
|
4918
|
-
apiV2DealsDealIdGet: function (dealId, options) {
|
|
5542
|
+
apiV2DealsDealIdGet: function (dealId, languageCode, returnDefaultValue, options) {
|
|
4919
5543
|
if (options === void 0) { options = {}; }
|
|
4920
5544
|
return __awaiter(_this, void 0, void 0, function () {
|
|
4921
5545
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -4931,6 +5555,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
4931
5555
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
4932
5556
|
localVarHeaderParameter = {};
|
|
4933
5557
|
localVarQueryParameter = {};
|
|
5558
|
+
if (languageCode !== undefined) {
|
|
5559
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
5560
|
+
}
|
|
5561
|
+
if (returnDefaultValue !== undefined) {
|
|
5562
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
5563
|
+
}
|
|
4934
5564
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4935
5565
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4936
5566
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5147,13 +5777,16 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5147
5777
|
* @param {string} [exceptHospitalId]
|
|
5148
5778
|
* @param {string} [exceptDealId]
|
|
5149
5779
|
* @param {Array<string>} [ids]
|
|
5780
|
+
* @param {string} [languageCode]
|
|
5781
|
+
* @param {boolean} [showHidden]
|
|
5782
|
+
* @param {boolean} [returnDefaultValue]
|
|
5150
5783
|
* @param {number} [page]
|
|
5151
5784
|
* @param {number} [limit]
|
|
5152
5785
|
* @param {Date} [lastRetrieved]
|
|
5153
5786
|
* @param {*} [options] Override http request option.
|
|
5154
5787
|
* @throws {RequiredError}
|
|
5155
5788
|
*/
|
|
5156
|
-
apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
5789
|
+
apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
5157
5790
|
if (options === void 0) { options = {}; }
|
|
5158
5791
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5159
5792
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5199,6 +5832,15 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5199
5832
|
if (ids) {
|
|
5200
5833
|
localVarQueryParameter['Ids'] = ids;
|
|
5201
5834
|
}
|
|
5835
|
+
if (languageCode !== undefined) {
|
|
5836
|
+
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
5837
|
+
}
|
|
5838
|
+
if (showHidden !== undefined) {
|
|
5839
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
5840
|
+
}
|
|
5841
|
+
if (returnDefaultValue !== undefined) {
|
|
5842
|
+
localVarQueryParameter['ReturnDefaultValue'] = returnDefaultValue;
|
|
5843
|
+
}
|
|
5202
5844
|
if (page !== undefined) {
|
|
5203
5845
|
localVarQueryParameter['page'] = page;
|
|
5204
5846
|
}
|
|
@@ -5224,10 +5866,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5224
5866
|
*
|
|
5225
5867
|
* @summary Get deal by slug.
|
|
5226
5868
|
* @param {string} slug
|
|
5869
|
+
* @param {string} [languageCode]
|
|
5870
|
+
* @param {boolean} [returnDefaultValue]
|
|
5227
5871
|
* @param {*} [options] Override http request option.
|
|
5228
5872
|
* @throws {RequiredError}
|
|
5229
5873
|
*/
|
|
5230
|
-
apiV2DealsSlugGet: function (slug, options) {
|
|
5874
|
+
apiV2DealsSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
5231
5875
|
if (options === void 0) { options = {}; }
|
|
5232
5876
|
return __awaiter(_this, void 0, void 0, function () {
|
|
5233
5877
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -5243,6 +5887,12 @@ exports.DealsApiAxiosParamCreator = function (configuration) {
|
|
|
5243
5887
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
5244
5888
|
localVarHeaderParameter = {};
|
|
5245
5889
|
localVarQueryParameter = {};
|
|
5890
|
+
if (languageCode !== undefined) {
|
|
5891
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
5892
|
+
}
|
|
5893
|
+
if (returnDefaultValue !== undefined) {
|
|
5894
|
+
localVarQueryParameter['returnDefaultValue'] = returnDefaultValue;
|
|
5895
|
+
}
|
|
5246
5896
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
5247
5897
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5248
5898
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -5266,15 +5916,17 @@ exports.DealsApiFp = function (configuration) {
|
|
|
5266
5916
|
*
|
|
5267
5917
|
* @summary Get deal.
|
|
5268
5918
|
* @param {string} dealId
|
|
5919
|
+
* @param {string} [languageCode]
|
|
5920
|
+
* @param {boolean} [returnDefaultValue]
|
|
5269
5921
|
* @param {*} [options] Override http request option.
|
|
5270
5922
|
* @throws {RequiredError}
|
|
5271
5923
|
*/
|
|
5272
|
-
apiV2DealsDealIdGet: function (dealId, options) {
|
|
5924
|
+
apiV2DealsDealIdGet: function (dealId, languageCode, returnDefaultValue, options) {
|
|
5273
5925
|
return __awaiter(this, void 0, void 0, function () {
|
|
5274
5926
|
var localVarAxiosArgs;
|
|
5275
5927
|
return __generator(this, function (_a) {
|
|
5276
5928
|
switch (_a.label) {
|
|
5277
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, options)];
|
|
5929
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options)];
|
|
5278
5930
|
case 1:
|
|
5279
5931
|
localVarAxiosArgs = _a.sent();
|
|
5280
5932
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5390,18 +6042,21 @@ exports.DealsApiFp = function (configuration) {
|
|
|
5390
6042
|
* @param {string} [exceptHospitalId]
|
|
5391
6043
|
* @param {string} [exceptDealId]
|
|
5392
6044
|
* @param {Array<string>} [ids]
|
|
6045
|
+
* @param {string} [languageCode]
|
|
6046
|
+
* @param {boolean} [showHidden]
|
|
6047
|
+
* @param {boolean} [returnDefaultValue]
|
|
5393
6048
|
* @param {number} [page]
|
|
5394
6049
|
* @param {number} [limit]
|
|
5395
6050
|
* @param {Date} [lastRetrieved]
|
|
5396
6051
|
* @param {*} [options] Override http request option.
|
|
5397
6052
|
* @throws {RequiredError}
|
|
5398
6053
|
*/
|
|
5399
|
-
apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
6054
|
+
apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
5400
6055
|
return __awaiter(this, void 0, void 0, function () {
|
|
5401
6056
|
var localVarAxiosArgs;
|
|
5402
6057
|
return __generator(this, function (_a) {
|
|
5403
6058
|
switch (_a.label) {
|
|
5404
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options)];
|
|
6059
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options)];
|
|
5405
6060
|
case 1:
|
|
5406
6061
|
localVarAxiosArgs = _a.sent();
|
|
5407
6062
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5413,15 +6068,17 @@ exports.DealsApiFp = function (configuration) {
|
|
|
5413
6068
|
*
|
|
5414
6069
|
* @summary Get deal by slug.
|
|
5415
6070
|
* @param {string} slug
|
|
6071
|
+
* @param {string} [languageCode]
|
|
6072
|
+
* @param {boolean} [returnDefaultValue]
|
|
5416
6073
|
* @param {*} [options] Override http request option.
|
|
5417
6074
|
* @throws {RequiredError}
|
|
5418
6075
|
*/
|
|
5419
|
-
apiV2DealsSlugGet: function (slug, options) {
|
|
6076
|
+
apiV2DealsSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
5420
6077
|
return __awaiter(this, void 0, void 0, function () {
|
|
5421
6078
|
var localVarAxiosArgs;
|
|
5422
6079
|
return __generator(this, function (_a) {
|
|
5423
6080
|
switch (_a.label) {
|
|
5424
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsSlugGet(slug, options)];
|
|
6081
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options)];
|
|
5425
6082
|
case 1:
|
|
5426
6083
|
localVarAxiosArgs = _a.sent();
|
|
5427
6084
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -5442,11 +6099,13 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
5442
6099
|
*
|
|
5443
6100
|
* @summary Get deal.
|
|
5444
6101
|
* @param {string} dealId
|
|
6102
|
+
* @param {string} [languageCode]
|
|
6103
|
+
* @param {boolean} [returnDefaultValue]
|
|
5445
6104
|
* @param {*} [options] Override http request option.
|
|
5446
6105
|
* @throws {RequiredError}
|
|
5447
6106
|
*/
|
|
5448
|
-
apiV2DealsDealIdGet: function (dealId, options) {
|
|
5449
|
-
return localVarFp.apiV2DealsDealIdGet(dealId, options).then(function (request) { return request(axios, basePath); });
|
|
6107
|
+
apiV2DealsDealIdGet: function (dealId, languageCode, returnDefaultValue, options) {
|
|
6108
|
+
return localVarFp.apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
5450
6109
|
},
|
|
5451
6110
|
/**
|
|
5452
6111
|
*
|
|
@@ -5516,24 +6175,29 @@ exports.DealsApiFactory = function (configuration, basePath, axios) {
|
|
|
5516
6175
|
* @param {string} [exceptHospitalId]
|
|
5517
6176
|
* @param {string} [exceptDealId]
|
|
5518
6177
|
* @param {Array<string>} [ids]
|
|
6178
|
+
* @param {string} [languageCode]
|
|
6179
|
+
* @param {boolean} [showHidden]
|
|
6180
|
+
* @param {boolean} [returnDefaultValue]
|
|
5519
6181
|
* @param {number} [page]
|
|
5520
6182
|
* @param {number} [limit]
|
|
5521
6183
|
* @param {Date} [lastRetrieved]
|
|
5522
6184
|
* @param {*} [options] Override http request option.
|
|
5523
6185
|
* @throws {RequiredError}
|
|
5524
6186
|
*/
|
|
5525
|
-
apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
5526
|
-
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
6187
|
+
apiV2DealsGet: function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
6188
|
+
return localVarFp.apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
5527
6189
|
},
|
|
5528
6190
|
/**
|
|
5529
6191
|
*
|
|
5530
6192
|
* @summary Get deal by slug.
|
|
5531
6193
|
* @param {string} slug
|
|
6194
|
+
* @param {string} [languageCode]
|
|
6195
|
+
* @param {boolean} [returnDefaultValue]
|
|
5532
6196
|
* @param {*} [options] Override http request option.
|
|
5533
6197
|
* @throws {RequiredError}
|
|
5534
6198
|
*/
|
|
5535
|
-
apiV2DealsSlugGet: function (slug, options) {
|
|
5536
|
-
return localVarFp.apiV2DealsSlugGet(slug, options).then(function (request) { return request(axios, basePath); });
|
|
6199
|
+
apiV2DealsSlugGet: function (slug, languageCode, returnDefaultValue, options) {
|
|
6200
|
+
return localVarFp.apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then(function (request) { return request(axios, basePath); });
|
|
5537
6201
|
},
|
|
5538
6202
|
};
|
|
5539
6203
|
};
|
|
@@ -5552,13 +6216,15 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
5552
6216
|
*
|
|
5553
6217
|
* @summary Get deal.
|
|
5554
6218
|
* @param {string} dealId
|
|
6219
|
+
* @param {string} [languageCode]
|
|
6220
|
+
* @param {boolean} [returnDefaultValue]
|
|
5555
6221
|
* @param {*} [options] Override http request option.
|
|
5556
6222
|
* @throws {RequiredError}
|
|
5557
6223
|
* @memberof DealsApi
|
|
5558
6224
|
*/
|
|
5559
|
-
DealsApi.prototype.apiV2DealsDealIdGet = function (dealId, options) {
|
|
6225
|
+
DealsApi.prototype.apiV2DealsDealIdGet = function (dealId, languageCode, returnDefaultValue, options) {
|
|
5560
6226
|
var _this = this;
|
|
5561
|
-
return exports.DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6227
|
+
return exports.DealsApiFp(this.configuration).apiV2DealsDealIdGet(dealId, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5562
6228
|
};
|
|
5563
6229
|
/**
|
|
5564
6230
|
*
|
|
@@ -5636,6 +6302,9 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
5636
6302
|
* @param {string} [exceptHospitalId]
|
|
5637
6303
|
* @param {string} [exceptDealId]
|
|
5638
6304
|
* @param {Array<string>} [ids]
|
|
6305
|
+
* @param {string} [languageCode]
|
|
6306
|
+
* @param {boolean} [showHidden]
|
|
6307
|
+
* @param {boolean} [returnDefaultValue]
|
|
5639
6308
|
* @param {number} [page]
|
|
5640
6309
|
* @param {number} [limit]
|
|
5641
6310
|
* @param {Date} [lastRetrieved]
|
|
@@ -5643,21 +6312,23 @@ var DealsApi = /** @class */ (function (_super) {
|
|
|
5643
6312
|
* @throws {RequiredError}
|
|
5644
6313
|
* @memberof DealsApi
|
|
5645
6314
|
*/
|
|
5646
|
-
DealsApi.prototype.apiV2DealsGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options) {
|
|
6315
|
+
DealsApi.prototype.apiV2DealsGet = function (id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options) {
|
|
5647
6316
|
var _this = this;
|
|
5648
|
-
return exports.DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6317
|
+
return exports.DealsApiFp(this.configuration).apiV2DealsGet(id, name, marketingType, countryId, hospitalId, hospitalName, specialtyId, specialtyTypeId, exceptHospitalId, exceptDealId, ids, languageCode, showHidden, returnDefaultValue, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5649
6318
|
};
|
|
5650
6319
|
/**
|
|
5651
6320
|
*
|
|
5652
6321
|
* @summary Get deal by slug.
|
|
5653
6322
|
* @param {string} slug
|
|
6323
|
+
* @param {string} [languageCode]
|
|
6324
|
+
* @param {boolean} [returnDefaultValue]
|
|
5654
6325
|
* @param {*} [options] Override http request option.
|
|
5655
6326
|
* @throws {RequiredError}
|
|
5656
6327
|
* @memberof DealsApi
|
|
5657
6328
|
*/
|
|
5658
|
-
DealsApi.prototype.apiV2DealsSlugGet = function (slug, options) {
|
|
6329
|
+
DealsApi.prototype.apiV2DealsSlugGet = function (slug, languageCode, returnDefaultValue, options) {
|
|
5659
6330
|
var _this = this;
|
|
5660
|
-
return exports.DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
6331
|
+
return exports.DealsApiFp(this.configuration).apiV2DealsSlugGet(slug, languageCode, returnDefaultValue, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
5661
6332
|
};
|
|
5662
6333
|
return DealsApi;
|
|
5663
6334
|
}(base_1.BaseAPI));
|
|
@@ -13227,14 +13898,13 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
13227
13898
|
* @param {string} [id]
|
|
13228
13899
|
* @param {string} [name]
|
|
13229
13900
|
* @param {string} [description]
|
|
13230
|
-
* @param {string} [languageCode]
|
|
13231
13901
|
* @param {number} [page]
|
|
13232
13902
|
* @param {number} [limit]
|
|
13233
13903
|
* @param {Date} [lastRetrieved]
|
|
13234
13904
|
* @param {*} [options] Override http request option.
|
|
13235
13905
|
* @throws {RequiredError}
|
|
13236
13906
|
*/
|
|
13237
|
-
apiV2ServicescategoriesGet: function (id, name, description,
|
|
13907
|
+
apiV2ServicescategoriesGet: function (id, name, description, page, limit, lastRetrieved, options) {
|
|
13238
13908
|
if (options === void 0) { options = {}; }
|
|
13239
13909
|
return __awaiter(_this, void 0, void 0, function () {
|
|
13240
13910
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -13256,9 +13926,6 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
13256
13926
|
if (description !== undefined) {
|
|
13257
13927
|
localVarQueryParameter['Description'] = description;
|
|
13258
13928
|
}
|
|
13259
|
-
if (languageCode !== undefined) {
|
|
13260
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
13261
|
-
}
|
|
13262
13929
|
if (page !== undefined) {
|
|
13263
13930
|
localVarQueryParameter['page'] = page;
|
|
13264
13931
|
}
|
|
@@ -13284,11 +13951,10 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
13284
13951
|
*
|
|
13285
13952
|
* @summary Get ServiceCategory.
|
|
13286
13953
|
* @param {string} serviceCategoryId
|
|
13287
|
-
* @param {string} [languageCode]
|
|
13288
13954
|
* @param {*} [options] Override http request option.
|
|
13289
13955
|
* @throws {RequiredError}
|
|
13290
13956
|
*/
|
|
13291
|
-
apiV2ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId,
|
|
13957
|
+
apiV2ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId, options) {
|
|
13292
13958
|
if (options === void 0) { options = {}; }
|
|
13293
13959
|
return __awaiter(_this, void 0, void 0, function () {
|
|
13294
13960
|
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
@@ -13304,9 +13970,6 @@ exports.ServicesCategoriesApiAxiosParamCreator = function (configuration) {
|
|
|
13304
13970
|
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
13305
13971
|
localVarHeaderParameter = {};
|
|
13306
13972
|
localVarQueryParameter = {};
|
|
13307
|
-
if (languageCode !== undefined) {
|
|
13308
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
13309
|
-
}
|
|
13310
13973
|
common_1.setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13311
13974
|
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13312
13975
|
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -13332,19 +13995,18 @@ exports.ServicesCategoriesApiFp = function (configuration) {
|
|
|
13332
13995
|
* @param {string} [id]
|
|
13333
13996
|
* @param {string} [name]
|
|
13334
13997
|
* @param {string} [description]
|
|
13335
|
-
* @param {string} [languageCode]
|
|
13336
13998
|
* @param {number} [page]
|
|
13337
13999
|
* @param {number} [limit]
|
|
13338
14000
|
* @param {Date} [lastRetrieved]
|
|
13339
14001
|
* @param {*} [options] Override http request option.
|
|
13340
14002
|
* @throws {RequiredError}
|
|
13341
14003
|
*/
|
|
13342
|
-
apiV2ServicescategoriesGet: function (id, name, description,
|
|
14004
|
+
apiV2ServicescategoriesGet: function (id, name, description, page, limit, lastRetrieved, options) {
|
|
13343
14005
|
return __awaiter(this, void 0, void 0, function () {
|
|
13344
14006
|
var localVarAxiosArgs;
|
|
13345
14007
|
return __generator(this, function (_a) {
|
|
13346
14008
|
switch (_a.label) {
|
|
13347
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description,
|
|
14009
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options)];
|
|
13348
14010
|
case 1:
|
|
13349
14011
|
localVarAxiosArgs = _a.sent();
|
|
13350
14012
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -13356,16 +14018,15 @@ exports.ServicesCategoriesApiFp = function (configuration) {
|
|
|
13356
14018
|
*
|
|
13357
14019
|
* @summary Get ServiceCategory.
|
|
13358
14020
|
* @param {string} serviceCategoryId
|
|
13359
|
-
* @param {string} [languageCode]
|
|
13360
14021
|
* @param {*} [options] Override http request option.
|
|
13361
14022
|
* @throws {RequiredError}
|
|
13362
14023
|
*/
|
|
13363
|
-
apiV2ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId,
|
|
14024
|
+
apiV2ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId, options) {
|
|
13364
14025
|
return __awaiter(this, void 0, void 0, function () {
|
|
13365
14026
|
var localVarAxiosArgs;
|
|
13366
14027
|
return __generator(this, function (_a) {
|
|
13367
14028
|
switch (_a.label) {
|
|
13368
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
14029
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options)];
|
|
13369
14030
|
case 1:
|
|
13370
14031
|
localVarAxiosArgs = _a.sent();
|
|
13371
14032
|
return [2 /*return*/, common_1.createRequestFunction(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
@@ -13388,26 +14049,24 @@ exports.ServicesCategoriesApiFactory = function (configuration, basePath, axios)
|
|
|
13388
14049
|
* @param {string} [id]
|
|
13389
14050
|
* @param {string} [name]
|
|
13390
14051
|
* @param {string} [description]
|
|
13391
|
-
* @param {string} [languageCode]
|
|
13392
14052
|
* @param {number} [page]
|
|
13393
14053
|
* @param {number} [limit]
|
|
13394
14054
|
* @param {Date} [lastRetrieved]
|
|
13395
14055
|
* @param {*} [options] Override http request option.
|
|
13396
14056
|
* @throws {RequiredError}
|
|
13397
14057
|
*/
|
|
13398
|
-
apiV2ServicescategoriesGet: function (id, name, description,
|
|
13399
|
-
return localVarFp.apiV2ServicescategoriesGet(id, name, description,
|
|
14058
|
+
apiV2ServicescategoriesGet: function (id, name, description, page, limit, lastRetrieved, options) {
|
|
14059
|
+
return localVarFp.apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
13400
14060
|
},
|
|
13401
14061
|
/**
|
|
13402
14062
|
*
|
|
13403
14063
|
* @summary Get ServiceCategory.
|
|
13404
14064
|
* @param {string} serviceCategoryId
|
|
13405
|
-
* @param {string} [languageCode]
|
|
13406
14065
|
* @param {*} [options] Override http request option.
|
|
13407
14066
|
* @throws {RequiredError}
|
|
13408
14067
|
*/
|
|
13409
|
-
apiV2ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId,
|
|
13410
|
-
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
14068
|
+
apiV2ServicescategoriesServiceCategoryIdGet: function (serviceCategoryId, options) {
|
|
14069
|
+
return localVarFp.apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then(function (request) { return request(axios, basePath); });
|
|
13411
14070
|
},
|
|
13412
14071
|
};
|
|
13413
14072
|
};
|
|
@@ -13428,7 +14087,6 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
|
|
|
13428
14087
|
* @param {string} [id]
|
|
13429
14088
|
* @param {string} [name]
|
|
13430
14089
|
* @param {string} [description]
|
|
13431
|
-
* @param {string} [languageCode]
|
|
13432
14090
|
* @param {number} [page]
|
|
13433
14091
|
* @param {number} [limit]
|
|
13434
14092
|
* @param {Date} [lastRetrieved]
|
|
@@ -13436,22 +14094,21 @@ var ServicesCategoriesApi = /** @class */ (function (_super) {
|
|
|
13436
14094
|
* @throws {RequiredError}
|
|
13437
14095
|
* @memberof ServicesCategoriesApi
|
|
13438
14096
|
*/
|
|
13439
|
-
ServicesCategoriesApi.prototype.apiV2ServicescategoriesGet = function (id, name, description,
|
|
14097
|
+
ServicesCategoriesApi.prototype.apiV2ServicescategoriesGet = function (id, name, description, page, limit, lastRetrieved, options) {
|
|
13440
14098
|
var _this = this;
|
|
13441
|
-
return exports.ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description,
|
|
14099
|
+
return exports.ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesGet(id, name, description, page, limit, lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13442
14100
|
};
|
|
13443
14101
|
/**
|
|
13444
14102
|
*
|
|
13445
14103
|
* @summary Get ServiceCategory.
|
|
13446
14104
|
* @param {string} serviceCategoryId
|
|
13447
|
-
* @param {string} [languageCode]
|
|
13448
14105
|
* @param {*} [options] Override http request option.
|
|
13449
14106
|
* @throws {RequiredError}
|
|
13450
14107
|
* @memberof ServicesCategoriesApi
|
|
13451
14108
|
*/
|
|
13452
|
-
ServicesCategoriesApi.prototype.apiV2ServicescategoriesServiceCategoryIdGet = function (serviceCategoryId,
|
|
14109
|
+
ServicesCategoriesApi.prototype.apiV2ServicescategoriesServiceCategoryIdGet = function (serviceCategoryId, options) {
|
|
13453
14110
|
var _this = this;
|
|
13454
|
-
return exports.ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId,
|
|
14111
|
+
return exports.ServicesCategoriesApiFp(this.configuration).apiV2ServicescategoriesServiceCategoryIdGet(serviceCategoryId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
13455
14112
|
};
|
|
13456
14113
|
return ServicesCategoriesApi;
|
|
13457
14114
|
}(base_1.BaseAPI));
|