ch-api-client-typescript2 5.2.1 → 5.2.4

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.
Files changed (54) hide show
  1. package/lib/api/hospitals-api.d.ts +111 -0
  2. package/lib/api/hospitals-api.d.ts.map +1 -1
  3. package/lib/api/hospitals-api.js +119 -0
  4. package/lib/api/secure-containers-api.d.ts +347 -0
  5. package/lib/api/secure-containers-api.d.ts.map +1 -0
  6. package/lib/api/secure-containers-api.js +611 -0
  7. package/lib/api.d.ts +1 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +1 -0
  10. package/lib/models/hospital-contact-item-model.d.ts +80 -0
  11. package/lib/models/hospital-contact-item-model.d.ts.map +1 -0
  12. package/lib/models/hospital-contact-item-model.js +15 -0
  13. package/lib/models/hospital-contacts-model.d.ts +33 -0
  14. package/lib/models/hospital-contacts-model.d.ts.map +1 -0
  15. package/lib/models/hospital-contacts-model.js +15 -0
  16. package/lib/models/index.d.ts +8 -0
  17. package/lib/models/index.d.ts.map +1 -1
  18. package/lib/models/index.js +8 -0
  19. package/lib/models/secure-container-item-model.d.ts +43 -0
  20. package/lib/models/secure-container-item-model.d.ts.map +1 -0
  21. package/lib/models/secure-container-item-model.js +15 -0
  22. package/lib/models/secure-container-model.d.ts +50 -0
  23. package/lib/models/secure-container-model.d.ts.map +1 -0
  24. package/lib/models/secure-container-model.js +15 -0
  25. package/lib/models/secure-containers-model.d.ts +33 -0
  26. package/lib/models/secure-containers-model.d.ts.map +1 -0
  27. package/lib/models/secure-containers-model.js +15 -0
  28. package/lib/models/secure-file-item-input-model.d.ts +43 -0
  29. package/lib/models/secure-file-item-input-model.d.ts.map +1 -0
  30. package/lib/models/secure-file-item-input-model.js +15 -0
  31. package/lib/models/secure-file-model.d.ts +86 -0
  32. package/lib/models/secure-file-model.d.ts.map +1 -0
  33. package/lib/models/secure-file-model.js +15 -0
  34. package/lib/models/survey-form-element-types.d.ts +1 -0
  35. package/lib/models/survey-form-element-types.d.ts.map +1 -1
  36. package/lib/models/survey-form-element-types.js +2 -1
  37. package/lib/models/update-secure-container-command.d.ts +38 -0
  38. package/lib/models/update-secure-container-command.d.ts.map +1 -0
  39. package/lib/models/update-secure-container-command.js +15 -0
  40. package/package.json +1 -1
  41. package/src/.openapi-generator/FILES +9 -0
  42. package/src/api/hospitals-api.ts +185 -0
  43. package/src/api/secure-containers-api.ts +610 -0
  44. package/src/api.ts +1 -0
  45. package/src/models/hospital-contact-item-model.ts +87 -0
  46. package/src/models/hospital-contacts-model.ts +42 -0
  47. package/src/models/index.ts +8 -0
  48. package/src/models/secure-container-item-model.ts +48 -0
  49. package/src/models/secure-container-model.ts +57 -0
  50. package/src/models/secure-containers-model.ts +42 -0
  51. package/src/models/secure-file-item-input-model.ts +48 -0
  52. package/src/models/secure-file-model.ts +93 -0
  53. package/src/models/survey-form-element-types.ts +2 -1
  54. package/src/models/update-secure-container-command.ts +45 -0
@@ -0,0 +1,611 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
9
+ * Contact: hyounoosung@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.SecureContainersApi = exports.SecureContainersApiFactory = exports.SecureContainersApiFp = exports.SecureContainersApiAxiosParamCreator = 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
+ * SecureContainersApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var SecureContainersApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary Delete secure file
98
+ * @param {string} containerId
99
+ * @param {string} fileId
100
+ * @param {*} [options] Override http request option.
101
+ * @throws {RequiredError}
102
+ */
103
+ apiV2SecurecontainersContainerIdFilesFileIdDelete: function (containerId, fileId, 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 'containerId' is not null or undefined
111
+ (0, common_1.assertParamExists)('apiV2SecurecontainersContainerIdFilesFileIdDelete', 'containerId', containerId);
112
+ // verify required parameter 'fileId' is not null or undefined
113
+ (0, common_1.assertParamExists)('apiV2SecurecontainersContainerIdFilesFileIdDelete', 'fileId', fileId);
114
+ localVarPath = "/api/v2/securecontainers/{containerId}/files/{fileId}"
115
+ .replace("{".concat("containerId", "}"), encodeURIComponent(String(containerId)))
116
+ .replace("{".concat("fileId", "}"), encodeURIComponent(String(fileId)));
117
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
118
+ if (configuration) {
119
+ baseOptions = configuration.baseOptions;
120
+ }
121
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
122
+ localVarHeaderParameter = {};
123
+ localVarQueryParameter = {};
124
+ // authentication oauth2 required
125
+ // oauth required
126
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
127
+ case 1:
128
+ // authentication oauth2 required
129
+ // oauth required
130
+ _a.sent();
131
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
132
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
133
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
134
+ return [2 /*return*/, {
135
+ url: (0, common_1.toPathString)(localVarUrlObj),
136
+ options: localVarRequestOptions,
137
+ }];
138
+ }
139
+ });
140
+ });
141
+ },
142
+ /**
143
+ *
144
+ * @summary Upload files into secure file container
145
+ * @param {string} containerId
146
+ * @param {Array<File>} [files]
147
+ * @param {*} [options] Override http request option.
148
+ * @throws {RequiredError}
149
+ */
150
+ apiV2SecurecontainersContainerIdFilesPost: function (containerId, files, options) {
151
+ if (options === void 0) { options = {}; }
152
+ return __awaiter(_this, void 0, void 0, function () {
153
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, localVarFormParams, headersFromBaseOptions;
154
+ return __generator(this, function (_a) {
155
+ switch (_a.label) {
156
+ case 0:
157
+ // verify required parameter 'containerId' is not null or undefined
158
+ (0, common_1.assertParamExists)('apiV2SecurecontainersContainerIdFilesPost', 'containerId', containerId);
159
+ localVarPath = "/api/v2/securecontainers/{containerId}/files"
160
+ .replace("{".concat("containerId", "}"), encodeURIComponent(String(containerId)));
161
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
162
+ if (configuration) {
163
+ baseOptions = configuration.baseOptions;
164
+ }
165
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
166
+ localVarHeaderParameter = {};
167
+ localVarQueryParameter = {};
168
+ localVarFormParams = new ((configuration && configuration.formDataCtor) || FormData)();
169
+ // authentication oauth2 required
170
+ // oauth required
171
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
172
+ case 1:
173
+ // authentication oauth2 required
174
+ // oauth required
175
+ _a.sent();
176
+ if (files) {
177
+ files.forEach(function (element) {
178
+ localVarFormParams.append('files', element);
179
+ });
180
+ }
181
+ localVarHeaderParameter['Content-Type'] = 'multipart/form-data';
182
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
183
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
184
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
185
+ localVarRequestOptions.data = localVarFormParams;
186
+ return [2 /*return*/, {
187
+ url: (0, common_1.toPathString)(localVarUrlObj),
188
+ options: localVarRequestOptions,
189
+ }];
190
+ }
191
+ });
192
+ });
193
+ },
194
+ /**
195
+ *
196
+ * @summary Get secure file container
197
+ * @param {string} containerId
198
+ * @param {string} [languageCode]
199
+ * @param {*} [options] Override http request option.
200
+ * @throws {RequiredError}
201
+ */
202
+ apiV2SecurecontainersContainerIdGet: function (containerId, languageCode, options) {
203
+ if (options === void 0) { options = {}; }
204
+ return __awaiter(_this, void 0, void 0, function () {
205
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
206
+ return __generator(this, function (_a) {
207
+ switch (_a.label) {
208
+ case 0:
209
+ // verify required parameter 'containerId' is not null or undefined
210
+ (0, common_1.assertParamExists)('apiV2SecurecontainersContainerIdGet', 'containerId', containerId);
211
+ localVarPath = "/api/v2/securecontainers/{containerId}"
212
+ .replace("{".concat("containerId", "}"), encodeURIComponent(String(containerId)));
213
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
214
+ if (configuration) {
215
+ baseOptions = configuration.baseOptions;
216
+ }
217
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
218
+ localVarHeaderParameter = {};
219
+ localVarQueryParameter = {};
220
+ // authentication oauth2 required
221
+ // oauth required
222
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
223
+ case 1:
224
+ // authentication oauth2 required
225
+ // oauth required
226
+ _a.sent();
227
+ if (languageCode !== undefined) {
228
+ localVarQueryParameter['languageCode'] = languageCode;
229
+ }
230
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
231
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
232
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
233
+ return [2 /*return*/, {
234
+ url: (0, common_1.toPathString)(localVarUrlObj),
235
+ options: localVarRequestOptions,
236
+ }];
237
+ }
238
+ });
239
+ });
240
+ },
241
+ /**
242
+ *
243
+ * @summary Update secure file container
244
+ * @param {string} containerId
245
+ * @param {UpdateSecureContainerCommand} [updateSecureContainerCommand]
246
+ * @param {*} [options] Override http request option.
247
+ * @throws {RequiredError}
248
+ */
249
+ apiV2SecurecontainersContainerIdPut: function (containerId, updateSecureContainerCommand, options) {
250
+ if (options === void 0) { options = {}; }
251
+ return __awaiter(_this, void 0, void 0, function () {
252
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
253
+ return __generator(this, function (_a) {
254
+ switch (_a.label) {
255
+ case 0:
256
+ // verify required parameter 'containerId' is not null or undefined
257
+ (0, common_1.assertParamExists)('apiV2SecurecontainersContainerIdPut', 'containerId', containerId);
258
+ localVarPath = "/api/v2/securecontainers/{containerId}"
259
+ .replace("{".concat("containerId", "}"), encodeURIComponent(String(containerId)));
260
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
261
+ if (configuration) {
262
+ baseOptions = configuration.baseOptions;
263
+ }
264
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
265
+ localVarHeaderParameter = {};
266
+ localVarQueryParameter = {};
267
+ // authentication oauth2 required
268
+ // oauth required
269
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
270
+ case 1:
271
+ // authentication oauth2 required
272
+ // oauth required
273
+ _a.sent();
274
+ localVarHeaderParameter['Content-Type'] = 'application/json';
275
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
276
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
277
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
278
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSecureContainerCommand, localVarRequestOptions, configuration);
279
+ return [2 /*return*/, {
280
+ url: (0, common_1.toPathString)(localVarUrlObj),
281
+ options: localVarRequestOptions,
282
+ }];
283
+ }
284
+ });
285
+ });
286
+ },
287
+ /**
288
+ *
289
+ * @summary Get secure file containers
290
+ * @param {string} [hospitalId]
291
+ * @param {string} [languageCode]
292
+ * @param {number} [page]
293
+ * @param {number} [limit]
294
+ * @param {Date} [lastRetrieved]
295
+ * @param {*} [options] Override http request option.
296
+ * @throws {RequiredError}
297
+ */
298
+ apiV2SecurecontainersGet: function (hospitalId, languageCode, page, limit, lastRetrieved, options) {
299
+ if (options === void 0) { options = {}; }
300
+ return __awaiter(_this, void 0, void 0, function () {
301
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
302
+ return __generator(this, function (_a) {
303
+ switch (_a.label) {
304
+ case 0:
305
+ localVarPath = "/api/v2/securecontainers";
306
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
307
+ if (configuration) {
308
+ baseOptions = configuration.baseOptions;
309
+ }
310
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
311
+ localVarHeaderParameter = {};
312
+ localVarQueryParameter = {};
313
+ // authentication oauth2 required
314
+ // oauth required
315
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)];
316
+ case 1:
317
+ // authentication oauth2 required
318
+ // oauth required
319
+ _a.sent();
320
+ if (hospitalId !== undefined) {
321
+ localVarQueryParameter['HospitalId'] = hospitalId;
322
+ }
323
+ if (languageCode !== undefined) {
324
+ localVarQueryParameter['LanguageCode'] = languageCode;
325
+ }
326
+ if (page !== undefined) {
327
+ localVarQueryParameter['page'] = page;
328
+ }
329
+ if (limit !== undefined) {
330
+ localVarQueryParameter['limit'] = limit;
331
+ }
332
+ if (lastRetrieved !== undefined) {
333
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
334
+ lastRetrieved.toISOString() :
335
+ lastRetrieved;
336
+ }
337
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
338
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
339
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
340
+ return [2 /*return*/, {
341
+ url: (0, common_1.toPathString)(localVarUrlObj),
342
+ options: localVarRequestOptions,
343
+ }];
344
+ }
345
+ });
346
+ });
347
+ },
348
+ };
349
+ };
350
+ exports.SecureContainersApiAxiosParamCreator = SecureContainersApiAxiosParamCreator;
351
+ /**
352
+ * SecureContainersApi - functional programming interface
353
+ * @export
354
+ */
355
+ var SecureContainersApiFp = function (configuration) {
356
+ var localVarAxiosParamCreator = (0, exports.SecureContainersApiAxiosParamCreator)(configuration);
357
+ return {
358
+ /**
359
+ *
360
+ * @summary Delete secure file
361
+ * @param {string} containerId
362
+ * @param {string} fileId
363
+ * @param {*} [options] Override http request option.
364
+ * @throws {RequiredError}
365
+ */
366
+ apiV2SecurecontainersContainerIdFilesFileIdDelete: function (containerId, fileId, options) {
367
+ return __awaiter(this, void 0, void 0, function () {
368
+ var localVarAxiosArgs;
369
+ return __generator(this, function (_a) {
370
+ switch (_a.label) {
371
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SecurecontainersContainerIdFilesFileIdDelete(containerId, fileId, options)];
372
+ case 1:
373
+ localVarAxiosArgs = _a.sent();
374
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
375
+ }
376
+ });
377
+ });
378
+ },
379
+ /**
380
+ *
381
+ * @summary Upload files into secure file container
382
+ * @param {string} containerId
383
+ * @param {Array<File>} [files]
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ apiV2SecurecontainersContainerIdFilesPost: function (containerId, files, options) {
388
+ return __awaiter(this, void 0, void 0, function () {
389
+ var localVarAxiosArgs;
390
+ return __generator(this, function (_a) {
391
+ switch (_a.label) {
392
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SecurecontainersContainerIdFilesPost(containerId, files, options)];
393
+ case 1:
394
+ localVarAxiosArgs = _a.sent();
395
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
396
+ }
397
+ });
398
+ });
399
+ },
400
+ /**
401
+ *
402
+ * @summary Get secure file container
403
+ * @param {string} containerId
404
+ * @param {string} [languageCode]
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ apiV2SecurecontainersContainerIdGet: function (containerId, languageCode, options) {
409
+ return __awaiter(this, void 0, void 0, function () {
410
+ var localVarAxiosArgs;
411
+ return __generator(this, function (_a) {
412
+ switch (_a.label) {
413
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SecurecontainersContainerIdGet(containerId, languageCode, options)];
414
+ case 1:
415
+ localVarAxiosArgs = _a.sent();
416
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
417
+ }
418
+ });
419
+ });
420
+ },
421
+ /**
422
+ *
423
+ * @summary Update secure file container
424
+ * @param {string} containerId
425
+ * @param {UpdateSecureContainerCommand} [updateSecureContainerCommand]
426
+ * @param {*} [options] Override http request option.
427
+ * @throws {RequiredError}
428
+ */
429
+ apiV2SecurecontainersContainerIdPut: function (containerId, updateSecureContainerCommand, options) {
430
+ return __awaiter(this, void 0, void 0, function () {
431
+ var localVarAxiosArgs;
432
+ return __generator(this, function (_a) {
433
+ switch (_a.label) {
434
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SecurecontainersContainerIdPut(containerId, updateSecureContainerCommand, options)];
435
+ case 1:
436
+ localVarAxiosArgs = _a.sent();
437
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
438
+ }
439
+ });
440
+ });
441
+ },
442
+ /**
443
+ *
444
+ * @summary Get secure file containers
445
+ * @param {string} [hospitalId]
446
+ * @param {string} [languageCode]
447
+ * @param {number} [page]
448
+ * @param {number} [limit]
449
+ * @param {Date} [lastRetrieved]
450
+ * @param {*} [options] Override http request option.
451
+ * @throws {RequiredError}
452
+ */
453
+ apiV2SecurecontainersGet: function (hospitalId, languageCode, page, limit, lastRetrieved, options) {
454
+ return __awaiter(this, void 0, void 0, function () {
455
+ var localVarAxiosArgs;
456
+ return __generator(this, function (_a) {
457
+ switch (_a.label) {
458
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2SecurecontainersGet(hospitalId, languageCode, page, limit, lastRetrieved, options)];
459
+ case 1:
460
+ localVarAxiosArgs = _a.sent();
461
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
462
+ }
463
+ });
464
+ });
465
+ },
466
+ };
467
+ };
468
+ exports.SecureContainersApiFp = SecureContainersApiFp;
469
+ /**
470
+ * SecureContainersApi - factory interface
471
+ * @export
472
+ */
473
+ var SecureContainersApiFactory = function (configuration, basePath, axios) {
474
+ var localVarFp = (0, exports.SecureContainersApiFp)(configuration);
475
+ return {
476
+ /**
477
+ *
478
+ * @summary Delete secure file
479
+ * @param {string} containerId
480
+ * @param {string} fileId
481
+ * @param {*} [options] Override http request option.
482
+ * @throws {RequiredError}
483
+ */
484
+ apiV2SecurecontainersContainerIdFilesFileIdDelete: function (containerId, fileId, options) {
485
+ return localVarFp.apiV2SecurecontainersContainerIdFilesFileIdDelete(containerId, fileId, options).then(function (request) { return request(axios, basePath); });
486
+ },
487
+ /**
488
+ *
489
+ * @summary Upload files into secure file container
490
+ * @param {string} containerId
491
+ * @param {Array<File>} [files]
492
+ * @param {*} [options] Override http request option.
493
+ * @throws {RequiredError}
494
+ */
495
+ apiV2SecurecontainersContainerIdFilesPost: function (containerId, files, options) {
496
+ return localVarFp.apiV2SecurecontainersContainerIdFilesPost(containerId, files, options).then(function (request) { return request(axios, basePath); });
497
+ },
498
+ /**
499
+ *
500
+ * @summary Get secure file container
501
+ * @param {string} containerId
502
+ * @param {string} [languageCode]
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ */
506
+ apiV2SecurecontainersContainerIdGet: function (containerId, languageCode, options) {
507
+ return localVarFp.apiV2SecurecontainersContainerIdGet(containerId, languageCode, options).then(function (request) { return request(axios, basePath); });
508
+ },
509
+ /**
510
+ *
511
+ * @summary Update secure file container
512
+ * @param {string} containerId
513
+ * @param {UpdateSecureContainerCommand} [updateSecureContainerCommand]
514
+ * @param {*} [options] Override http request option.
515
+ * @throws {RequiredError}
516
+ */
517
+ apiV2SecurecontainersContainerIdPut: function (containerId, updateSecureContainerCommand, options) {
518
+ return localVarFp.apiV2SecurecontainersContainerIdPut(containerId, updateSecureContainerCommand, options).then(function (request) { return request(axios, basePath); });
519
+ },
520
+ /**
521
+ *
522
+ * @summary Get secure file containers
523
+ * @param {string} [hospitalId]
524
+ * @param {string} [languageCode]
525
+ * @param {number} [page]
526
+ * @param {number} [limit]
527
+ * @param {Date} [lastRetrieved]
528
+ * @param {*} [options] Override http request option.
529
+ * @throws {RequiredError}
530
+ */
531
+ apiV2SecurecontainersGet: function (hospitalId, languageCode, page, limit, lastRetrieved, options) {
532
+ return localVarFp.apiV2SecurecontainersGet(hospitalId, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
533
+ },
534
+ };
535
+ };
536
+ exports.SecureContainersApiFactory = SecureContainersApiFactory;
537
+ /**
538
+ * SecureContainersApi - object-oriented interface
539
+ * @export
540
+ * @class SecureContainersApi
541
+ * @extends {BaseAPI}
542
+ */
543
+ var SecureContainersApi = /** @class */ (function (_super) {
544
+ __extends(SecureContainersApi, _super);
545
+ function SecureContainersApi() {
546
+ return _super !== null && _super.apply(this, arguments) || this;
547
+ }
548
+ /**
549
+ *
550
+ * @summary Delete secure file
551
+ * @param {SecureContainersApiApiV2SecurecontainersContainerIdFilesFileIdDeleteRequest} requestParameters Request parameters.
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ * @memberof SecureContainersApi
555
+ */
556
+ SecureContainersApi.prototype.apiV2SecurecontainersContainerIdFilesFileIdDelete = function (requestParameters, options) {
557
+ var _this = this;
558
+ return (0, exports.SecureContainersApiFp)(this.configuration).apiV2SecurecontainersContainerIdFilesFileIdDelete(requestParameters.containerId, requestParameters.fileId, options).then(function (request) { return request(_this.axios, _this.basePath); });
559
+ };
560
+ /**
561
+ *
562
+ * @summary Upload files into secure file container
563
+ * @param {SecureContainersApiApiV2SecurecontainersContainerIdFilesPostRequest} requestParameters Request parameters.
564
+ * @param {*} [options] Override http request option.
565
+ * @throws {RequiredError}
566
+ * @memberof SecureContainersApi
567
+ */
568
+ SecureContainersApi.prototype.apiV2SecurecontainersContainerIdFilesPost = function (requestParameters, options) {
569
+ var _this = this;
570
+ return (0, exports.SecureContainersApiFp)(this.configuration).apiV2SecurecontainersContainerIdFilesPost(requestParameters.containerId, requestParameters.files, options).then(function (request) { return request(_this.axios, _this.basePath); });
571
+ };
572
+ /**
573
+ *
574
+ * @summary Get secure file container
575
+ * @param {SecureContainersApiApiV2SecurecontainersContainerIdGetRequest} requestParameters Request parameters.
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ * @memberof SecureContainersApi
579
+ */
580
+ SecureContainersApi.prototype.apiV2SecurecontainersContainerIdGet = function (requestParameters, options) {
581
+ var _this = this;
582
+ return (0, exports.SecureContainersApiFp)(this.configuration).apiV2SecurecontainersContainerIdGet(requestParameters.containerId, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
583
+ };
584
+ /**
585
+ *
586
+ * @summary Update secure file container
587
+ * @param {SecureContainersApiApiV2SecurecontainersContainerIdPutRequest} requestParameters Request parameters.
588
+ * @param {*} [options] Override http request option.
589
+ * @throws {RequiredError}
590
+ * @memberof SecureContainersApi
591
+ */
592
+ SecureContainersApi.prototype.apiV2SecurecontainersContainerIdPut = function (requestParameters, options) {
593
+ var _this = this;
594
+ return (0, exports.SecureContainersApiFp)(this.configuration).apiV2SecurecontainersContainerIdPut(requestParameters.containerId, requestParameters.updateSecureContainerCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
595
+ };
596
+ /**
597
+ *
598
+ * @summary Get secure file containers
599
+ * @param {SecureContainersApiApiV2SecurecontainersGetRequest} requestParameters Request parameters.
600
+ * @param {*} [options] Override http request option.
601
+ * @throws {RequiredError}
602
+ * @memberof SecureContainersApi
603
+ */
604
+ SecureContainersApi.prototype.apiV2SecurecontainersGet = function (requestParameters, options) {
605
+ var _this = this;
606
+ if (requestParameters === void 0) { requestParameters = {}; }
607
+ return (0, exports.SecureContainersApiFp)(this.configuration).apiV2SecurecontainersGet(requestParameters.hospitalId, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
+ };
609
+ return SecureContainersApi;
610
+ }(base_1.BaseAPI));
611
+ exports.SecureContainersApi = SecureContainersApi;
package/lib/api.d.ts CHANGED
@@ -39,6 +39,7 @@ export * from './api/origins-api';
39
39
  export * from './api/patients-api';
40
40
  export * from './api/plans-api';
41
41
  export * from './api/profiles-api';
42
+ export * from './api/secure-containers-api';
42
43
  export * from './api/service-reviews-api';
43
44
  export * from './api/services-api';
44
45
  export * from './api/services-categories-api';
package/lib/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,0BAA0B,CAAC;AACzC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,qBAAqB,CAAC;AACpC,cAAc,6CAA6C,CAAC;AAC5D,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,uBAAuB,CAAC;AACtC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,wBAAwB,CAAC;AACvC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gBAAgB,CAAC"}
package/lib/api.js CHANGED
@@ -57,6 +57,7 @@ __exportStar(require("./api/origins-api"), exports);
57
57
  __exportStar(require("./api/patients-api"), exports);
58
58
  __exportStar(require("./api/plans-api"), exports);
59
59
  __exportStar(require("./api/profiles-api"), exports);
60
+ __exportStar(require("./api/secure-containers-api"), exports);
60
61
  __exportStar(require("./api/service-reviews-api"), exports);
61
62
  __exportStar(require("./api/services-api"), exports);
62
63
  __exportStar(require("./api/services-categories-api"), exports);