ch-admin-api-client-typescript 5.42.5 → 5.43.12
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/content-managers-api.d.ts +421 -0
- package/lib/api/content-managers-api.d.ts.map +1 -0
- package/lib/api/content-managers-api.js +713 -0
- package/lib/api/patient-managers-api.d.ts +421 -0
- package/lib/api/patient-managers-api.d.ts.map +1 -0
- package/lib/api/patient-managers-api.js +713 -0
- package/lib/api.d.ts +2 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -0
- package/lib/models/content-manager-item-model.d.ts +105 -0
- package/lib/models/content-manager-item-model.d.ts.map +1 -0
- package/lib/models/content-manager-item-model.js +15 -0
- package/lib/models/content-manager-model.d.ts +119 -0
- package/lib/models/content-manager-model.d.ts.map +1 -0
- package/lib/models/content-manager-model.js +15 -0
- package/lib/models/content-managers-model.d.ts +33 -0
- package/lib/models/content-managers-model.d.ts.map +1 -0
- package/lib/models/content-managers-model.js +15 -0
- package/lib/models/create-content-manager-command.d.ts +80 -0
- package/lib/models/create-content-manager-command.d.ts.map +1 -0
- package/lib/models/create-content-manager-command.js +15 -0
- package/lib/models/create-patient-manager-command.d.ts +80 -0
- package/lib/models/create-patient-manager-command.d.ts.map +1 -0
- package/lib/models/create-patient-manager-command.js +15 -0
- package/lib/models/create-service-review-command.d.ts +6 -0
- package/lib/models/create-service-review-command.d.ts.map +1 -1
- package/lib/models/index.d.ts +10 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +10 -0
- package/lib/models/patient-manager-item-model.d.ts +105 -0
- package/lib/models/patient-manager-item-model.d.ts.map +1 -0
- package/lib/models/patient-manager-item-model.js +15 -0
- package/lib/models/patient-manager-model.d.ts +119 -0
- package/lib/models/patient-manager-model.d.ts.map +1 -0
- package/lib/models/patient-manager-model.js +15 -0
- package/lib/models/patient-managers-model.d.ts +33 -0
- package/lib/models/patient-managers-model.d.ts.map +1 -0
- package/lib/models/patient-managers-model.js +15 -0
- package/lib/models/service-review-item-model.d.ts +6 -0
- package/lib/models/service-review-item-model.d.ts.map +1 -1
- package/lib/models/service-review-model.d.ts +6 -0
- package/lib/models/service-review-model.d.ts.map +1 -1
- package/lib/models/translate-command.d.ts +4 -4
- package/lib/models/translate-command.d.ts.map +1 -1
- package/lib/models/update-content-manager-command.d.ts +80 -0
- package/lib/models/update-content-manager-command.d.ts.map +1 -0
- package/lib/models/update-content-manager-command.js +15 -0
- package/lib/models/update-patient-manager-command.d.ts +80 -0
- package/lib/models/update-patient-manager-command.d.ts.map +1 -0
- package/lib/models/update-patient-manager-command.js +15 -0
- package/lib/models/update-service-review-command.d.ts +6 -0
- package/lib/models/update-service-review-command.d.ts.map +1 -1
- package/lib/models/user-type.d.ts +2 -0
- package/lib/models/user-type.d.ts.map +1 -1
- package/lib/models/user-type.js +3 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +12 -0
- package/src/api/content-managers-api.ts +740 -0
- package/src/api/patient-managers-api.ts +740 -0
- package/src/api.ts +2 -0
- package/src/models/content-manager-item-model.ts +114 -0
- package/src/models/content-manager-model.ts +132 -0
- package/src/models/content-managers-model.ts +42 -0
- package/src/models/create-content-manager-command.ts +87 -0
- package/src/models/create-patient-manager-command.ts +87 -0
- package/src/models/create-service-review-command.ts +6 -0
- package/src/models/index.ts +10 -0
- package/src/models/patient-manager-item-model.ts +114 -0
- package/src/models/patient-manager-model.ts +132 -0
- package/src/models/patient-managers-model.ts +42 -0
- package/src/models/service-review-item-model.ts +6 -0
- package/src/models/service-review-model.ts +6 -0
- package/src/models/translate-command.ts +4 -4
- package/src/models/update-content-manager-command.ts +87 -0
- package/src/models/update-patient-manager-command.ts +87 -0
- package/src/models/update-service-review-command.ts +6 -0
- package/src/models/user-type.ts +3 -1
|
@@ -0,0 +1,713 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CloudHospital Admin Api
|
|
6
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 1
|
|
9
|
+
* Contact: developer@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.PatientManagersApi = exports.PatientManagersApiFactory = exports.PatientManagersApiFp = exports.PatientManagersApiAxiosParamCreator = 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
|
+
* PatientManagersApi - axios parameter creator
|
|
90
|
+
* @export
|
|
91
|
+
*/
|
|
92
|
+
var PatientManagersApiAxiosParamCreator = function (configuration) {
|
|
93
|
+
var _this = this;
|
|
94
|
+
return {
|
|
95
|
+
/**
|
|
96
|
+
*
|
|
97
|
+
* @summary Get all PatientManagers.
|
|
98
|
+
* @param {string} [id]
|
|
99
|
+
* @param {string} [fullname]
|
|
100
|
+
* @param {string} [email]
|
|
101
|
+
* @param {Gender} [gender]
|
|
102
|
+
* @param {Date} [dateOfBirth]
|
|
103
|
+
* @param {Date} [created]
|
|
104
|
+
* @param {boolean} [showHidden]
|
|
105
|
+
* @param {number} [page]
|
|
106
|
+
* @param {number} [limit]
|
|
107
|
+
* @param {Date} [lastRetrieved]
|
|
108
|
+
* @param {*} [options] Override http request option.
|
|
109
|
+
* @throws {RequiredError}
|
|
110
|
+
*/
|
|
111
|
+
apiV1PatientmanagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
112
|
+
if (options === void 0) { options = {}; }
|
|
113
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
114
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
115
|
+
return __generator(this, function (_a) {
|
|
116
|
+
switch (_a.label) {
|
|
117
|
+
case 0:
|
|
118
|
+
localVarPath = "/api/v1/patientmanagers";
|
|
119
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
120
|
+
if (configuration) {
|
|
121
|
+
baseOptions = configuration.baseOptions;
|
|
122
|
+
}
|
|
123
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
124
|
+
localVarHeaderParameter = {};
|
|
125
|
+
localVarQueryParameter = {};
|
|
126
|
+
// authentication oauth2 required
|
|
127
|
+
// oauth required
|
|
128
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
129
|
+
case 1:
|
|
130
|
+
// authentication oauth2 required
|
|
131
|
+
// oauth required
|
|
132
|
+
_a.sent();
|
|
133
|
+
if (id !== undefined) {
|
|
134
|
+
localVarQueryParameter['Id'] = id;
|
|
135
|
+
}
|
|
136
|
+
if (fullname !== undefined) {
|
|
137
|
+
localVarQueryParameter['Fullname'] = fullname;
|
|
138
|
+
}
|
|
139
|
+
if (email !== undefined) {
|
|
140
|
+
localVarQueryParameter['Email'] = email;
|
|
141
|
+
}
|
|
142
|
+
if (gender !== undefined) {
|
|
143
|
+
localVarQueryParameter['Gender'] = gender;
|
|
144
|
+
}
|
|
145
|
+
if (dateOfBirth !== undefined) {
|
|
146
|
+
localVarQueryParameter['DateOfBirth'] = (dateOfBirth instanceof Date) ?
|
|
147
|
+
dateOfBirth.toISOString() :
|
|
148
|
+
dateOfBirth;
|
|
149
|
+
}
|
|
150
|
+
if (created !== undefined) {
|
|
151
|
+
localVarQueryParameter['Created'] = (created instanceof Date) ?
|
|
152
|
+
created.toISOString() :
|
|
153
|
+
created;
|
|
154
|
+
}
|
|
155
|
+
if (showHidden !== undefined) {
|
|
156
|
+
localVarQueryParameter['ShowHidden'] = showHidden;
|
|
157
|
+
}
|
|
158
|
+
if (page !== undefined) {
|
|
159
|
+
localVarQueryParameter['page'] = page;
|
|
160
|
+
}
|
|
161
|
+
if (limit !== undefined) {
|
|
162
|
+
localVarQueryParameter['limit'] = limit;
|
|
163
|
+
}
|
|
164
|
+
if (lastRetrieved !== undefined) {
|
|
165
|
+
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
166
|
+
lastRetrieved.toISOString() :
|
|
167
|
+
lastRetrieved;
|
|
168
|
+
}
|
|
169
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
170
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
171
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
172
|
+
return [2 /*return*/, {
|
|
173
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
174
|
+
options: localVarRequestOptions,
|
|
175
|
+
}];
|
|
176
|
+
}
|
|
177
|
+
});
|
|
178
|
+
});
|
|
179
|
+
},
|
|
180
|
+
/**
|
|
181
|
+
*
|
|
182
|
+
* @summary Delete PatientManager.
|
|
183
|
+
* @param {string} patientManagerId
|
|
184
|
+
* @param {boolean} [isPermanent]
|
|
185
|
+
* @param {*} [options] Override http request option.
|
|
186
|
+
* @throws {RequiredError}
|
|
187
|
+
*/
|
|
188
|
+
apiV1PatientmanagersPatientManagerIdDelete: function (patientManagerId, isPermanent, options) {
|
|
189
|
+
if (options === void 0) { options = {}; }
|
|
190
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
191
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
192
|
+
return __generator(this, function (_a) {
|
|
193
|
+
switch (_a.label) {
|
|
194
|
+
case 0:
|
|
195
|
+
// verify required parameter 'patientManagerId' is not null or undefined
|
|
196
|
+
(0, common_1.assertParamExists)('apiV1PatientmanagersPatientManagerIdDelete', 'patientManagerId', patientManagerId);
|
|
197
|
+
localVarPath = "/api/v1/patientmanagers/{patientManagerId}"
|
|
198
|
+
.replace("{".concat("patientManagerId", "}"), encodeURIComponent(String(patientManagerId)));
|
|
199
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
200
|
+
if (configuration) {
|
|
201
|
+
baseOptions = configuration.baseOptions;
|
|
202
|
+
}
|
|
203
|
+
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
204
|
+
localVarHeaderParameter = {};
|
|
205
|
+
localVarQueryParameter = {};
|
|
206
|
+
// authentication oauth2 required
|
|
207
|
+
// oauth required
|
|
208
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
209
|
+
case 1:
|
|
210
|
+
// authentication oauth2 required
|
|
211
|
+
// oauth required
|
|
212
|
+
_a.sent();
|
|
213
|
+
if (isPermanent !== undefined) {
|
|
214
|
+
localVarQueryParameter['isPermanent'] = isPermanent;
|
|
215
|
+
}
|
|
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 PatientManager.
|
|
230
|
+
* @param {string} patientManagerId
|
|
231
|
+
* @param {*} [options] Override http request option.
|
|
232
|
+
* @throws {RequiredError}
|
|
233
|
+
*/
|
|
234
|
+
apiV1PatientmanagersPatientManagerIdGet: function (patientManagerId, options) {
|
|
235
|
+
if (options === void 0) { options = {}; }
|
|
236
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
237
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
238
|
+
return __generator(this, function (_a) {
|
|
239
|
+
switch (_a.label) {
|
|
240
|
+
case 0:
|
|
241
|
+
// verify required parameter 'patientManagerId' is not null or undefined
|
|
242
|
+
(0, common_1.assertParamExists)('apiV1PatientmanagersPatientManagerIdGet', 'patientManagerId', patientManagerId);
|
|
243
|
+
localVarPath = "/api/v1/patientmanagers/{patientManagerId}"
|
|
244
|
+
.replace("{".concat("patientManagerId", "}"), encodeURIComponent(String(patientManagerId)));
|
|
245
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
246
|
+
if (configuration) {
|
|
247
|
+
baseOptions = configuration.baseOptions;
|
|
248
|
+
}
|
|
249
|
+
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
250
|
+
localVarHeaderParameter = {};
|
|
251
|
+
localVarQueryParameter = {};
|
|
252
|
+
// authentication oauth2 required
|
|
253
|
+
// oauth required
|
|
254
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
255
|
+
case 1:
|
|
256
|
+
// authentication oauth2 required
|
|
257
|
+
// oauth required
|
|
258
|
+
_a.sent();
|
|
259
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
260
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
261
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
262
|
+
return [2 /*return*/, {
|
|
263
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
264
|
+
options: localVarRequestOptions,
|
|
265
|
+
}];
|
|
266
|
+
}
|
|
267
|
+
});
|
|
268
|
+
});
|
|
269
|
+
},
|
|
270
|
+
/**
|
|
271
|
+
*
|
|
272
|
+
* @summary Update PatientManager.
|
|
273
|
+
* @param {string} patientManagerId
|
|
274
|
+
* @param {UpdatePatientManagerCommand} [updatePatientManagerCommand]
|
|
275
|
+
* @param {*} [options] Override http request option.
|
|
276
|
+
* @throws {RequiredError}
|
|
277
|
+
*/
|
|
278
|
+
apiV1PatientmanagersPatientManagerIdPut: function (patientManagerId, updatePatientManagerCommand, options) {
|
|
279
|
+
if (options === void 0) { options = {}; }
|
|
280
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
281
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
282
|
+
return __generator(this, function (_a) {
|
|
283
|
+
switch (_a.label) {
|
|
284
|
+
case 0:
|
|
285
|
+
// verify required parameter 'patientManagerId' is not null or undefined
|
|
286
|
+
(0, common_1.assertParamExists)('apiV1PatientmanagersPatientManagerIdPut', 'patientManagerId', patientManagerId);
|
|
287
|
+
localVarPath = "/api/v1/patientmanagers/{patientManagerId}"
|
|
288
|
+
.replace("{".concat("patientManagerId", "}"), encodeURIComponent(String(patientManagerId)));
|
|
289
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
290
|
+
if (configuration) {
|
|
291
|
+
baseOptions = configuration.baseOptions;
|
|
292
|
+
}
|
|
293
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
294
|
+
localVarHeaderParameter = {};
|
|
295
|
+
localVarQueryParameter = {};
|
|
296
|
+
// authentication oauth2 required
|
|
297
|
+
// oauth required
|
|
298
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
299
|
+
case 1:
|
|
300
|
+
// authentication oauth2 required
|
|
301
|
+
// oauth required
|
|
302
|
+
_a.sent();
|
|
303
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
304
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
305
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
306
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
307
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updatePatientManagerCommand, localVarRequestOptions, configuration);
|
|
308
|
+
return [2 /*return*/, {
|
|
309
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
310
|
+
options: localVarRequestOptions,
|
|
311
|
+
}];
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
});
|
|
315
|
+
},
|
|
316
|
+
/**
|
|
317
|
+
*
|
|
318
|
+
* @summary Reactivate PatientManager.
|
|
319
|
+
* @param {string} patientManagerId
|
|
320
|
+
* @param {*} [options] Override http request option.
|
|
321
|
+
* @throws {RequiredError}
|
|
322
|
+
*/
|
|
323
|
+
apiV1PatientmanagersPatientManagerIdReactivatePut: function (patientManagerId, options) {
|
|
324
|
+
if (options === void 0) { options = {}; }
|
|
325
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
326
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
327
|
+
return __generator(this, function (_a) {
|
|
328
|
+
switch (_a.label) {
|
|
329
|
+
case 0:
|
|
330
|
+
// verify required parameter 'patientManagerId' is not null or undefined
|
|
331
|
+
(0, common_1.assertParamExists)('apiV1PatientmanagersPatientManagerIdReactivatePut', 'patientManagerId', patientManagerId);
|
|
332
|
+
localVarPath = "/api/v1/patientmanagers/{patientManagerId}/reactivate"
|
|
333
|
+
.replace("{".concat("patientManagerId", "}"), encodeURIComponent(String(patientManagerId)));
|
|
334
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
335
|
+
if (configuration) {
|
|
336
|
+
baseOptions = configuration.baseOptions;
|
|
337
|
+
}
|
|
338
|
+
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
339
|
+
localVarHeaderParameter = {};
|
|
340
|
+
localVarQueryParameter = {};
|
|
341
|
+
// authentication oauth2 required
|
|
342
|
+
// oauth required
|
|
343
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
344
|
+
case 1:
|
|
345
|
+
// authentication oauth2 required
|
|
346
|
+
// oauth required
|
|
347
|
+
_a.sent();
|
|
348
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
349
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
350
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
351
|
+
return [2 /*return*/, {
|
|
352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
353
|
+
options: localVarRequestOptions,
|
|
354
|
+
}];
|
|
355
|
+
}
|
|
356
|
+
});
|
|
357
|
+
});
|
|
358
|
+
},
|
|
359
|
+
/**
|
|
360
|
+
*
|
|
361
|
+
* @summary Create a PatientManager.
|
|
362
|
+
* @param {CreatePatientManagerCommand} [createPatientManagerCommand]
|
|
363
|
+
* @param {*} [options] Override http request option.
|
|
364
|
+
* @throws {RequiredError}
|
|
365
|
+
*/
|
|
366
|
+
apiV1PatientmanagersPost: function (createPatientManagerCommand, options) {
|
|
367
|
+
if (options === void 0) { options = {}; }
|
|
368
|
+
return __awaiter(_this, void 0, void 0, function () {
|
|
369
|
+
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
370
|
+
return __generator(this, function (_a) {
|
|
371
|
+
switch (_a.label) {
|
|
372
|
+
case 0:
|
|
373
|
+
localVarPath = "/api/v1/patientmanagers";
|
|
374
|
+
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
375
|
+
if (configuration) {
|
|
376
|
+
baseOptions = configuration.baseOptions;
|
|
377
|
+
}
|
|
378
|
+
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
379
|
+
localVarHeaderParameter = {};
|
|
380
|
+
localVarQueryParameter = {};
|
|
381
|
+
// authentication oauth2 required
|
|
382
|
+
// oauth required
|
|
383
|
+
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
384
|
+
case 1:
|
|
385
|
+
// authentication oauth2 required
|
|
386
|
+
// oauth required
|
|
387
|
+
_a.sent();
|
|
388
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
389
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
390
|
+
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
391
|
+
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
392
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createPatientManagerCommand, localVarRequestOptions, configuration);
|
|
393
|
+
return [2 /*return*/, {
|
|
394
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
395
|
+
options: localVarRequestOptions,
|
|
396
|
+
}];
|
|
397
|
+
}
|
|
398
|
+
});
|
|
399
|
+
});
|
|
400
|
+
},
|
|
401
|
+
};
|
|
402
|
+
};
|
|
403
|
+
exports.PatientManagersApiAxiosParamCreator = PatientManagersApiAxiosParamCreator;
|
|
404
|
+
/**
|
|
405
|
+
* PatientManagersApi - functional programming interface
|
|
406
|
+
* @export
|
|
407
|
+
*/
|
|
408
|
+
var PatientManagersApiFp = function (configuration) {
|
|
409
|
+
var localVarAxiosParamCreator = (0, exports.PatientManagersApiAxiosParamCreator)(configuration);
|
|
410
|
+
return {
|
|
411
|
+
/**
|
|
412
|
+
*
|
|
413
|
+
* @summary Get all PatientManagers.
|
|
414
|
+
* @param {string} [id]
|
|
415
|
+
* @param {string} [fullname]
|
|
416
|
+
* @param {string} [email]
|
|
417
|
+
* @param {Gender} [gender]
|
|
418
|
+
* @param {Date} [dateOfBirth]
|
|
419
|
+
* @param {Date} [created]
|
|
420
|
+
* @param {boolean} [showHidden]
|
|
421
|
+
* @param {number} [page]
|
|
422
|
+
* @param {number} [limit]
|
|
423
|
+
* @param {Date} [lastRetrieved]
|
|
424
|
+
* @param {*} [options] Override http request option.
|
|
425
|
+
* @throws {RequiredError}
|
|
426
|
+
*/
|
|
427
|
+
apiV1PatientmanagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
429
|
+
var localVarAxiosArgs;
|
|
430
|
+
return __generator(this, function (_a) {
|
|
431
|
+
switch (_a.label) {
|
|
432
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientmanagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options)];
|
|
433
|
+
case 1:
|
|
434
|
+
localVarAxiosArgs = _a.sent();
|
|
435
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
436
|
+
}
|
|
437
|
+
});
|
|
438
|
+
});
|
|
439
|
+
},
|
|
440
|
+
/**
|
|
441
|
+
*
|
|
442
|
+
* @summary Delete PatientManager.
|
|
443
|
+
* @param {string} patientManagerId
|
|
444
|
+
* @param {boolean} [isPermanent]
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
apiV1PatientmanagersPatientManagerIdDelete: function (patientManagerId, isPermanent, options) {
|
|
449
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
450
|
+
var localVarAxiosArgs;
|
|
451
|
+
return __generator(this, function (_a) {
|
|
452
|
+
switch (_a.label) {
|
|
453
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientmanagersPatientManagerIdDelete(patientManagerId, isPermanent, options)];
|
|
454
|
+
case 1:
|
|
455
|
+
localVarAxiosArgs = _a.sent();
|
|
456
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
457
|
+
}
|
|
458
|
+
});
|
|
459
|
+
});
|
|
460
|
+
},
|
|
461
|
+
/**
|
|
462
|
+
*
|
|
463
|
+
* @summary Get PatientManager.
|
|
464
|
+
* @param {string} patientManagerId
|
|
465
|
+
* @param {*} [options] Override http request option.
|
|
466
|
+
* @throws {RequiredError}
|
|
467
|
+
*/
|
|
468
|
+
apiV1PatientmanagersPatientManagerIdGet: function (patientManagerId, options) {
|
|
469
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
470
|
+
var localVarAxiosArgs;
|
|
471
|
+
return __generator(this, function (_a) {
|
|
472
|
+
switch (_a.label) {
|
|
473
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientmanagersPatientManagerIdGet(patientManagerId, options)];
|
|
474
|
+
case 1:
|
|
475
|
+
localVarAxiosArgs = _a.sent();
|
|
476
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
477
|
+
}
|
|
478
|
+
});
|
|
479
|
+
});
|
|
480
|
+
},
|
|
481
|
+
/**
|
|
482
|
+
*
|
|
483
|
+
* @summary Update PatientManager.
|
|
484
|
+
* @param {string} patientManagerId
|
|
485
|
+
* @param {UpdatePatientManagerCommand} [updatePatientManagerCommand]
|
|
486
|
+
* @param {*} [options] Override http request option.
|
|
487
|
+
* @throws {RequiredError}
|
|
488
|
+
*/
|
|
489
|
+
apiV1PatientmanagersPatientManagerIdPut: function (patientManagerId, updatePatientManagerCommand, options) {
|
|
490
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
491
|
+
var localVarAxiosArgs;
|
|
492
|
+
return __generator(this, function (_a) {
|
|
493
|
+
switch (_a.label) {
|
|
494
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientmanagersPatientManagerIdPut(patientManagerId, updatePatientManagerCommand, options)];
|
|
495
|
+
case 1:
|
|
496
|
+
localVarAxiosArgs = _a.sent();
|
|
497
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
498
|
+
}
|
|
499
|
+
});
|
|
500
|
+
});
|
|
501
|
+
},
|
|
502
|
+
/**
|
|
503
|
+
*
|
|
504
|
+
* @summary Reactivate PatientManager.
|
|
505
|
+
* @param {string} patientManagerId
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
apiV1PatientmanagersPatientManagerIdReactivatePut: function (patientManagerId, options) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
511
|
+
var localVarAxiosArgs;
|
|
512
|
+
return __generator(this, function (_a) {
|
|
513
|
+
switch (_a.label) {
|
|
514
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientmanagersPatientManagerIdReactivatePut(patientManagerId, options)];
|
|
515
|
+
case 1:
|
|
516
|
+
localVarAxiosArgs = _a.sent();
|
|
517
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
518
|
+
}
|
|
519
|
+
});
|
|
520
|
+
});
|
|
521
|
+
},
|
|
522
|
+
/**
|
|
523
|
+
*
|
|
524
|
+
* @summary Create a PatientManager.
|
|
525
|
+
* @param {CreatePatientManagerCommand} [createPatientManagerCommand]
|
|
526
|
+
* @param {*} [options] Override http request option.
|
|
527
|
+
* @throws {RequiredError}
|
|
528
|
+
*/
|
|
529
|
+
apiV1PatientmanagersPost: function (createPatientManagerCommand, options) {
|
|
530
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
531
|
+
var localVarAxiosArgs;
|
|
532
|
+
return __generator(this, function (_a) {
|
|
533
|
+
switch (_a.label) {
|
|
534
|
+
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1PatientmanagersPost(createPatientManagerCommand, options)];
|
|
535
|
+
case 1:
|
|
536
|
+
localVarAxiosArgs = _a.sent();
|
|
537
|
+
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
});
|
|
541
|
+
},
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
exports.PatientManagersApiFp = PatientManagersApiFp;
|
|
545
|
+
/**
|
|
546
|
+
* PatientManagersApi - factory interface
|
|
547
|
+
* @export
|
|
548
|
+
*/
|
|
549
|
+
var PatientManagersApiFactory = function (configuration, basePath, axios) {
|
|
550
|
+
var localVarFp = (0, exports.PatientManagersApiFp)(configuration);
|
|
551
|
+
return {
|
|
552
|
+
/**
|
|
553
|
+
*
|
|
554
|
+
* @summary Get all PatientManagers.
|
|
555
|
+
* @param {string} [id]
|
|
556
|
+
* @param {string} [fullname]
|
|
557
|
+
* @param {string} [email]
|
|
558
|
+
* @param {Gender} [gender]
|
|
559
|
+
* @param {Date} [dateOfBirth]
|
|
560
|
+
* @param {Date} [created]
|
|
561
|
+
* @param {boolean} [showHidden]
|
|
562
|
+
* @param {number} [page]
|
|
563
|
+
* @param {number} [limit]
|
|
564
|
+
* @param {Date} [lastRetrieved]
|
|
565
|
+
* @param {*} [options] Override http request option.
|
|
566
|
+
* @throws {RequiredError}
|
|
567
|
+
*/
|
|
568
|
+
apiV1PatientmanagersGet: function (id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options) {
|
|
569
|
+
return localVarFp.apiV1PatientmanagersGet(id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
570
|
+
},
|
|
571
|
+
/**
|
|
572
|
+
*
|
|
573
|
+
* @summary Delete PatientManager.
|
|
574
|
+
* @param {string} patientManagerId
|
|
575
|
+
* @param {boolean} [isPermanent]
|
|
576
|
+
* @param {*} [options] Override http request option.
|
|
577
|
+
* @throws {RequiredError}
|
|
578
|
+
*/
|
|
579
|
+
apiV1PatientmanagersPatientManagerIdDelete: function (patientManagerId, isPermanent, options) {
|
|
580
|
+
return localVarFp.apiV1PatientmanagersPatientManagerIdDelete(patientManagerId, isPermanent, options).then(function (request) { return request(axios, basePath); });
|
|
581
|
+
},
|
|
582
|
+
/**
|
|
583
|
+
*
|
|
584
|
+
* @summary Get PatientManager.
|
|
585
|
+
* @param {string} patientManagerId
|
|
586
|
+
* @param {*} [options] Override http request option.
|
|
587
|
+
* @throws {RequiredError}
|
|
588
|
+
*/
|
|
589
|
+
apiV1PatientmanagersPatientManagerIdGet: function (patientManagerId, options) {
|
|
590
|
+
return localVarFp.apiV1PatientmanagersPatientManagerIdGet(patientManagerId, options).then(function (request) { return request(axios, basePath); });
|
|
591
|
+
},
|
|
592
|
+
/**
|
|
593
|
+
*
|
|
594
|
+
* @summary Update PatientManager.
|
|
595
|
+
* @param {string} patientManagerId
|
|
596
|
+
* @param {UpdatePatientManagerCommand} [updatePatientManagerCommand]
|
|
597
|
+
* @param {*} [options] Override http request option.
|
|
598
|
+
* @throws {RequiredError}
|
|
599
|
+
*/
|
|
600
|
+
apiV1PatientmanagersPatientManagerIdPut: function (patientManagerId, updatePatientManagerCommand, options) {
|
|
601
|
+
return localVarFp.apiV1PatientmanagersPatientManagerIdPut(patientManagerId, updatePatientManagerCommand, options).then(function (request) { return request(axios, basePath); });
|
|
602
|
+
},
|
|
603
|
+
/**
|
|
604
|
+
*
|
|
605
|
+
* @summary Reactivate PatientManager.
|
|
606
|
+
* @param {string} patientManagerId
|
|
607
|
+
* @param {*} [options] Override http request option.
|
|
608
|
+
* @throws {RequiredError}
|
|
609
|
+
*/
|
|
610
|
+
apiV1PatientmanagersPatientManagerIdReactivatePut: function (patientManagerId, options) {
|
|
611
|
+
return localVarFp.apiV1PatientmanagersPatientManagerIdReactivatePut(patientManagerId, options).then(function (request) { return request(axios, basePath); });
|
|
612
|
+
},
|
|
613
|
+
/**
|
|
614
|
+
*
|
|
615
|
+
* @summary Create a PatientManager.
|
|
616
|
+
* @param {CreatePatientManagerCommand} [createPatientManagerCommand]
|
|
617
|
+
* @param {*} [options] Override http request option.
|
|
618
|
+
* @throws {RequiredError}
|
|
619
|
+
*/
|
|
620
|
+
apiV1PatientmanagersPost: function (createPatientManagerCommand, options) {
|
|
621
|
+
return localVarFp.apiV1PatientmanagersPost(createPatientManagerCommand, options).then(function (request) { return request(axios, basePath); });
|
|
622
|
+
},
|
|
623
|
+
};
|
|
624
|
+
};
|
|
625
|
+
exports.PatientManagersApiFactory = PatientManagersApiFactory;
|
|
626
|
+
/**
|
|
627
|
+
* PatientManagersApi - object-oriented interface
|
|
628
|
+
* @export
|
|
629
|
+
* @class PatientManagersApi
|
|
630
|
+
* @extends {BaseAPI}
|
|
631
|
+
*/
|
|
632
|
+
var PatientManagersApi = /** @class */ (function (_super) {
|
|
633
|
+
__extends(PatientManagersApi, _super);
|
|
634
|
+
function PatientManagersApi() {
|
|
635
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
636
|
+
}
|
|
637
|
+
/**
|
|
638
|
+
*
|
|
639
|
+
* @summary Get all PatientManagers.
|
|
640
|
+
* @param {PatientManagersApiApiV1PatientmanagersGetRequest} requestParameters Request parameters.
|
|
641
|
+
* @param {*} [options] Override http request option.
|
|
642
|
+
* @throws {RequiredError}
|
|
643
|
+
* @memberof PatientManagersApi
|
|
644
|
+
*/
|
|
645
|
+
PatientManagersApi.prototype.apiV1PatientmanagersGet = function (requestParameters, options) {
|
|
646
|
+
var _this = this;
|
|
647
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
648
|
+
return (0, exports.PatientManagersApiFp)(this.configuration).apiV1PatientmanagersGet(requestParameters.id, requestParameters.fullname, requestParameters.email, requestParameters.gender, requestParameters.dateOfBirth, requestParameters.created, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
649
|
+
};
|
|
650
|
+
/**
|
|
651
|
+
*
|
|
652
|
+
* @summary Delete PatientManager.
|
|
653
|
+
* @param {PatientManagersApiApiV1PatientmanagersPatientManagerIdDeleteRequest} requestParameters Request parameters.
|
|
654
|
+
* @param {*} [options] Override http request option.
|
|
655
|
+
* @throws {RequiredError}
|
|
656
|
+
* @memberof PatientManagersApi
|
|
657
|
+
*/
|
|
658
|
+
PatientManagersApi.prototype.apiV1PatientmanagersPatientManagerIdDelete = function (requestParameters, options) {
|
|
659
|
+
var _this = this;
|
|
660
|
+
return (0, exports.PatientManagersApiFp)(this.configuration).apiV1PatientmanagersPatientManagerIdDelete(requestParameters.patientManagerId, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
661
|
+
};
|
|
662
|
+
/**
|
|
663
|
+
*
|
|
664
|
+
* @summary Get PatientManager.
|
|
665
|
+
* @param {PatientManagersApiApiV1PatientmanagersPatientManagerIdGetRequest} requestParameters Request parameters.
|
|
666
|
+
* @param {*} [options] Override http request option.
|
|
667
|
+
* @throws {RequiredError}
|
|
668
|
+
* @memberof PatientManagersApi
|
|
669
|
+
*/
|
|
670
|
+
PatientManagersApi.prototype.apiV1PatientmanagersPatientManagerIdGet = function (requestParameters, options) {
|
|
671
|
+
var _this = this;
|
|
672
|
+
return (0, exports.PatientManagersApiFp)(this.configuration).apiV1PatientmanagersPatientManagerIdGet(requestParameters.patientManagerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
673
|
+
};
|
|
674
|
+
/**
|
|
675
|
+
*
|
|
676
|
+
* @summary Update PatientManager.
|
|
677
|
+
* @param {PatientManagersApiApiV1PatientmanagersPatientManagerIdPutRequest} requestParameters Request parameters.
|
|
678
|
+
* @param {*} [options] Override http request option.
|
|
679
|
+
* @throws {RequiredError}
|
|
680
|
+
* @memberof PatientManagersApi
|
|
681
|
+
*/
|
|
682
|
+
PatientManagersApi.prototype.apiV1PatientmanagersPatientManagerIdPut = function (requestParameters, options) {
|
|
683
|
+
var _this = this;
|
|
684
|
+
return (0, exports.PatientManagersApiFp)(this.configuration).apiV1PatientmanagersPatientManagerIdPut(requestParameters.patientManagerId, requestParameters.updatePatientManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
685
|
+
};
|
|
686
|
+
/**
|
|
687
|
+
*
|
|
688
|
+
* @summary Reactivate PatientManager.
|
|
689
|
+
* @param {PatientManagersApiApiV1PatientmanagersPatientManagerIdReactivatePutRequest} requestParameters Request parameters.
|
|
690
|
+
* @param {*} [options] Override http request option.
|
|
691
|
+
* @throws {RequiredError}
|
|
692
|
+
* @memberof PatientManagersApi
|
|
693
|
+
*/
|
|
694
|
+
PatientManagersApi.prototype.apiV1PatientmanagersPatientManagerIdReactivatePut = function (requestParameters, options) {
|
|
695
|
+
var _this = this;
|
|
696
|
+
return (0, exports.PatientManagersApiFp)(this.configuration).apiV1PatientmanagersPatientManagerIdReactivatePut(requestParameters.patientManagerId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
697
|
+
};
|
|
698
|
+
/**
|
|
699
|
+
*
|
|
700
|
+
* @summary Create a PatientManager.
|
|
701
|
+
* @param {PatientManagersApiApiV1PatientmanagersPostRequest} requestParameters Request parameters.
|
|
702
|
+
* @param {*} [options] Override http request option.
|
|
703
|
+
* @throws {RequiredError}
|
|
704
|
+
* @memberof PatientManagersApi
|
|
705
|
+
*/
|
|
706
|
+
PatientManagersApi.prototype.apiV1PatientmanagersPost = function (requestParameters, options) {
|
|
707
|
+
var _this = this;
|
|
708
|
+
if (requestParameters === void 0) { requestParameters = {}; }
|
|
709
|
+
return (0, exports.PatientManagersApiFp)(this.configuration).apiV1PatientmanagersPost(requestParameters.createPatientManagerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
710
|
+
};
|
|
711
|
+
return PatientManagersApi;
|
|
712
|
+
}(base_1.BaseAPI));
|
|
713
|
+
exports.PatientManagersApi = PatientManagersApi;
|