ch-admin-api-client-typescript 5.15.0 → 5.16.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/api/dash-board-api.d.ts +16 -81
- package/lib/api/dash-board-api.d.ts.map +1 -1
- package/lib/api/dash-board-api.js +14 -113
- package/lib/api.d.ts +0 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +0 -4
- package/lib/models/{booking-duration-statistics-model.d.ts → appointment-duration-statisctics-model.d.ts} +5 -5
- package/lib/models/appointment-duration-statisctics-model.d.ts.map +1 -0
- package/lib/models/{booking-statistics-model.d.ts → appointment-statistics-model.d.ts} +10 -10
- package/lib/models/appointment-statistics-model.d.ts.map +1 -0
- package/lib/models/dash-board-model.d.ts +9 -16
- package/lib/models/dash-board-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +2 -34
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -34
- package/lib/models/update-doctor-affiliation-command.d.ts +0 -12
- package/lib/models/update-doctor-affiliation-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +2 -38
- package/src/api/dash-board-api.ts +21 -139
- package/src/api.ts +0 -4
- package/src/models/{booking-duration-statistics-model.ts → appointment-duration-statisctics-model.ts} +4 -4
- package/src/models/{booking-statistics-model.ts → appointment-statistics-model.ts} +9 -9
- package/src/models/dash-board-model.ts +9 -18
- package/src/models/index.ts +2 -34
- package/src/models/update-doctor-affiliation-command.ts +0 -12
- package/lib/api/bookings-api.d.ts +0 -558
- package/lib/api/bookings-api.d.ts.map +0 -1
- package/lib/api/bookings-api.js +0 -853
- package/lib/api/consultations-api.d.ts +0 -586
- package/lib/api/consultations-api.d.ts.map +0 -1
- package/lib/api/consultations-api.js +0 -871
- package/lib/api/hospitals-consultation-timetable-overrides-api.d.ts +0 -321
- package/lib/api/hospitals-consultation-timetable-overrides-api.d.ts.map +0 -1
- package/lib/api/hospitals-consultation-timetable-overrides-api.js +0 -535
- package/lib/api/hospitals-consultation-timetables-api.d.ts +0 -414
- package/lib/api/hospitals-consultation-timetables-api.d.ts.map +0 -1
- package/lib/api/hospitals-consultation-timetables-api.js +0 -700
- package/lib/models/approve-booking-command.d.ts +0 -31
- package/lib/models/approve-booking-command.d.ts.map +0 -1
- package/lib/models/approve-consultation-command.d.ts +0 -31
- package/lib/models/approve-consultation-command.d.ts.map +0 -1
- package/lib/models/batch-add-hospital-consultation-timetable-model.d.ts +0 -38
- package/lib/models/batch-add-hospital-consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/batch-add-hospital-consultation-timetable-model.js +0 -15
- package/lib/models/batch-hospital-consultation-timetable-result-model.d.ts +0 -38
- package/lib/models/batch-hospital-consultation-timetable-result-model.d.ts.map +0 -1
- package/lib/models/batch-hospital-consultation-timetable-result-model.js +0 -15
- package/lib/models/batch-hospital-consultation-timetables-command.d.ts +0 -39
- package/lib/models/batch-hospital-consultation-timetables-command.d.ts.map +0 -1
- package/lib/models/batch-hospital-consultation-timetables-command.js +0 -15
- package/lib/models/batch-update-hospital-consultation-timetable-model.d.ts +0 -44
- package/lib/models/batch-update-hospital-consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/batch-update-hospital-consultation-timetable-model.js +0 -15
- package/lib/models/booking-change-log-model.d.ts +0 -44
- package/lib/models/booking-change-log-model.d.ts.map +0 -1
- package/lib/models/booking-change-log-model.js +0 -15
- package/lib/models/booking-duration-statistics-model.d.ts.map +0 -1
- package/lib/models/booking-duration-statistics-model.js +0 -15
- package/lib/models/booking-item-model.d.ts +0 -245
- package/lib/models/booking-item-model.d.ts.map +0 -1
- package/lib/models/booking-item-model.js +0 -15
- package/lib/models/booking-model.d.ts +0 -252
- package/lib/models/booking-model.d.ts.map +0 -1
- package/lib/models/booking-model.js +0 -15
- package/lib/models/booking-statistics-model.d.ts.map +0 -1
- package/lib/models/booking-statistics-model.js +0 -15
- package/lib/models/booking-status.d.ts +0 -27
- package/lib/models/booking-status.d.ts.map +0 -1
- package/lib/models/booking-status.js +0 -30
- package/lib/models/bookings-model.d.ts +0 -33
- package/lib/models/bookings-model.d.ts.map +0 -1
- package/lib/models/bookings-model.js +0 -15
- package/lib/models/consultation-change-log-model.d.ts +0 -44
- package/lib/models/consultation-change-log-model.d.ts.map +0 -1
- package/lib/models/consultation-change-log-model.js +0 -15
- package/lib/models/consultation-duration-statisctics-model.d.ts +0 -31
- package/lib/models/consultation-duration-statisctics-model.d.ts.map +0 -1
- package/lib/models/consultation-duration-statisctics-model.js +0 -15
- package/lib/models/consultation-item-model.d.ts +0 -275
- package/lib/models/consultation-item-model.d.ts.map +0 -1
- package/lib/models/consultation-item-model.js +0 -15
- package/lib/models/consultation-model.d.ts +0 -282
- package/lib/models/consultation-model.d.ts.map +0 -1
- package/lib/models/consultation-model.js +0 -15
- package/lib/models/consultation-statistics-model.d.ts +0 -44
- package/lib/models/consultation-statistics-model.d.ts.map +0 -1
- package/lib/models/consultation-statistics-model.js +0 -15
- package/lib/models/consultation-status.d.ts +0 -27
- package/lib/models/consultation-status.d.ts.map +0 -1
- package/lib/models/consultation-status.js +0 -30
- package/lib/models/consultation-type.d.ts +0 -23
- package/lib/models/consultation-type.d.ts.map +0 -1
- package/lib/models/consultation-type.js +0 -26
- package/lib/models/consultations-model.d.ts +0 -33
- package/lib/models/consultations-model.d.ts.map +0 -1
- package/lib/models/consultations-model.js +0 -15
- package/lib/models/create-hospital-consultation-timetable-command.d.ts +0 -38
- package/lib/models/create-hospital-consultation-timetable-command.d.ts.map +0 -1
- package/lib/models/create-hospital-consultation-timetable-command.js +0 -15
- package/lib/models/delete-hospital-consultation-timetable-override-command.d.ts +0 -44
- package/lib/models/delete-hospital-consultation-timetable-override-command.d.ts.map +0 -1
- package/lib/models/delete-hospital-consultation-timetable-override-command.js +0 -15
- package/lib/models/hospital-consultation-timetable-item-model.d.ts +0 -44
- package/lib/models/hospital-consultation-timetable-item-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-item-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-model.d.ts +0 -44
- package/lib/models/hospital-consultation-timetable-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-override-item-model.d.ts +0 -56
- package/lib/models/hospital-consultation-timetable-override-item-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-override-item-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-override-model.d.ts +0 -56
- package/lib/models/hospital-consultation-timetable-override-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-override-model.js +0 -15
- package/lib/models/hospital-consultation-timetable-overrides-model.d.ts +0 -33
- package/lib/models/hospital-consultation-timetable-overrides-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetable-overrides-model.js +0 -15
- package/lib/models/hospital-consultation-timetables-model.d.ts +0 -33
- package/lib/models/hospital-consultation-timetables-model.d.ts.map +0 -1
- package/lib/models/hospital-consultation-timetables-model.js +0 -15
- package/lib/models/reject-booking-command.d.ts +0 -32
- package/lib/models/reject-booking-command.d.ts.map +0 -1
- package/lib/models/reject-booking-command.js +0 -15
- package/lib/models/reject-consultation-command.d.ts +0 -32
- package/lib/models/reject-consultation-command.d.ts.map +0 -1
- package/lib/models/reject-consultation-command.js +0 -15
- package/lib/models/save-hospital-consultation-timetable-override-model.d.ts +0 -43
- package/lib/models/save-hospital-consultation-timetable-override-model.d.ts.map +0 -1
- package/lib/models/save-hospital-consultation-timetable-override-model.js +0 -15
- package/lib/models/save-hospital-consultation-timetable-overrides-command.d.ts +0 -26
- package/lib/models/save-hospital-consultation-timetable-overrides-command.d.ts.map +0 -1
- package/lib/models/save-hospital-consultation-timetable-overrides-command.js +0 -15
- package/lib/models/update-hospital-consultation-timetable-command.d.ts +0 -38
- package/lib/models/update-hospital-consultation-timetable-command.d.ts.map +0 -1
- package/lib/models/update-hospital-consultation-timetable-command.js +0 -15
- package/src/api/bookings-api.ts +0 -962
- package/src/api/consultations-api.ts +0 -1006
- package/src/api/hospitals-consultation-timetable-overrides-api.ts +0 -553
- package/src/api/hospitals-consultation-timetables-api.ts +0 -718
- package/src/models/approve-booking-command.ts +0 -36
- package/src/models/approve-consultation-command.ts +0 -36
- package/src/models/batch-add-hospital-consultation-timetable-model.ts +0 -45
- package/src/models/batch-hospital-consultation-timetable-result-model.ts +0 -45
- package/src/models/batch-hospital-consultation-timetables-command.ts +0 -48
- package/src/models/batch-update-hospital-consultation-timetable-model.ts +0 -51
- package/src/models/booking-change-log-model.ts +0 -51
- package/src/models/booking-item-model.ts +0 -258
- package/src/models/booking-model.ts +0 -267
- package/src/models/booking-status.ts +0 -36
- package/src/models/bookings-model.ts +0 -42
- package/src/models/consultation-change-log-model.ts +0 -51
- package/src/models/consultation-duration-statisctics-model.ts +0 -36
- package/src/models/consultation-item-model.ts +0 -288
- package/src/models/consultation-model.ts +0 -297
- package/src/models/consultation-statistics-model.ts +0 -51
- package/src/models/consultation-status.ts +0 -36
- package/src/models/consultation-type.ts +0 -32
- package/src/models/consultations-model.ts +0 -42
- package/src/models/create-hospital-consultation-timetable-command.ts +0 -45
- package/src/models/delete-hospital-consultation-timetable-override-command.ts +0 -51
- package/src/models/hospital-consultation-timetable-item-model.ts +0 -51
- package/src/models/hospital-consultation-timetable-model.ts +0 -51
- package/src/models/hospital-consultation-timetable-override-item-model.ts +0 -63
- package/src/models/hospital-consultation-timetable-override-model.ts +0 -63
- package/src/models/hospital-consultation-timetable-overrides-model.ts +0 -42
- package/src/models/hospital-consultation-timetables-model.ts +0 -42
- package/src/models/reject-booking-command.ts +0 -39
- package/src/models/reject-consultation-command.ts +0 -39
- package/src/models/save-hospital-consultation-timetable-override-model.ts +0 -48
- package/src/models/save-hospital-consultation-timetable-overrides-command.ts +0 -33
- package/src/models/update-hospital-consultation-timetable-command.ts +0 -45
- /package/lib/models/{approve-booking-command.js → appointment-duration-statisctics-model.js} +0 -0
- /package/lib/models/{approve-consultation-command.js → appointment-statistics-model.js} +0 -0
|
@@ -1,871 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
6
|
-
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 1
|
|
9
|
-
* Contact: hyounoosung@icloudhospital.com
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
12
|
-
* https://openapi-generator.tech
|
|
13
|
-
* Do not edit the class manually.
|
|
14
|
-
*/
|
|
15
|
-
var __extends = (this && this.__extends) || (function () {
|
|
16
|
-
var extendStatics = function (d, b) {
|
|
17
|
-
extendStatics = Object.setPrototypeOf ||
|
|
18
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
19
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
20
|
-
return extendStatics(d, b);
|
|
21
|
-
};
|
|
22
|
-
return function (d, b) {
|
|
23
|
-
if (typeof b !== "function" && b !== null)
|
|
24
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
25
|
-
extendStatics(d, b);
|
|
26
|
-
function __() { this.constructor = d; }
|
|
27
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
28
|
-
};
|
|
29
|
-
})();
|
|
30
|
-
var __assign = (this && this.__assign) || function () {
|
|
31
|
-
__assign = Object.assign || function(t) {
|
|
32
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
33
|
-
s = arguments[i];
|
|
34
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
35
|
-
t[p] = s[p];
|
|
36
|
-
}
|
|
37
|
-
return t;
|
|
38
|
-
};
|
|
39
|
-
return __assign.apply(this, arguments);
|
|
40
|
-
};
|
|
41
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
42
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
43
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
44
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
45
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
46
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
47
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
48
|
-
});
|
|
49
|
-
};
|
|
50
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
51
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
52
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
53
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
54
|
-
function step(op) {
|
|
55
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
56
|
-
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
57
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
58
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
59
|
-
switch (op[0]) {
|
|
60
|
-
case 0: case 1: t = op; break;
|
|
61
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
62
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
63
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
64
|
-
default:
|
|
65
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
66
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
67
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
68
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
69
|
-
if (t[2]) _.ops.pop();
|
|
70
|
-
_.trys.pop(); continue;
|
|
71
|
-
}
|
|
72
|
-
op = body.call(thisArg, _);
|
|
73
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
74
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
78
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
79
|
-
};
|
|
80
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
81
|
-
exports.ConsultationsApi = exports.ConsultationsApiFactory = exports.ConsultationsApiFp = exports.ConsultationsApiAxiosParamCreator = void 0;
|
|
82
|
-
var axios_1 = __importDefault(require("axios"));
|
|
83
|
-
// Some imports not used depending on template conditions
|
|
84
|
-
// @ts-ignore
|
|
85
|
-
var common_1 = require("../common");
|
|
86
|
-
// @ts-ignore
|
|
87
|
-
var base_1 = require("../base");
|
|
88
|
-
/**
|
|
89
|
-
* ConsultationsApi - axios parameter creator
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
var ConsultationsApiAxiosParamCreator = function (configuration) {
|
|
93
|
-
var _this = this;
|
|
94
|
-
return {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @summary Approve consultation.
|
|
98
|
-
* @param {string} consultationId
|
|
99
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
100
|
-
* @param {*} [options] Override http request option.
|
|
101
|
-
* @throws {RequiredError}
|
|
102
|
-
*/
|
|
103
|
-
apiV1ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
104
|
-
if (options === void 0) { options = {}; }
|
|
105
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
106
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
107
|
-
return __generator(this, function (_a) {
|
|
108
|
-
switch (_a.label) {
|
|
109
|
-
case 0:
|
|
110
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
111
|
-
(0, common_1.assertParamExists)('apiV1ConsultationsConsultationIdApprovePut', 'consultationId', consultationId);
|
|
112
|
-
localVarPath = "/api/v1/consultations/{consultationId}/approve"
|
|
113
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
114
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
115
|
-
if (configuration) {
|
|
116
|
-
baseOptions = configuration.baseOptions;
|
|
117
|
-
}
|
|
118
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
119
|
-
localVarHeaderParameter = {};
|
|
120
|
-
localVarQueryParameter = {};
|
|
121
|
-
// authentication oauth2 required
|
|
122
|
-
// oauth required
|
|
123
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
124
|
-
case 1:
|
|
125
|
-
// authentication oauth2 required
|
|
126
|
-
// oauth required
|
|
127
|
-
_a.sent();
|
|
128
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
129
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
130
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
131
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
132
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(approveConsultationCommand, localVarRequestOptions, configuration);
|
|
133
|
-
return [2 /*return*/, {
|
|
134
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
135
|
-
options: localVarRequestOptions,
|
|
136
|
-
}];
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
},
|
|
141
|
-
/**
|
|
142
|
-
*
|
|
143
|
-
* @summary Cancel consultation.
|
|
144
|
-
* @param {string} consultationId
|
|
145
|
-
* @param {*} [options] Override http request option.
|
|
146
|
-
* @throws {RequiredError}
|
|
147
|
-
*/
|
|
148
|
-
apiV1ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
149
|
-
if (options === void 0) { options = {}; }
|
|
150
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
151
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
152
|
-
return __generator(this, function (_a) {
|
|
153
|
-
switch (_a.label) {
|
|
154
|
-
case 0:
|
|
155
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
156
|
-
(0, common_1.assertParamExists)('apiV1ConsultationsConsultationIdCancelPut', 'consultationId', consultationId);
|
|
157
|
-
localVarPath = "/api/v1/consultations/{consultationId}/cancel"
|
|
158
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
159
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
160
|
-
if (configuration) {
|
|
161
|
-
baseOptions = configuration.baseOptions;
|
|
162
|
-
}
|
|
163
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
164
|
-
localVarHeaderParameter = {};
|
|
165
|
-
localVarQueryParameter = {};
|
|
166
|
-
// authentication oauth2 required
|
|
167
|
-
// oauth required
|
|
168
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
169
|
-
case 1:
|
|
170
|
-
// authentication oauth2 required
|
|
171
|
-
// oauth required
|
|
172
|
-
_a.sent();
|
|
173
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
174
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
175
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
176
|
-
return [2 /*return*/, {
|
|
177
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
178
|
-
options: localVarRequestOptions,
|
|
179
|
-
}];
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
});
|
|
183
|
-
},
|
|
184
|
-
/**
|
|
185
|
-
*
|
|
186
|
-
* @summary Delete consultation.
|
|
187
|
-
* @param {string} consultationId
|
|
188
|
-
* @param {*} [options] Override http request option.
|
|
189
|
-
* @throws {RequiredError}
|
|
190
|
-
*/
|
|
191
|
-
apiV1ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
192
|
-
if (options === void 0) { options = {}; }
|
|
193
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
194
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
195
|
-
return __generator(this, function (_a) {
|
|
196
|
-
switch (_a.label) {
|
|
197
|
-
case 0:
|
|
198
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
199
|
-
(0, common_1.assertParamExists)('apiV1ConsultationsConsultationIdDelete', 'consultationId', consultationId);
|
|
200
|
-
localVarPath = "/api/v1/consultations/{consultationId}"
|
|
201
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
202
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
203
|
-
if (configuration) {
|
|
204
|
-
baseOptions = configuration.baseOptions;
|
|
205
|
-
}
|
|
206
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
207
|
-
localVarHeaderParameter = {};
|
|
208
|
-
localVarQueryParameter = {};
|
|
209
|
-
// authentication oauth2 required
|
|
210
|
-
// oauth required
|
|
211
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
212
|
-
case 1:
|
|
213
|
-
// authentication oauth2 required
|
|
214
|
-
// oauth required
|
|
215
|
-
_a.sent();
|
|
216
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
217
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
218
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
219
|
-
return [2 /*return*/, {
|
|
220
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
221
|
-
options: localVarRequestOptions,
|
|
222
|
-
}];
|
|
223
|
-
}
|
|
224
|
-
});
|
|
225
|
-
});
|
|
226
|
-
},
|
|
227
|
-
/**
|
|
228
|
-
*
|
|
229
|
-
* @summary Get consultation.
|
|
230
|
-
* @param {string} consultationId
|
|
231
|
-
* @param {boolean} [isExternal]
|
|
232
|
-
* @param {string} [languageCode]
|
|
233
|
-
* @param {*} [options] Override http request option.
|
|
234
|
-
* @throws {RequiredError}
|
|
235
|
-
*/
|
|
236
|
-
apiV1ConsultationsConsultationIdGet: function (consultationId, isExternal, languageCode, options) {
|
|
237
|
-
if (options === void 0) { options = {}; }
|
|
238
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
239
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
240
|
-
return __generator(this, function (_a) {
|
|
241
|
-
switch (_a.label) {
|
|
242
|
-
case 0:
|
|
243
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
244
|
-
(0, common_1.assertParamExists)('apiV1ConsultationsConsultationIdGet', 'consultationId', consultationId);
|
|
245
|
-
localVarPath = "/api/v1/consultations/{consultationId}"
|
|
246
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
247
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
248
|
-
if (configuration) {
|
|
249
|
-
baseOptions = configuration.baseOptions;
|
|
250
|
-
}
|
|
251
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
252
|
-
localVarHeaderParameter = {};
|
|
253
|
-
localVarQueryParameter = {};
|
|
254
|
-
// authentication oauth2 required
|
|
255
|
-
// oauth required
|
|
256
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
257
|
-
case 1:
|
|
258
|
-
// authentication oauth2 required
|
|
259
|
-
// oauth required
|
|
260
|
-
_a.sent();
|
|
261
|
-
if (isExternal !== undefined) {
|
|
262
|
-
localVarQueryParameter['isExternal'] = isExternal;
|
|
263
|
-
}
|
|
264
|
-
if (languageCode !== undefined) {
|
|
265
|
-
localVarQueryParameter['languageCode'] = languageCode;
|
|
266
|
-
}
|
|
267
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
268
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
269
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
270
|
-
return [2 /*return*/, {
|
|
271
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
272
|
-
options: localVarRequestOptions,
|
|
273
|
-
}];
|
|
274
|
-
}
|
|
275
|
-
});
|
|
276
|
-
});
|
|
277
|
-
},
|
|
278
|
-
/**
|
|
279
|
-
*
|
|
280
|
-
* @summary Mark as Paid booking.
|
|
281
|
-
* @param {string} consultationId
|
|
282
|
-
* @param {*} [options] Override http request option.
|
|
283
|
-
* @throws {RequiredError}
|
|
284
|
-
*/
|
|
285
|
-
apiV1ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
286
|
-
if (options === void 0) { options = {}; }
|
|
287
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
288
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
289
|
-
return __generator(this, function (_a) {
|
|
290
|
-
switch (_a.label) {
|
|
291
|
-
case 0:
|
|
292
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
293
|
-
(0, common_1.assertParamExists)('apiV1ConsultationsConsultationIdPaidPost', 'consultationId', consultationId);
|
|
294
|
-
localVarPath = "/api/v1/consultations/{consultationId}/paid"
|
|
295
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
296
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
297
|
-
if (configuration) {
|
|
298
|
-
baseOptions = configuration.baseOptions;
|
|
299
|
-
}
|
|
300
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
301
|
-
localVarHeaderParameter = {};
|
|
302
|
-
localVarQueryParameter = {};
|
|
303
|
-
// authentication oauth2 required
|
|
304
|
-
// oauth required
|
|
305
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
306
|
-
case 1:
|
|
307
|
-
// authentication oauth2 required
|
|
308
|
-
// oauth required
|
|
309
|
-
_a.sent();
|
|
310
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
311
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
312
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
313
|
-
return [2 /*return*/, {
|
|
314
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
315
|
-
options: localVarRequestOptions,
|
|
316
|
-
}];
|
|
317
|
-
}
|
|
318
|
-
});
|
|
319
|
-
});
|
|
320
|
-
},
|
|
321
|
-
/**
|
|
322
|
-
*
|
|
323
|
-
* @summary Reject consultation.
|
|
324
|
-
* @param {string} consultationId
|
|
325
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
326
|
-
* @param {*} [options] Override http request option.
|
|
327
|
-
* @throws {RequiredError}
|
|
328
|
-
*/
|
|
329
|
-
apiV1ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
|
|
330
|
-
if (options === void 0) { options = {}; }
|
|
331
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
332
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
333
|
-
return __generator(this, function (_a) {
|
|
334
|
-
switch (_a.label) {
|
|
335
|
-
case 0:
|
|
336
|
-
// verify required parameter 'consultationId' is not null or undefined
|
|
337
|
-
(0, common_1.assertParamExists)('apiV1ConsultationsConsultationIdRejectPut', 'consultationId', consultationId);
|
|
338
|
-
localVarPath = "/api/v1/consultations/{consultationId}/reject"
|
|
339
|
-
.replace("{".concat("consultationId", "}"), encodeURIComponent(String(consultationId)));
|
|
340
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
341
|
-
if (configuration) {
|
|
342
|
-
baseOptions = configuration.baseOptions;
|
|
343
|
-
}
|
|
344
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
345
|
-
localVarHeaderParameter = {};
|
|
346
|
-
localVarQueryParameter = {};
|
|
347
|
-
// authentication oauth2 required
|
|
348
|
-
// oauth required
|
|
349
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
350
|
-
case 1:
|
|
351
|
-
// authentication oauth2 required
|
|
352
|
-
// oauth required
|
|
353
|
-
_a.sent();
|
|
354
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
355
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
356
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
357
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
358
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(rejectConsultationCommand, localVarRequestOptions, configuration);
|
|
359
|
-
return [2 /*return*/, {
|
|
360
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
361
|
-
options: localVarRequestOptions,
|
|
362
|
-
}];
|
|
363
|
-
}
|
|
364
|
-
});
|
|
365
|
-
});
|
|
366
|
-
},
|
|
367
|
-
/**
|
|
368
|
-
*
|
|
369
|
-
* @summary Get all consultations.
|
|
370
|
-
* @param {string} [userId]
|
|
371
|
-
* @param {string} [userName]
|
|
372
|
-
* @param {string} [hospitalId]
|
|
373
|
-
* @param {string} [hospitalName]
|
|
374
|
-
* @param {string} [doctorId]
|
|
375
|
-
* @param {string} [doctorName]
|
|
376
|
-
* @param {string} [dealId]
|
|
377
|
-
* @param {string} [dealName]
|
|
378
|
-
* @param {boolean} [isOpen]
|
|
379
|
-
* @param {boolean} [isCompleted]
|
|
380
|
-
* @param {ConsultationStatus} [status]
|
|
381
|
-
* @param {ConsultationType} [consultationType]
|
|
382
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
383
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
384
|
-
* @param {boolean} [isExternal]
|
|
385
|
-
* @param {boolean} [paymentEnabled]
|
|
386
|
-
* @param {string} [languageCode]
|
|
387
|
-
* @param {boolean} [showHidden]
|
|
388
|
-
* @param {number} [page]
|
|
389
|
-
* @param {number} [limit]
|
|
390
|
-
* @param {Date} [lastRetrieved]
|
|
391
|
-
* @param {*} [options] Override http request option.
|
|
392
|
-
* @throws {RequiredError}
|
|
393
|
-
*/
|
|
394
|
-
apiV1ConsultationsGet: function (userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
395
|
-
if (options === void 0) { options = {}; }
|
|
396
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
397
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
398
|
-
return __generator(this, function (_a) {
|
|
399
|
-
switch (_a.label) {
|
|
400
|
-
case 0:
|
|
401
|
-
localVarPath = "/api/v1/consultations";
|
|
402
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
403
|
-
if (configuration) {
|
|
404
|
-
baseOptions = configuration.baseOptions;
|
|
405
|
-
}
|
|
406
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
407
|
-
localVarHeaderParameter = {};
|
|
408
|
-
localVarQueryParameter = {};
|
|
409
|
-
// authentication oauth2 required
|
|
410
|
-
// oauth required
|
|
411
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
412
|
-
case 1:
|
|
413
|
-
// authentication oauth2 required
|
|
414
|
-
// oauth required
|
|
415
|
-
_a.sent();
|
|
416
|
-
if (userId !== undefined) {
|
|
417
|
-
localVarQueryParameter['UserId'] = userId;
|
|
418
|
-
}
|
|
419
|
-
if (userName !== undefined) {
|
|
420
|
-
localVarQueryParameter['UserName'] = userName;
|
|
421
|
-
}
|
|
422
|
-
if (hospitalId !== undefined) {
|
|
423
|
-
localVarQueryParameter['HospitalId'] = hospitalId;
|
|
424
|
-
}
|
|
425
|
-
if (hospitalName !== undefined) {
|
|
426
|
-
localVarQueryParameter['HospitalName'] = hospitalName;
|
|
427
|
-
}
|
|
428
|
-
if (doctorId !== undefined) {
|
|
429
|
-
localVarQueryParameter['DoctorId'] = doctorId;
|
|
430
|
-
}
|
|
431
|
-
if (doctorName !== undefined) {
|
|
432
|
-
localVarQueryParameter['DoctorName'] = doctorName;
|
|
433
|
-
}
|
|
434
|
-
if (dealId !== undefined) {
|
|
435
|
-
localVarQueryParameter['DealId'] = dealId;
|
|
436
|
-
}
|
|
437
|
-
if (dealName !== undefined) {
|
|
438
|
-
localVarQueryParameter['DealName'] = dealName;
|
|
439
|
-
}
|
|
440
|
-
if (isOpen !== undefined) {
|
|
441
|
-
localVarQueryParameter['IsOpen'] = isOpen;
|
|
442
|
-
}
|
|
443
|
-
if (isCompleted !== undefined) {
|
|
444
|
-
localVarQueryParameter['IsCompleted'] = isCompleted;
|
|
445
|
-
}
|
|
446
|
-
if (status !== undefined) {
|
|
447
|
-
localVarQueryParameter['Status'] = status;
|
|
448
|
-
}
|
|
449
|
-
if (consultationType !== undefined) {
|
|
450
|
-
localVarQueryParameter['ConsultationType'] = consultationType;
|
|
451
|
-
}
|
|
452
|
-
if (sortRequestDate !== undefined) {
|
|
453
|
-
localVarQueryParameter['SortRequestDate'] = sortRequestDate;
|
|
454
|
-
}
|
|
455
|
-
if (sortConfirmedDateStart !== undefined) {
|
|
456
|
-
localVarQueryParameter['SortConfirmedDateStart'] = sortConfirmedDateStart;
|
|
457
|
-
}
|
|
458
|
-
if (isExternal !== undefined) {
|
|
459
|
-
localVarQueryParameter['IsExternal'] = isExternal;
|
|
460
|
-
}
|
|
461
|
-
if (paymentEnabled !== undefined) {
|
|
462
|
-
localVarQueryParameter['PaymentEnabled'] = paymentEnabled;
|
|
463
|
-
}
|
|
464
|
-
if (languageCode !== undefined) {
|
|
465
|
-
localVarQueryParameter['LanguageCode'] = languageCode;
|
|
466
|
-
}
|
|
467
|
-
if (showHidden !== undefined) {
|
|
468
|
-
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
469
|
-
}
|
|
470
|
-
if (page !== undefined) {
|
|
471
|
-
localVarQueryParameter['page'] = page;
|
|
472
|
-
}
|
|
473
|
-
if (limit !== undefined) {
|
|
474
|
-
localVarQueryParameter['limit'] = limit;
|
|
475
|
-
}
|
|
476
|
-
if (lastRetrieved !== undefined) {
|
|
477
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
478
|
-
lastRetrieved.toISOString() :
|
|
479
|
-
lastRetrieved;
|
|
480
|
-
}
|
|
481
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
482
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
483
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
484
|
-
return [2 /*return*/, {
|
|
485
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
486
|
-
options: localVarRequestOptions,
|
|
487
|
-
}];
|
|
488
|
-
}
|
|
489
|
-
});
|
|
490
|
-
});
|
|
491
|
-
},
|
|
492
|
-
};
|
|
493
|
-
};
|
|
494
|
-
exports.ConsultationsApiAxiosParamCreator = ConsultationsApiAxiosParamCreator;
|
|
495
|
-
/**
|
|
496
|
-
* ConsultationsApi - functional programming interface
|
|
497
|
-
* @export
|
|
498
|
-
*/
|
|
499
|
-
var ConsultationsApiFp = function (configuration) {
|
|
500
|
-
var localVarAxiosParamCreator = (0, exports.ConsultationsApiAxiosParamCreator)(configuration);
|
|
501
|
-
return {
|
|
502
|
-
/**
|
|
503
|
-
*
|
|
504
|
-
* @summary Approve consultation.
|
|
505
|
-
* @param {string} consultationId
|
|
506
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
507
|
-
* @param {*} [options] Override http request option.
|
|
508
|
-
* @throws {RequiredError}
|
|
509
|
-
*/
|
|
510
|
-
apiV1ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
511
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
512
|
-
var localVarAxiosArgs;
|
|
513
|
-
return __generator(this, function (_a) {
|
|
514
|
-
switch (_a.label) {
|
|
515
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options)];
|
|
516
|
-
case 1:
|
|
517
|
-
localVarAxiosArgs = _a.sent();
|
|
518
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
519
|
-
}
|
|
520
|
-
});
|
|
521
|
-
});
|
|
522
|
-
},
|
|
523
|
-
/**
|
|
524
|
-
*
|
|
525
|
-
* @summary Cancel consultation.
|
|
526
|
-
* @param {string} consultationId
|
|
527
|
-
* @param {*} [options] Override http request option.
|
|
528
|
-
* @throws {RequiredError}
|
|
529
|
-
*/
|
|
530
|
-
apiV1ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
531
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
532
|
-
var localVarAxiosArgs;
|
|
533
|
-
return __generator(this, function (_a) {
|
|
534
|
-
switch (_a.label) {
|
|
535
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdCancelPut(consultationId, options)];
|
|
536
|
-
case 1:
|
|
537
|
-
localVarAxiosArgs = _a.sent();
|
|
538
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
539
|
-
}
|
|
540
|
-
});
|
|
541
|
-
});
|
|
542
|
-
},
|
|
543
|
-
/**
|
|
544
|
-
*
|
|
545
|
-
* @summary Delete consultation.
|
|
546
|
-
* @param {string} consultationId
|
|
547
|
-
* @param {*} [options] Override http request option.
|
|
548
|
-
* @throws {RequiredError}
|
|
549
|
-
*/
|
|
550
|
-
apiV1ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
551
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
552
|
-
var localVarAxiosArgs;
|
|
553
|
-
return __generator(this, function (_a) {
|
|
554
|
-
switch (_a.label) {
|
|
555
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdDelete(consultationId, options)];
|
|
556
|
-
case 1:
|
|
557
|
-
localVarAxiosArgs = _a.sent();
|
|
558
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
});
|
|
562
|
-
},
|
|
563
|
-
/**
|
|
564
|
-
*
|
|
565
|
-
* @summary Get consultation.
|
|
566
|
-
* @param {string} consultationId
|
|
567
|
-
* @param {boolean} [isExternal]
|
|
568
|
-
* @param {string} [languageCode]
|
|
569
|
-
* @param {*} [options] Override http request option.
|
|
570
|
-
* @throws {RequiredError}
|
|
571
|
-
*/
|
|
572
|
-
apiV1ConsultationsConsultationIdGet: function (consultationId, isExternal, languageCode, options) {
|
|
573
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
574
|
-
var localVarAxiosArgs;
|
|
575
|
-
return __generator(this, function (_a) {
|
|
576
|
-
switch (_a.label) {
|
|
577
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdGet(consultationId, isExternal, languageCode, options)];
|
|
578
|
-
case 1:
|
|
579
|
-
localVarAxiosArgs = _a.sent();
|
|
580
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
581
|
-
}
|
|
582
|
-
});
|
|
583
|
-
});
|
|
584
|
-
},
|
|
585
|
-
/**
|
|
586
|
-
*
|
|
587
|
-
* @summary Mark as Paid booking.
|
|
588
|
-
* @param {string} consultationId
|
|
589
|
-
* @param {*} [options] Override http request option.
|
|
590
|
-
* @throws {RequiredError}
|
|
591
|
-
*/
|
|
592
|
-
apiV1ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
593
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
594
|
-
var localVarAxiosArgs;
|
|
595
|
-
return __generator(this, function (_a) {
|
|
596
|
-
switch (_a.label) {
|
|
597
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdPaidPost(consultationId, options)];
|
|
598
|
-
case 1:
|
|
599
|
-
localVarAxiosArgs = _a.sent();
|
|
600
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
});
|
|
604
|
-
},
|
|
605
|
-
/**
|
|
606
|
-
*
|
|
607
|
-
* @summary Reject consultation.
|
|
608
|
-
* @param {string} consultationId
|
|
609
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
610
|
-
* @param {*} [options] Override http request option.
|
|
611
|
-
* @throws {RequiredError}
|
|
612
|
-
*/
|
|
613
|
-
apiV1ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
|
|
614
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
615
|
-
var localVarAxiosArgs;
|
|
616
|
-
return __generator(this, function (_a) {
|
|
617
|
-
switch (_a.label) {
|
|
618
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options)];
|
|
619
|
-
case 1:
|
|
620
|
-
localVarAxiosArgs = _a.sent();
|
|
621
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
622
|
-
}
|
|
623
|
-
});
|
|
624
|
-
});
|
|
625
|
-
},
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @summary Get all consultations.
|
|
629
|
-
* @param {string} [userId]
|
|
630
|
-
* @param {string} [userName]
|
|
631
|
-
* @param {string} [hospitalId]
|
|
632
|
-
* @param {string} [hospitalName]
|
|
633
|
-
* @param {string} [doctorId]
|
|
634
|
-
* @param {string} [doctorName]
|
|
635
|
-
* @param {string} [dealId]
|
|
636
|
-
* @param {string} [dealName]
|
|
637
|
-
* @param {boolean} [isOpen]
|
|
638
|
-
* @param {boolean} [isCompleted]
|
|
639
|
-
* @param {ConsultationStatus} [status]
|
|
640
|
-
* @param {ConsultationType} [consultationType]
|
|
641
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
642
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
643
|
-
* @param {boolean} [isExternal]
|
|
644
|
-
* @param {boolean} [paymentEnabled]
|
|
645
|
-
* @param {string} [languageCode]
|
|
646
|
-
* @param {boolean} [showHidden]
|
|
647
|
-
* @param {number} [page]
|
|
648
|
-
* @param {number} [limit]
|
|
649
|
-
* @param {Date} [lastRetrieved]
|
|
650
|
-
* @param {*} [options] Override http request option.
|
|
651
|
-
* @throws {RequiredError}
|
|
652
|
-
*/
|
|
653
|
-
apiV1ConsultationsGet: function (userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
654
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
655
|
-
var localVarAxiosArgs;
|
|
656
|
-
return __generator(this, function (_a) {
|
|
657
|
-
switch (_a.label) {
|
|
658
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1ConsultationsGet(userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options)];
|
|
659
|
-
case 1:
|
|
660
|
-
localVarAxiosArgs = _a.sent();
|
|
661
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
662
|
-
}
|
|
663
|
-
});
|
|
664
|
-
});
|
|
665
|
-
},
|
|
666
|
-
};
|
|
667
|
-
};
|
|
668
|
-
exports.ConsultationsApiFp = ConsultationsApiFp;
|
|
669
|
-
/**
|
|
670
|
-
* ConsultationsApi - factory interface
|
|
671
|
-
* @export
|
|
672
|
-
*/
|
|
673
|
-
var ConsultationsApiFactory = function (configuration, basePath, axios) {
|
|
674
|
-
var localVarFp = (0, exports.ConsultationsApiFp)(configuration);
|
|
675
|
-
return {
|
|
676
|
-
/**
|
|
677
|
-
*
|
|
678
|
-
* @summary Approve consultation.
|
|
679
|
-
* @param {string} consultationId
|
|
680
|
-
* @param {ApproveConsultationCommand} [approveConsultationCommand]
|
|
681
|
-
* @param {*} [options] Override http request option.
|
|
682
|
-
* @throws {RequiredError}
|
|
683
|
-
*/
|
|
684
|
-
apiV1ConsultationsConsultationIdApprovePut: function (consultationId, approveConsultationCommand, options) {
|
|
685
|
-
return localVarFp.apiV1ConsultationsConsultationIdApprovePut(consultationId, approveConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
686
|
-
},
|
|
687
|
-
/**
|
|
688
|
-
*
|
|
689
|
-
* @summary Cancel consultation.
|
|
690
|
-
* @param {string} consultationId
|
|
691
|
-
* @param {*} [options] Override http request option.
|
|
692
|
-
* @throws {RequiredError}
|
|
693
|
-
*/
|
|
694
|
-
apiV1ConsultationsConsultationIdCancelPut: function (consultationId, options) {
|
|
695
|
-
return localVarFp.apiV1ConsultationsConsultationIdCancelPut(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
696
|
-
},
|
|
697
|
-
/**
|
|
698
|
-
*
|
|
699
|
-
* @summary Delete consultation.
|
|
700
|
-
* @param {string} consultationId
|
|
701
|
-
* @param {*} [options] Override http request option.
|
|
702
|
-
* @throws {RequiredError}
|
|
703
|
-
*/
|
|
704
|
-
apiV1ConsultationsConsultationIdDelete: function (consultationId, options) {
|
|
705
|
-
return localVarFp.apiV1ConsultationsConsultationIdDelete(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
706
|
-
},
|
|
707
|
-
/**
|
|
708
|
-
*
|
|
709
|
-
* @summary Get consultation.
|
|
710
|
-
* @param {string} consultationId
|
|
711
|
-
* @param {boolean} [isExternal]
|
|
712
|
-
* @param {string} [languageCode]
|
|
713
|
-
* @param {*} [options] Override http request option.
|
|
714
|
-
* @throws {RequiredError}
|
|
715
|
-
*/
|
|
716
|
-
apiV1ConsultationsConsultationIdGet: function (consultationId, isExternal, languageCode, options) {
|
|
717
|
-
return localVarFp.apiV1ConsultationsConsultationIdGet(consultationId, isExternal, languageCode, options).then(function (request) { return request(axios, basePath); });
|
|
718
|
-
},
|
|
719
|
-
/**
|
|
720
|
-
*
|
|
721
|
-
* @summary Mark as Paid booking.
|
|
722
|
-
* @param {string} consultationId
|
|
723
|
-
* @param {*} [options] Override http request option.
|
|
724
|
-
* @throws {RequiredError}
|
|
725
|
-
*/
|
|
726
|
-
apiV1ConsultationsConsultationIdPaidPost: function (consultationId, options) {
|
|
727
|
-
return localVarFp.apiV1ConsultationsConsultationIdPaidPost(consultationId, options).then(function (request) { return request(axios, basePath); });
|
|
728
|
-
},
|
|
729
|
-
/**
|
|
730
|
-
*
|
|
731
|
-
* @summary Reject consultation.
|
|
732
|
-
* @param {string} consultationId
|
|
733
|
-
* @param {RejectConsultationCommand} [rejectConsultationCommand]
|
|
734
|
-
* @param {*} [options] Override http request option.
|
|
735
|
-
* @throws {RequiredError}
|
|
736
|
-
*/
|
|
737
|
-
apiV1ConsultationsConsultationIdRejectPut: function (consultationId, rejectConsultationCommand, options) {
|
|
738
|
-
return localVarFp.apiV1ConsultationsConsultationIdRejectPut(consultationId, rejectConsultationCommand, options).then(function (request) { return request(axios, basePath); });
|
|
739
|
-
},
|
|
740
|
-
/**
|
|
741
|
-
*
|
|
742
|
-
* @summary Get all consultations.
|
|
743
|
-
* @param {string} [userId]
|
|
744
|
-
* @param {string} [userName]
|
|
745
|
-
* @param {string} [hospitalId]
|
|
746
|
-
* @param {string} [hospitalName]
|
|
747
|
-
* @param {string} [doctorId]
|
|
748
|
-
* @param {string} [doctorName]
|
|
749
|
-
* @param {string} [dealId]
|
|
750
|
-
* @param {string} [dealName]
|
|
751
|
-
* @param {boolean} [isOpen]
|
|
752
|
-
* @param {boolean} [isCompleted]
|
|
753
|
-
* @param {ConsultationStatus} [status]
|
|
754
|
-
* @param {ConsultationType} [consultationType]
|
|
755
|
-
* @param {SortingOrder} [sortRequestDate]
|
|
756
|
-
* @param {SortingOrder} [sortConfirmedDateStart]
|
|
757
|
-
* @param {boolean} [isExternal]
|
|
758
|
-
* @param {boolean} [paymentEnabled]
|
|
759
|
-
* @param {string} [languageCode]
|
|
760
|
-
* @param {boolean} [showHidden]
|
|
761
|
-
* @param {number} [page]
|
|
762
|
-
* @param {number} [limit]
|
|
763
|
-
* @param {Date} [lastRetrieved]
|
|
764
|
-
* @param {*} [options] Override http request option.
|
|
765
|
-
* @throws {RequiredError}
|
|
766
|
-
*/
|
|
767
|
-
apiV1ConsultationsGet: function (userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options) {
|
|
768
|
-
return localVarFp.apiV1ConsultationsGet(userId, userName, hospitalId, hospitalName, doctorId, doctorName, dealId, dealName, isOpen, isCompleted, status, consultationType, sortRequestDate, sortConfirmedDateStart, isExternal, paymentEnabled, languageCode, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
769
|
-
},
|
|
770
|
-
};
|
|
771
|
-
};
|
|
772
|
-
exports.ConsultationsApiFactory = ConsultationsApiFactory;
|
|
773
|
-
/**
|
|
774
|
-
* ConsultationsApi - object-oriented interface
|
|
775
|
-
* @export
|
|
776
|
-
* @class ConsultationsApi
|
|
777
|
-
* @extends {BaseAPI}
|
|
778
|
-
*/
|
|
779
|
-
var ConsultationsApi = /** @class */ (function (_super) {
|
|
780
|
-
__extends(ConsultationsApi, _super);
|
|
781
|
-
function ConsultationsApi() {
|
|
782
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
783
|
-
}
|
|
784
|
-
/**
|
|
785
|
-
*
|
|
786
|
-
* @summary Approve consultation.
|
|
787
|
-
* @param {ConsultationsApiApiV1ConsultationsConsultationIdApprovePutRequest} requestParameters Request parameters.
|
|
788
|
-
* @param {*} [options] Override http request option.
|
|
789
|
-
* @throws {RequiredError}
|
|
790
|
-
* @memberof ConsultationsApi
|
|
791
|
-
*/
|
|
792
|
-
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdApprovePut = function (requestParameters, options) {
|
|
793
|
-
var _this = this;
|
|
794
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsConsultationIdApprovePut(requestParameters.consultationId, requestParameters.approveConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
795
|
-
};
|
|
796
|
-
/**
|
|
797
|
-
*
|
|
798
|
-
* @summary Cancel consultation.
|
|
799
|
-
* @param {ConsultationsApiApiV1ConsultationsConsultationIdCancelPutRequest} requestParameters Request parameters.
|
|
800
|
-
* @param {*} [options] Override http request option.
|
|
801
|
-
* @throws {RequiredError}
|
|
802
|
-
* @memberof ConsultationsApi
|
|
803
|
-
*/
|
|
804
|
-
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdCancelPut = function (requestParameters, options) {
|
|
805
|
-
var _this = this;
|
|
806
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsConsultationIdCancelPut(requestParameters.consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
807
|
-
};
|
|
808
|
-
/**
|
|
809
|
-
*
|
|
810
|
-
* @summary Delete consultation.
|
|
811
|
-
* @param {ConsultationsApiApiV1ConsultationsConsultationIdDeleteRequest} requestParameters Request parameters.
|
|
812
|
-
* @param {*} [options] Override http request option.
|
|
813
|
-
* @throws {RequiredError}
|
|
814
|
-
* @memberof ConsultationsApi
|
|
815
|
-
*/
|
|
816
|
-
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdDelete = function (requestParameters, options) {
|
|
817
|
-
var _this = this;
|
|
818
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsConsultationIdDelete(requestParameters.consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
819
|
-
};
|
|
820
|
-
/**
|
|
821
|
-
*
|
|
822
|
-
* @summary Get consultation.
|
|
823
|
-
* @param {ConsultationsApiApiV1ConsultationsConsultationIdGetRequest} requestParameters Request parameters.
|
|
824
|
-
* @param {*} [options] Override http request option.
|
|
825
|
-
* @throws {RequiredError}
|
|
826
|
-
* @memberof ConsultationsApi
|
|
827
|
-
*/
|
|
828
|
-
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdGet = function (requestParameters, options) {
|
|
829
|
-
var _this = this;
|
|
830
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsConsultationIdGet(requestParameters.consultationId, requestParameters.isExternal, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
831
|
-
};
|
|
832
|
-
/**
|
|
833
|
-
*
|
|
834
|
-
* @summary Mark as Paid booking.
|
|
835
|
-
* @param {ConsultationsApiApiV1ConsultationsConsultationIdPaidPostRequest} requestParameters Request parameters.
|
|
836
|
-
* @param {*} [options] Override http request option.
|
|
837
|
-
* @throws {RequiredError}
|
|
838
|
-
* @memberof ConsultationsApi
|
|
839
|
-
*/
|
|
840
|
-
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdPaidPost = function (requestParameters, options) {
|
|
841
|
-
var _this = this;
|
|
842
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsConsultationIdPaidPost(requestParameters.consultationId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
843
|
-
};
|
|
844
|
-
/**
|
|
845
|
-
*
|
|
846
|
-
* @summary Reject consultation.
|
|
847
|
-
* @param {ConsultationsApiApiV1ConsultationsConsultationIdRejectPutRequest} requestParameters Request parameters.
|
|
848
|
-
* @param {*} [options] Override http request option.
|
|
849
|
-
* @throws {RequiredError}
|
|
850
|
-
* @memberof ConsultationsApi
|
|
851
|
-
*/
|
|
852
|
-
ConsultationsApi.prototype.apiV1ConsultationsConsultationIdRejectPut = function (requestParameters, options) {
|
|
853
|
-
var _this = this;
|
|
854
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsConsultationIdRejectPut(requestParameters.consultationId, requestParameters.rejectConsultationCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
855
|
-
};
|
|
856
|
-
/**
|
|
857
|
-
*
|
|
858
|
-
* @summary Get all consultations.
|
|
859
|
-
* @param {ConsultationsApiApiV1ConsultationsGetRequest} requestParameters Request parameters.
|
|
860
|
-
* @param {*} [options] Override http request option.
|
|
861
|
-
* @throws {RequiredError}
|
|
862
|
-
* @memberof ConsultationsApi
|
|
863
|
-
*/
|
|
864
|
-
ConsultationsApi.prototype.apiV1ConsultationsGet = function (requestParameters, options) {
|
|
865
|
-
var _this = this;
|
|
866
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
867
|
-
return (0, exports.ConsultationsApiFp)(this.configuration).apiV1ConsultationsGet(requestParameters.userId, requestParameters.userName, requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.doctorId, requestParameters.doctorName, requestParameters.dealId, requestParameters.dealName, requestParameters.isOpen, requestParameters.isCompleted, requestParameters.status, requestParameters.consultationType, requestParameters.sortRequestDate, requestParameters.sortConfirmedDateStart, requestParameters.isExternal, requestParameters.paymentEnabled, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
868
|
-
};
|
|
869
|
-
return ConsultationsApi;
|
|
870
|
-
}(base_1.BaseAPI));
|
|
871
|
-
exports.ConsultationsApi = ConsultationsApi;
|