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