ch-admin-api-client-typescript 5.14.27 → 5.16.2
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/hospital-branches-api.d.ts +402 -0
- package/lib/api/hospital-branches-api.d.ts.map +1 -0
- package/lib/api/{bookings-api.js → hospital-branches-api.js} +190 -346
- package/lib/api/hospital-groups-api.d.ts +402 -0
- package/lib/api/hospital-groups-api.d.ts.map +1 -0
- package/lib/api/{hospitals-consultation-timetables-api.js → hospital-groups-api.js} +197 -200
- package/lib/api/hospitals-api.d.ts +30 -30
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +26 -26
- package/lib/api.d.ts +2 -4
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +2 -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/create-hospital-branch-command.d.ts +73 -0
- package/lib/models/create-hospital-branch-command.d.ts.map +1 -0
- package/lib/models/create-hospital-group-command.d.ts +67 -0
- package/lib/models/create-hospital-group-command.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/hospital-branch-item-model.d.ts +80 -0
- package/lib/models/hospital-branch-item-model.d.ts.map +1 -0
- package/lib/models/hospital-branch-model.d.ts +98 -0
- package/lib/models/hospital-branch-model.d.ts.map +1 -0
- package/lib/models/{bookings-model.d.ts → hospital-branches-model.d.ts} +8 -8
- package/lib/models/hospital-branches-model.d.ts.map +1 -0
- package/lib/models/hospital-group-item-model.d.ts +62 -0
- package/lib/models/hospital-group-item-model.d.ts.map +1 -0
- package/lib/models/hospital-group-model.d.ts +80 -0
- package/lib/models/hospital-group-model.d.ts.map +1 -0
- package/lib/models/{consultations-model.d.ts → hospital-groups-model.d.ts} +8 -8
- package/lib/models/hospital-groups-model.d.ts.map +1 -0
- package/lib/models/index.d.ts +12 -34
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +12 -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/lib/models/update-hospital-branch-command.d.ts +61 -0
- package/lib/models/update-hospital-branch-command.d.ts.map +1 -0
- package/lib/models/update-hospital-group-command.d.ts +67 -0
- package/lib/models/update-hospital-group-command.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +14 -38
- package/src/api/dash-board-api.ts +21 -139
- package/src/api/hospital-branches-api.ts +706 -0
- package/src/api/hospital-groups-api.ts +706 -0
- package/src/api/hospitals-api.ts +49 -49
- package/src/api.ts +2 -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/create-hospital-branch-command.ts +78 -0
- package/src/models/create-hospital-group-command.ts +72 -0
- package/src/models/dash-board-model.ts +9 -18
- package/src/models/hospital-branch-item-model.ts +87 -0
- package/src/models/hospital-branch-model.ts +105 -0
- package/src/models/{bookings-model.ts → hospital-branches-model.ts} +7 -7
- package/src/models/{hospital-consultation-timetable-override-model.ts → hospital-group-item-model.ts} +22 -16
- package/src/models/hospital-group-model.ts +87 -0
- package/src/models/{consultations-model.ts → hospital-groups-model.ts} +7 -7
- package/src/models/index.ts +12 -34
- package/src/models/update-doctor-affiliation-command.ts +0 -12
- package/src/models/update-hospital-branch-command.ts +66 -0
- package/src/models/update-hospital-group-command.ts +72 -0
- package/lib/api/bookings-api.d.ts +0 -558
- package/lib/api/bookings-api.d.ts.map +0 -1
- 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/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-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-timetables-command.d.ts +0 -39
- package/lib/models/batch-hospital-consultation-timetables-command.d.ts.map +0 -1
- 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/booking-change-log-model.d.ts +0 -44
- package/lib/models/booking-change-log-model.d.ts.map +0 -1
- package/lib/models/booking-duration-statistics-model.d.ts.map +0 -1
- 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-model.d.ts +0 -252
- package/lib/models/booking-model.d.ts.map +0 -1
- package/lib/models/booking-statistics-model.d.ts.map +0 -1
- 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.map +0 -1
- 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.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/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/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-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
- /package/lib/models/{batch-add-hospital-consultation-timetable-model.js → create-hospital-branch-command.js} +0 -0
- /package/lib/models/{batch-hospital-consultation-timetable-result-model.js → create-hospital-group-command.js} +0 -0
- /package/lib/models/{batch-hospital-consultation-timetables-command.js → hospital-branch-item-model.js} +0 -0
- /package/lib/models/{batch-update-hospital-consultation-timetable-model.js → hospital-branch-model.js} +0 -0
- /package/lib/models/{booking-change-log-model.js → hospital-branches-model.js} +0 -0
- /package/lib/models/{booking-duration-statistics-model.js → hospital-group-item-model.js} +0 -0
- /package/lib/models/{booking-item-model.js → hospital-group-model.js} +0 -0
- /package/lib/models/{booking-model.js → hospital-groups-model.js} +0 -0
- /package/lib/models/{booking-statistics-model.js → update-hospital-branch-command.js} +0 -0
- /package/lib/models/{bookings-model.js → update-hospital-group-command.js} +0 -0
|
@@ -1,535 +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.HospitalsConsultationTimetableOverridesApi = exports.HospitalsConsultationTimetableOverridesApiFactory = exports.HospitalsConsultationTimetableOverridesApiFp = exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = 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
|
-
* HospitalsConsultationTimetableOverridesApi - axios parameter creator
|
|
90
|
-
* @export
|
|
91
|
-
*/
|
|
92
|
-
var HospitalsConsultationTimetableOverridesApiAxiosParamCreator = function (configuration) {
|
|
93
|
-
var _this = this;
|
|
94
|
-
return {
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @summary Get consultation timetable override items
|
|
98
|
-
* @param {string} hospitalId
|
|
99
|
-
* @param {boolean} [includesPreviousItems]
|
|
100
|
-
* @param {Date} [startDate]
|
|
101
|
-
* @param {Date} [endDate]
|
|
102
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
103
|
-
* @param {number} [page]
|
|
104
|
-
* @param {number} [limit]
|
|
105
|
-
* @param {Date} [lastRetrieved]
|
|
106
|
-
* @param {*} [options] Override http request option.
|
|
107
|
-
* @throws {RequiredError}
|
|
108
|
-
*/
|
|
109
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
110
|
-
if (options === void 0) { options = {}; }
|
|
111
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
112
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
113
|
-
return __generator(this, function (_a) {
|
|
114
|
-
switch (_a.label) {
|
|
115
|
-
case 0:
|
|
116
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
117
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetableoverridesGet', 'hospitalId', hospitalId);
|
|
118
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides"
|
|
119
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
120
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
121
|
-
if (configuration) {
|
|
122
|
-
baseOptions = configuration.baseOptions;
|
|
123
|
-
}
|
|
124
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
125
|
-
localVarHeaderParameter = {};
|
|
126
|
-
localVarQueryParameter = {};
|
|
127
|
-
// authentication oauth2 required
|
|
128
|
-
// oauth required
|
|
129
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
130
|
-
case 1:
|
|
131
|
-
// authentication oauth2 required
|
|
132
|
-
// oauth required
|
|
133
|
-
_a.sent();
|
|
134
|
-
if (includesPreviousItems !== undefined) {
|
|
135
|
-
localVarQueryParameter['IncludesPreviousItems'] = includesPreviousItems;
|
|
136
|
-
}
|
|
137
|
-
if (startDate !== undefined) {
|
|
138
|
-
localVarQueryParameter['StartDate'] = (startDate instanceof Date) ?
|
|
139
|
-
startDate.toISOString() :
|
|
140
|
-
startDate;
|
|
141
|
-
}
|
|
142
|
-
if (endDate !== undefined) {
|
|
143
|
-
localVarQueryParameter['EndDate'] = (endDate instanceof Date) ?
|
|
144
|
-
endDate.toISOString() :
|
|
145
|
-
endDate;
|
|
146
|
-
}
|
|
147
|
-
if (dayOfWeek !== undefined) {
|
|
148
|
-
localVarQueryParameter['DayOfWeek'] = dayOfWeek;
|
|
149
|
-
}
|
|
150
|
-
if (page !== undefined) {
|
|
151
|
-
localVarQueryParameter['page'] = page;
|
|
152
|
-
}
|
|
153
|
-
if (limit !== undefined) {
|
|
154
|
-
localVarQueryParameter['limit'] = limit;
|
|
155
|
-
}
|
|
156
|
-
if (lastRetrieved !== undefined) {
|
|
157
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
158
|
-
lastRetrieved.toISOString() :
|
|
159
|
-
lastRetrieved;
|
|
160
|
-
}
|
|
161
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
162
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
163
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
164
|
-
return [2 /*return*/, {
|
|
165
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
166
|
-
options: localVarRequestOptions,
|
|
167
|
-
}];
|
|
168
|
-
}
|
|
169
|
-
});
|
|
170
|
-
});
|
|
171
|
-
},
|
|
172
|
-
/**
|
|
173
|
-
*
|
|
174
|
-
* @summary Get consultation timetable override item
|
|
175
|
-
* @param {string} hospitalId
|
|
176
|
-
* @param {string} id
|
|
177
|
-
* @param {*} [options] Override http request option.
|
|
178
|
-
* @throws {RequiredError}
|
|
179
|
-
*/
|
|
180
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet: function (hospitalId, id, options) {
|
|
181
|
-
if (options === void 0) { options = {}; }
|
|
182
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
183
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
184
|
-
return __generator(this, function (_a) {
|
|
185
|
-
switch (_a.label) {
|
|
186
|
-
case 0:
|
|
187
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
188
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet', 'hospitalId', hospitalId);
|
|
189
|
-
// verify required parameter 'id' is not null or undefined
|
|
190
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet', 'id', id);
|
|
191
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides/{id}"
|
|
192
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)))
|
|
193
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
194
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
195
|
-
if (configuration) {
|
|
196
|
-
baseOptions = configuration.baseOptions;
|
|
197
|
-
}
|
|
198
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
199
|
-
localVarHeaderParameter = {};
|
|
200
|
-
localVarQueryParameter = {};
|
|
201
|
-
// authentication oauth2 required
|
|
202
|
-
// oauth required
|
|
203
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
204
|
-
case 1:
|
|
205
|
-
// authentication oauth2 required
|
|
206
|
-
// oauth required
|
|
207
|
-
_a.sent();
|
|
208
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
209
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
210
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
211
|
-
return [2 /*return*/, {
|
|
212
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
213
|
-
options: localVarRequestOptions,
|
|
214
|
-
}];
|
|
215
|
-
}
|
|
216
|
-
});
|
|
217
|
-
});
|
|
218
|
-
},
|
|
219
|
-
/**
|
|
220
|
-
*
|
|
221
|
-
* @summary Delete timetable item
|
|
222
|
-
* @param {string} hospitalId
|
|
223
|
-
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
224
|
-
* @param {*} [options] Override http request option.
|
|
225
|
-
* @throws {RequiredError}
|
|
226
|
-
*/
|
|
227
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch: function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
228
|
-
if (options === void 0) { options = {}; }
|
|
229
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
230
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
231
|
-
return __generator(this, function (_a) {
|
|
232
|
-
switch (_a.label) {
|
|
233
|
-
case 0:
|
|
234
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
235
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch', 'hospitalId', hospitalId);
|
|
236
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides"
|
|
237
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
238
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
239
|
-
if (configuration) {
|
|
240
|
-
baseOptions = configuration.baseOptions;
|
|
241
|
-
}
|
|
242
|
-
localVarRequestOptions = __assign(__assign({ method: 'PATCH' }, baseOptions), options);
|
|
243
|
-
localVarHeaderParameter = {};
|
|
244
|
-
localVarQueryParameter = {};
|
|
245
|
-
// authentication oauth2 required
|
|
246
|
-
// oauth required
|
|
247
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
248
|
-
case 1:
|
|
249
|
-
// authentication oauth2 required
|
|
250
|
-
// oauth required
|
|
251
|
-
_a.sent();
|
|
252
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
253
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
254
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
255
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
256
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(deleteHospitalConsultationTimetableOverrideCommand, localVarRequestOptions, configuration);
|
|
257
|
-
return [2 /*return*/, {
|
|
258
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
259
|
-
options: localVarRequestOptions,
|
|
260
|
-
}];
|
|
261
|
-
}
|
|
262
|
-
});
|
|
263
|
-
});
|
|
264
|
-
},
|
|
265
|
-
/**
|
|
266
|
-
*
|
|
267
|
-
* @summary Save timetable itme
|
|
268
|
-
* @param {string} hospitalId
|
|
269
|
-
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
270
|
-
* @param {*} [options] Override http request option.
|
|
271
|
-
* @throws {RequiredError}
|
|
272
|
-
*/
|
|
273
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
274
|
-
if (options === void 0) { options = {}; }
|
|
275
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
276
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
277
|
-
return __generator(this, function (_a) {
|
|
278
|
-
switch (_a.label) {
|
|
279
|
-
case 0:
|
|
280
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
281
|
-
(0, common_1.assertParamExists)('apiV1HospitalsHospitalIdConsultationtimetableoverridesPost', 'hospitalId', hospitalId);
|
|
282
|
-
localVarPath = "/api/v1/hospitals/{hospitalId}/consultationtimetableoverrides"
|
|
283
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
284
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
285
|
-
if (configuration) {
|
|
286
|
-
baseOptions = configuration.baseOptions;
|
|
287
|
-
}
|
|
288
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
289
|
-
localVarHeaderParameter = {};
|
|
290
|
-
localVarQueryParameter = {};
|
|
291
|
-
// authentication oauth2 required
|
|
292
|
-
// oauth required
|
|
293
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
|
|
294
|
-
case 1:
|
|
295
|
-
// authentication oauth2 required
|
|
296
|
-
// oauth required
|
|
297
|
-
_a.sent();
|
|
298
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
299
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
300
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
301
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
302
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(saveHospitalConsultationTimetableOverridesCommand, localVarRequestOptions, configuration);
|
|
303
|
-
return [2 /*return*/, {
|
|
304
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
305
|
-
options: localVarRequestOptions,
|
|
306
|
-
}];
|
|
307
|
-
}
|
|
308
|
-
});
|
|
309
|
-
});
|
|
310
|
-
},
|
|
311
|
-
};
|
|
312
|
-
};
|
|
313
|
-
exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator = HospitalsConsultationTimetableOverridesApiAxiosParamCreator;
|
|
314
|
-
/**
|
|
315
|
-
* HospitalsConsultationTimetableOverridesApi - functional programming interface
|
|
316
|
-
* @export
|
|
317
|
-
*/
|
|
318
|
-
var HospitalsConsultationTimetableOverridesApiFp = function (configuration) {
|
|
319
|
-
var localVarAxiosParamCreator = (0, exports.HospitalsConsultationTimetableOverridesApiAxiosParamCreator)(configuration);
|
|
320
|
-
return {
|
|
321
|
-
/**
|
|
322
|
-
*
|
|
323
|
-
* @summary Get consultation timetable override items
|
|
324
|
-
* @param {string} hospitalId
|
|
325
|
-
* @param {boolean} [includesPreviousItems]
|
|
326
|
-
* @param {Date} [startDate]
|
|
327
|
-
* @param {Date} [endDate]
|
|
328
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
329
|
-
* @param {number} [page]
|
|
330
|
-
* @param {number} [limit]
|
|
331
|
-
* @param {Date} [lastRetrieved]
|
|
332
|
-
* @param {*} [options] Override http request option.
|
|
333
|
-
* @throws {RequiredError}
|
|
334
|
-
*/
|
|
335
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
336
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
337
|
-
var localVarAxiosArgs;
|
|
338
|
-
return __generator(this, function (_a) {
|
|
339
|
-
switch (_a.label) {
|
|
340
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options)];
|
|
341
|
-
case 1:
|
|
342
|
-
localVarAxiosArgs = _a.sent();
|
|
343
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
344
|
-
}
|
|
345
|
-
});
|
|
346
|
-
});
|
|
347
|
-
},
|
|
348
|
-
/**
|
|
349
|
-
*
|
|
350
|
-
* @summary Get consultation timetable override item
|
|
351
|
-
* @param {string} hospitalId
|
|
352
|
-
* @param {string} id
|
|
353
|
-
* @param {*} [options] Override http request option.
|
|
354
|
-
* @throws {RequiredError}
|
|
355
|
-
*/
|
|
356
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet: function (hospitalId, id, options) {
|
|
357
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
358
|
-
var localVarAxiosArgs;
|
|
359
|
-
return __generator(this, function (_a) {
|
|
360
|
-
switch (_a.label) {
|
|
361
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId, id, options)];
|
|
362
|
-
case 1:
|
|
363
|
-
localVarAxiosArgs = _a.sent();
|
|
364
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
365
|
-
}
|
|
366
|
-
});
|
|
367
|
-
});
|
|
368
|
-
},
|
|
369
|
-
/**
|
|
370
|
-
*
|
|
371
|
-
* @summary Delete timetable item
|
|
372
|
-
* @param {string} hospitalId
|
|
373
|
-
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
374
|
-
* @param {*} [options] Override http request option.
|
|
375
|
-
* @throws {RequiredError}
|
|
376
|
-
*/
|
|
377
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch: function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
378
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
379
|
-
var localVarAxiosArgs;
|
|
380
|
-
return __generator(this, function (_a) {
|
|
381
|
-
switch (_a.label) {
|
|
382
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch(hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options)];
|
|
383
|
-
case 1:
|
|
384
|
-
localVarAxiosArgs = _a.sent();
|
|
385
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
386
|
-
}
|
|
387
|
-
});
|
|
388
|
-
});
|
|
389
|
-
},
|
|
390
|
-
/**
|
|
391
|
-
*
|
|
392
|
-
* @summary Save timetable itme
|
|
393
|
-
* @param {string} hospitalId
|
|
394
|
-
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
395
|
-
* @param {*} [options] Override http request option.
|
|
396
|
-
* @throws {RequiredError}
|
|
397
|
-
*/
|
|
398
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
399
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
400
|
-
var localVarAxiosArgs;
|
|
401
|
-
return __generator(this, function (_a) {
|
|
402
|
-
switch (_a.label) {
|
|
403
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, saveHospitalConsultationTimetableOverridesCommand, options)];
|
|
404
|
-
case 1:
|
|
405
|
-
localVarAxiosArgs = _a.sent();
|
|
406
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
407
|
-
}
|
|
408
|
-
});
|
|
409
|
-
});
|
|
410
|
-
},
|
|
411
|
-
};
|
|
412
|
-
};
|
|
413
|
-
exports.HospitalsConsultationTimetableOverridesApiFp = HospitalsConsultationTimetableOverridesApiFp;
|
|
414
|
-
/**
|
|
415
|
-
* HospitalsConsultationTimetableOverridesApi - factory interface
|
|
416
|
-
* @export
|
|
417
|
-
*/
|
|
418
|
-
var HospitalsConsultationTimetableOverridesApiFactory = function (configuration, basePath, axios) {
|
|
419
|
-
var localVarFp = (0, exports.HospitalsConsultationTimetableOverridesApiFp)(configuration);
|
|
420
|
-
return {
|
|
421
|
-
/**
|
|
422
|
-
*
|
|
423
|
-
* @summary Get consultation timetable override items
|
|
424
|
-
* @param {string} hospitalId
|
|
425
|
-
* @param {boolean} [includesPreviousItems]
|
|
426
|
-
* @param {Date} [startDate]
|
|
427
|
-
* @param {Date} [endDate]
|
|
428
|
-
* @param {DayOfWeek} [dayOfWeek]
|
|
429
|
-
* @param {number} [page]
|
|
430
|
-
* @param {number} [limit]
|
|
431
|
-
* @param {Date} [lastRetrieved]
|
|
432
|
-
* @param {*} [options] Override http request option.
|
|
433
|
-
* @throws {RequiredError}
|
|
434
|
-
*/
|
|
435
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesGet: function (hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options) {
|
|
436
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(hospitalId, includesPreviousItems, startDate, endDate, dayOfWeek, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
437
|
-
},
|
|
438
|
-
/**
|
|
439
|
-
*
|
|
440
|
-
* @summary Get consultation timetable override item
|
|
441
|
-
* @param {string} hospitalId
|
|
442
|
-
* @param {string} id
|
|
443
|
-
* @param {*} [options] Override http request option.
|
|
444
|
-
* @throws {RequiredError}
|
|
445
|
-
*/
|
|
446
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet: function (hospitalId, id, options) {
|
|
447
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(hospitalId, id, options).then(function (request) { return request(axios, basePath); });
|
|
448
|
-
},
|
|
449
|
-
/**
|
|
450
|
-
*
|
|
451
|
-
* @summary Delete timetable item
|
|
452
|
-
* @param {string} hospitalId
|
|
453
|
-
* @param {DeleteHospitalConsultationTimetableOverrideCommand} [deleteHospitalConsultationTimetableOverrideCommand]
|
|
454
|
-
* @param {*} [options] Override http request option.
|
|
455
|
-
* @throws {RequiredError}
|
|
456
|
-
*/
|
|
457
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch: function (hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options) {
|
|
458
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch(hospitalId, deleteHospitalConsultationTimetableOverrideCommand, options).then(function (request) { return request(axios, basePath); });
|
|
459
|
-
},
|
|
460
|
-
/**
|
|
461
|
-
*
|
|
462
|
-
* @summary Save timetable itme
|
|
463
|
-
* @param {string} hospitalId
|
|
464
|
-
* @param {SaveHospitalConsultationTimetableOverridesCommand} [saveHospitalConsultationTimetableOverridesCommand]
|
|
465
|
-
* @param {*} [options] Override http request option.
|
|
466
|
-
* @throws {RequiredError}
|
|
467
|
-
*/
|
|
468
|
-
apiV1HospitalsHospitalIdConsultationtimetableoverridesPost: function (hospitalId, saveHospitalConsultationTimetableOverridesCommand, options) {
|
|
469
|
-
return localVarFp.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(hospitalId, saveHospitalConsultationTimetableOverridesCommand, options).then(function (request) { return request(axios, basePath); });
|
|
470
|
-
},
|
|
471
|
-
};
|
|
472
|
-
};
|
|
473
|
-
exports.HospitalsConsultationTimetableOverridesApiFactory = HospitalsConsultationTimetableOverridesApiFactory;
|
|
474
|
-
/**
|
|
475
|
-
* HospitalsConsultationTimetableOverridesApi - object-oriented interface
|
|
476
|
-
* @export
|
|
477
|
-
* @class HospitalsConsultationTimetableOverridesApi
|
|
478
|
-
* @extends {BaseAPI}
|
|
479
|
-
*/
|
|
480
|
-
var HospitalsConsultationTimetableOverridesApi = /** @class */ (function (_super) {
|
|
481
|
-
__extends(HospitalsConsultationTimetableOverridesApi, _super);
|
|
482
|
-
function HospitalsConsultationTimetableOverridesApi() {
|
|
483
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
484
|
-
}
|
|
485
|
-
/**
|
|
486
|
-
*
|
|
487
|
-
* @summary Get consultation timetable override items
|
|
488
|
-
* @param {HospitalsConsultationTimetableOverridesApiApiV1HospitalsHospitalIdConsultationtimetableoverridesGetRequest} requestParameters Request parameters.
|
|
489
|
-
* @param {*} [options] Override http request option.
|
|
490
|
-
* @throws {RequiredError}
|
|
491
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
492
|
-
*/
|
|
493
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesGet = function (requestParameters, options) {
|
|
494
|
-
var _this = this;
|
|
495
|
-
return (0, exports.HospitalsConsultationTimetableOverridesApiFp)(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesGet(requestParameters.hospitalId, requestParameters.includesPreviousItems, requestParameters.startDate, requestParameters.endDate, requestParameters.dayOfWeek, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
496
|
-
};
|
|
497
|
-
/**
|
|
498
|
-
*
|
|
499
|
-
* @summary Get consultation timetable override item
|
|
500
|
-
* @param {HospitalsConsultationTimetableOverridesApiApiV1HospitalsHospitalIdConsultationtimetableoverridesIdGetRequest} requestParameters Request parameters.
|
|
501
|
-
* @param {*} [options] Override http request option.
|
|
502
|
-
* @throws {RequiredError}
|
|
503
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
504
|
-
*/
|
|
505
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet = function (requestParameters, options) {
|
|
506
|
-
var _this = this;
|
|
507
|
-
return (0, exports.HospitalsConsultationTimetableOverridesApiFp)(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesIdGet(requestParameters.hospitalId, requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
508
|
-
};
|
|
509
|
-
/**
|
|
510
|
-
*
|
|
511
|
-
* @summary Delete timetable item
|
|
512
|
-
* @param {HospitalsConsultationTimetableOverridesApiApiV1HospitalsHospitalIdConsultationtimetableoverridesPatchRequest} requestParameters Request parameters.
|
|
513
|
-
* @param {*} [options] Override http request option.
|
|
514
|
-
* @throws {RequiredError}
|
|
515
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
516
|
-
*/
|
|
517
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch = function (requestParameters, options) {
|
|
518
|
-
var _this = this;
|
|
519
|
-
return (0, exports.HospitalsConsultationTimetableOverridesApiFp)(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesPatch(requestParameters.hospitalId, requestParameters.deleteHospitalConsultationTimetableOverrideCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
520
|
-
};
|
|
521
|
-
/**
|
|
522
|
-
*
|
|
523
|
-
* @summary Save timetable itme
|
|
524
|
-
* @param {HospitalsConsultationTimetableOverridesApiApiV1HospitalsHospitalIdConsultationtimetableoverridesPostRequest} requestParameters Request parameters.
|
|
525
|
-
* @param {*} [options] Override http request option.
|
|
526
|
-
* @throws {RequiredError}
|
|
527
|
-
* @memberof HospitalsConsultationTimetableOverridesApi
|
|
528
|
-
*/
|
|
529
|
-
HospitalsConsultationTimetableOverridesApi.prototype.apiV1HospitalsHospitalIdConsultationtimetableoverridesPost = function (requestParameters, options) {
|
|
530
|
-
var _this = this;
|
|
531
|
-
return (0, exports.HospitalsConsultationTimetableOverridesApiFp)(this.configuration).apiV1HospitalsHospitalIdConsultationtimetableoverridesPost(requestParameters.hospitalId, requestParameters.saveHospitalConsultationTimetableOverridesCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
532
|
-
};
|
|
533
|
-
return HospitalsConsultationTimetableOverridesApi;
|
|
534
|
-
}(base_1.BaseAPI));
|
|
535
|
-
exports.HospitalsConsultationTimetableOverridesApi = HospitalsConsultationTimetableOverridesApi;
|