ch-api-client-typescript2 4.9.4 → 4.9.6
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/appointments-api.d.ts +296 -0
- package/lib/api/appointments-api.d.ts.map +1 -0
- package/lib/api/appointments-api.js +703 -0
- package/lib/api/deals-api.d.ts +103 -0
- package/lib/api/deals-api.d.ts.map +1 -1
- package/lib/api/deals-api.js +233 -0
- package/lib/api/doctor-affiliations-api.d.ts +50 -0
- package/lib/api/doctor-affiliations-api.d.ts.map +1 -1
- package/lib/api/doctor-affiliations-api.js +113 -0
- package/lib/api/hospitals-api.d.ts +160 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +360 -0
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/appointment-change-log-model.d.ts +44 -0
- package/lib/models/appointment-change-log-model.d.ts.map +1 -0
- package/lib/models/appointment-change-log-model.js +15 -0
- package/lib/models/appointment-item-model.d.ts +305 -0
- package/lib/models/appointment-item-model.d.ts.map +1 -0
- package/lib/models/appointment-item-model.js +15 -0
- package/lib/models/appointment-model.d.ts +325 -0
- package/lib/models/appointment-model.d.ts.map +1 -0
- package/lib/models/appointment-model.js +15 -0
- package/lib/models/appointment-option-model.d.ts +49 -0
- package/lib/models/appointment-option-model.d.ts.map +1 -0
- package/lib/models/appointment-option-model.js +15 -0
- package/lib/models/appointment-status.d.ts +27 -0
- package/lib/models/appointment-status.d.ts.map +1 -0
- package/lib/models/appointment-status.js +30 -0
- package/lib/models/appointment-timetable-date-model.d.ts +58 -0
- package/lib/models/appointment-timetable-date-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-date-model.js +15 -0
- package/lib/models/appointment-timetable-status.d.ts +22 -0
- package/lib/models/appointment-timetable-status.d.ts.map +1 -0
- package/lib/models/appointment-timetable-status.js +25 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts +56 -0
- package/lib/models/appointment-timetable-time-slot-model.d.ts.map +1 -0
- package/lib/models/appointment-timetable-time-slot-model.js +15 -0
- package/lib/models/appointment-timetables-model.d.ts +44 -0
- package/lib/models/appointment-timetables-model.d.ts.map +1 -0
- package/lib/models/appointment-timetables-model.js +15 -0
- package/lib/models/appointment-type.d.ts +26 -0
- package/lib/models/appointment-type.d.ts.map +1 -0
- package/lib/models/appointment-type.js +29 -0
- package/lib/models/appointments-model.d.ts +33 -0
- package/lib/models/appointments-model.d.ts.map +1 -0
- package/lib/models/appointments-model.js +15 -0
- package/lib/models/create-appointment-command.d.ts +153 -0
- package/lib/models/create-appointment-command.d.ts.map +1 -0
- package/lib/models/create-appointment-command.js +15 -0
- package/lib/models/deal-item-model.d.ts +7 -0
- package/lib/models/deal-item-model.d.ts.map +1 -1
- package/lib/models/deal-model.d.ts +7 -0
- package/lib/models/deal-model.d.ts.map +1 -1
- package/lib/models/deal-package-item-model.d.ts +7 -0
- package/lib/models/deal-package-item-model.d.ts.map +1 -1
- package/lib/models/deal-package-model.d.ts +7 -0
- package/lib/models/deal-package-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-item-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-item-model.d.ts.map +1 -1
- package/lib/models/doctor-affiliation-model.d.ts +7 -0
- package/lib/models/doctor-affiliation-model.d.ts.map +1 -1
- package/lib/models/hospital-item-model.d.ts +7 -0
- package/lib/models/hospital-item-model.d.ts.map +1 -1
- package/lib/models/hospital-model.d.ts +7 -0
- package/lib/models/hospital-model.d.ts.map +1 -1
- package/lib/models/hospital-service-item-model.d.ts +7 -0
- package/lib/models/hospital-service-item-model.d.ts.map +1 -1
- package/lib/models/hospital-service-model.d.ts +7 -0
- package/lib/models/hospital-service-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-item-model.d.ts +7 -0
- package/lib/models/hospital-specialty-item-model.d.ts.map +1 -1
- package/lib/models/hospital-specialty-model.d.ts +7 -0
- package/lib/models/hospital-specialty-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +13 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +13 -0
- package/lib/models/notification-code.d.ts +9 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +10 -1
- package/lib/models/update-appointment-command.d.ts +98 -0
- package/lib/models/update-appointment-command.d.ts.map +1 -0
- package/lib/models/update-appointment-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +14 -0
- package/src/api/appointments-api.ts +594 -0
- package/src/api/deals-api.ts +215 -0
- package/src/api/doctor-affiliations-api.ts +105 -0
- package/src/api/hospitals-api.ts +332 -0
- package/src/api.ts +1 -0
- package/src/models/appointment-change-log-model.ts +51 -0
- package/src/models/appointment-item-model.ts +318 -0
- package/src/models/appointment-model.ts +342 -0
- package/src/models/appointment-option-model.ts +54 -0
- package/src/models/appointment-status.ts +36 -0
- package/src/models/appointment-timetable-date-model.ts +69 -0
- package/src/models/appointment-timetable-status.ts +31 -0
- package/src/models/appointment-timetable-time-slot-model.ts +63 -0
- package/src/models/appointment-timetables-model.ts +51 -0
- package/src/models/appointment-type.ts +35 -0
- package/src/models/appointments-model.ts +42 -0
- package/src/models/create-appointment-command.ts +162 -0
- package/src/models/deal-item-model.ts +9 -0
- package/src/models/deal-model.ts +9 -0
- package/src/models/deal-package-item-model.ts +9 -0
- package/src/models/deal-package-model.ts +9 -0
- package/src/models/doctor-affiliation-item-model.ts +9 -0
- package/src/models/doctor-affiliation-model.ts +9 -0
- package/src/models/hospital-item-model.ts +9 -0
- package/src/models/hospital-model.ts +9 -0
- package/src/models/hospital-service-item-model.ts +9 -0
- package/src/models/hospital-service-model.ts +9 -0
- package/src/models/hospital-specialty-item-model.ts +9 -0
- package/src/models/hospital-specialty-model.ts +9 -0
- package/src/models/index.ts +13 -0
- package/src/models/notification-code.ts +10 -1
- package/src/models/update-appointment-command.ts +105 -0
package/src/api/deals-api.ts
CHANGED
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { AppointmentTimetablesModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { DealModel } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { DealPackageModel } from '../models';
|
|
@@ -42,6 +44,64 @@ import { MarketingType } from '../models';
|
|
|
42
44
|
*/
|
|
43
45
|
export const DealsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
44
46
|
return {
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @summary Get DealAppointmentTimetables
|
|
50
|
+
* @param {string} dealId
|
|
51
|
+
* @param {number} [year]
|
|
52
|
+
* @param {number} [month]
|
|
53
|
+
* @param {string} [timeZone]
|
|
54
|
+
* @param {string} [appointmentIdExcluded]
|
|
55
|
+
* @param {*} [options] Override http request option.
|
|
56
|
+
* @throws {RequiredError}
|
|
57
|
+
*/
|
|
58
|
+
apiV2DealsDealIdAppointmenttimetablesGet: async (dealId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
59
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
60
|
+
assertParamExists('apiV2DealsDealIdAppointmenttimetablesGet', 'dealId', dealId)
|
|
61
|
+
const localVarPath = `/api/v2/deals/{dealId}/appointmenttimetables`
|
|
62
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)));
|
|
63
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
64
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
65
|
+
let baseOptions;
|
|
66
|
+
if (configuration) {
|
|
67
|
+
baseOptions = configuration.baseOptions;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
71
|
+
const localVarHeaderParameter = {} as any;
|
|
72
|
+
const localVarQueryParameter = {} as any;
|
|
73
|
+
|
|
74
|
+
// authentication oauth2 required
|
|
75
|
+
// oauth required
|
|
76
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
77
|
+
|
|
78
|
+
if (year !== undefined) {
|
|
79
|
+
localVarQueryParameter['Year'] = year;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (month !== undefined) {
|
|
83
|
+
localVarQueryParameter['Month'] = month;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (timeZone !== undefined) {
|
|
87
|
+
localVarQueryParameter['TimeZone'] = timeZone;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
if (appointmentIdExcluded !== undefined) {
|
|
91
|
+
localVarQueryParameter['AppointmentIdExcluded'] = appointmentIdExcluded;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
97
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
98
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
99
|
+
|
|
100
|
+
return {
|
|
101
|
+
url: toPathString(localVarUrlObj),
|
|
102
|
+
options: localVarRequestOptions,
|
|
103
|
+
};
|
|
104
|
+
},
|
|
45
105
|
/**
|
|
46
106
|
*
|
|
47
107
|
* @summary Get deal.
|
|
@@ -168,6 +228,68 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
168
228
|
|
|
169
229
|
|
|
170
230
|
|
|
231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
233
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
234
|
+
|
|
235
|
+
return {
|
|
236
|
+
url: toPathString(localVarUrlObj),
|
|
237
|
+
options: localVarRequestOptions,
|
|
238
|
+
};
|
|
239
|
+
},
|
|
240
|
+
/**
|
|
241
|
+
*
|
|
242
|
+
* @summary Get DealPackageAppointmentTimetables
|
|
243
|
+
* @param {string} dealId
|
|
244
|
+
* @param {string} packageId
|
|
245
|
+
* @param {number} [year]
|
|
246
|
+
* @param {number} [month]
|
|
247
|
+
* @param {string} [timeZone]
|
|
248
|
+
* @param {string} [appointmentIdExcluded]
|
|
249
|
+
* @param {*} [options] Override http request option.
|
|
250
|
+
* @throws {RequiredError}
|
|
251
|
+
*/
|
|
252
|
+
apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet: async (dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
253
|
+
// verify required parameter 'dealId' is not null or undefined
|
|
254
|
+
assertParamExists('apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'dealId', dealId)
|
|
255
|
+
// verify required parameter 'packageId' is not null or undefined
|
|
256
|
+
assertParamExists('apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet', 'packageId', packageId)
|
|
257
|
+
const localVarPath = `/api/v2/deals/{dealId}/packages/{packageId}/appointmenttimetables`
|
|
258
|
+
.replace(`{${"dealId"}}`, encodeURIComponent(String(dealId)))
|
|
259
|
+
.replace(`{${"packageId"}}`, encodeURIComponent(String(packageId)));
|
|
260
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
261
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
262
|
+
let baseOptions;
|
|
263
|
+
if (configuration) {
|
|
264
|
+
baseOptions = configuration.baseOptions;
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
268
|
+
const localVarHeaderParameter = {} as any;
|
|
269
|
+
const localVarQueryParameter = {} as any;
|
|
270
|
+
|
|
271
|
+
// authentication oauth2 required
|
|
272
|
+
// oauth required
|
|
273
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
274
|
+
|
|
275
|
+
if (year !== undefined) {
|
|
276
|
+
localVarQueryParameter['Year'] = year;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
if (month !== undefined) {
|
|
280
|
+
localVarQueryParameter['Month'] = month;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
if (timeZone !== undefined) {
|
|
284
|
+
localVarQueryParameter['TimeZone'] = timeZone;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (appointmentIdExcluded !== undefined) {
|
|
288
|
+
localVarQueryParameter['AppointmentIdExcluded'] = appointmentIdExcluded;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
171
293
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
172
294
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
173
295
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -657,6 +779,21 @@ export const DealsApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
657
779
|
export const DealsApiFp = function(configuration?: Configuration) {
|
|
658
780
|
const localVarAxiosParamCreator = DealsApiAxiosParamCreator(configuration)
|
|
659
781
|
return {
|
|
782
|
+
/**
|
|
783
|
+
*
|
|
784
|
+
* @summary Get DealAppointmentTimetables
|
|
785
|
+
* @param {string} dealId
|
|
786
|
+
* @param {number} [year]
|
|
787
|
+
* @param {number} [month]
|
|
788
|
+
* @param {string} [timeZone]
|
|
789
|
+
* @param {string} [appointmentIdExcluded]
|
|
790
|
+
* @param {*} [options] Override http request option.
|
|
791
|
+
* @throws {RequiredError}
|
|
792
|
+
*/
|
|
793
|
+
async apiV2DealsDealIdAppointmenttimetablesGet(dealId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
|
|
794
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdAppointmenttimetablesGet(dealId, year, month, timeZone, appointmentIdExcluded, options);
|
|
795
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
796
|
+
},
|
|
660
797
|
/**
|
|
661
798
|
*
|
|
662
799
|
* @summary Get deal.
|
|
@@ -692,6 +829,22 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
692
829
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options);
|
|
693
830
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
694
831
|
},
|
|
832
|
+
/**
|
|
833
|
+
*
|
|
834
|
+
* @summary Get DealPackageAppointmentTimetables
|
|
835
|
+
* @param {string} dealId
|
|
836
|
+
* @param {string} packageId
|
|
837
|
+
* @param {number} [year]
|
|
838
|
+
* @param {number} [month]
|
|
839
|
+
* @param {string} [timeZone]
|
|
840
|
+
* @param {string} [appointmentIdExcluded]
|
|
841
|
+
* @param {*} [options] Override http request option.
|
|
842
|
+
* @throws {RequiredError}
|
|
843
|
+
*/
|
|
844
|
+
async apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
|
|
845
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, year, month, timeZone, appointmentIdExcluded, options);
|
|
846
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
847
|
+
},
|
|
695
848
|
/**
|
|
696
849
|
*
|
|
697
850
|
* @summary Get DealPackage.
|
|
@@ -820,6 +973,20 @@ export const DealsApiFp = function(configuration?: Configuration) {
|
|
|
820
973
|
export const DealsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
821
974
|
const localVarFp = DealsApiFp(configuration)
|
|
822
975
|
return {
|
|
976
|
+
/**
|
|
977
|
+
*
|
|
978
|
+
* @summary Get DealAppointmentTimetables
|
|
979
|
+
* @param {string} dealId
|
|
980
|
+
* @param {number} [year]
|
|
981
|
+
* @param {number} [month]
|
|
982
|
+
* @param {string} [timeZone]
|
|
983
|
+
* @param {string} [appointmentIdExcluded]
|
|
984
|
+
* @param {*} [options] Override http request option.
|
|
985
|
+
* @throws {RequiredError}
|
|
986
|
+
*/
|
|
987
|
+
apiV2DealsDealIdAppointmenttimetablesGet(dealId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
|
|
988
|
+
return localVarFp.apiV2DealsDealIdAppointmenttimetablesGet(dealId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(axios, basePath));
|
|
989
|
+
},
|
|
823
990
|
/**
|
|
824
991
|
*
|
|
825
992
|
* @summary Get deal.
|
|
@@ -853,6 +1020,21 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
853
1020
|
apiV2DealsDealIdPackagesGet(dealId: string, relatedDealPackageId?: string, dealName?: string, name?: string, countryId?: string, hospitalId?: string, hospitalName?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<DealPackagesModel> {
|
|
854
1021
|
return localVarFp.apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
|
|
855
1022
|
},
|
|
1023
|
+
/**
|
|
1024
|
+
*
|
|
1025
|
+
* @summary Get DealPackageAppointmentTimetables
|
|
1026
|
+
* @param {string} dealId
|
|
1027
|
+
* @param {string} packageId
|
|
1028
|
+
* @param {number} [year]
|
|
1029
|
+
* @param {number} [month]
|
|
1030
|
+
* @param {string} [timeZone]
|
|
1031
|
+
* @param {string} [appointmentIdExcluded]
|
|
1032
|
+
* @param {*} [options] Override http request option.
|
|
1033
|
+
* @throws {RequiredError}
|
|
1034
|
+
*/
|
|
1035
|
+
apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
|
|
1036
|
+
return localVarFp.apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(axios, basePath));
|
|
1037
|
+
},
|
|
856
1038
|
/**
|
|
857
1039
|
*
|
|
858
1040
|
* @summary Get DealPackage.
|
|
@@ -975,6 +1157,22 @@ export const DealsApiFactory = function (configuration?: Configuration, basePath
|
|
|
975
1157
|
* @extends {BaseAPI}
|
|
976
1158
|
*/
|
|
977
1159
|
export class DealsApi extends BaseAPI {
|
|
1160
|
+
/**
|
|
1161
|
+
*
|
|
1162
|
+
* @summary Get DealAppointmentTimetables
|
|
1163
|
+
* @param {string} dealId
|
|
1164
|
+
* @param {number} [year]
|
|
1165
|
+
* @param {number} [month]
|
|
1166
|
+
* @param {string} [timeZone]
|
|
1167
|
+
* @param {string} [appointmentIdExcluded]
|
|
1168
|
+
* @param {*} [options] Override http request option.
|
|
1169
|
+
* @throws {RequiredError}
|
|
1170
|
+
* @memberof DealsApi
|
|
1171
|
+
*/
|
|
1172
|
+
public apiV2DealsDealIdAppointmenttimetablesGet(dealId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: AxiosRequestConfig) {
|
|
1173
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdAppointmenttimetablesGet(dealId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(this.axios, this.basePath));
|
|
1174
|
+
}
|
|
1175
|
+
|
|
978
1176
|
/**
|
|
979
1177
|
*
|
|
980
1178
|
* @summary Get deal.
|
|
@@ -1012,6 +1210,23 @@ export class DealsApi extends BaseAPI {
|
|
|
1012
1210
|
return DealsApiFp(this.configuration).apiV2DealsDealIdPackagesGet(dealId, relatedDealPackageId, dealName, name, countryId, hospitalId, hospitalName, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(this.axios, this.basePath));
|
|
1013
1211
|
}
|
|
1014
1212
|
|
|
1213
|
+
/**
|
|
1214
|
+
*
|
|
1215
|
+
* @summary Get DealPackageAppointmentTimetables
|
|
1216
|
+
* @param {string} dealId
|
|
1217
|
+
* @param {string} packageId
|
|
1218
|
+
* @param {number} [year]
|
|
1219
|
+
* @param {number} [month]
|
|
1220
|
+
* @param {string} [timeZone]
|
|
1221
|
+
* @param {string} [appointmentIdExcluded]
|
|
1222
|
+
* @param {*} [options] Override http request option.
|
|
1223
|
+
* @throws {RequiredError}
|
|
1224
|
+
* @memberof DealsApi
|
|
1225
|
+
*/
|
|
1226
|
+
public apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId: string, packageId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: AxiosRequestConfig) {
|
|
1227
|
+
return DealsApiFp(this.configuration).apiV2DealsDealIdPackagesPackageIdAppointmenttimetablesGet(dealId, packageId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(this.axios, this.basePath));
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1015
1230
|
/**
|
|
1016
1231
|
*
|
|
1017
1232
|
* @summary Get DealPackage.
|
|
@@ -21,6 +21,8 @@ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObj
|
|
|
21
21
|
// @ts-ignore
|
|
22
22
|
import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
|
|
23
23
|
// @ts-ignore
|
|
24
|
+
import { AppointmentTimetablesModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
24
26
|
import { DoctorAffiliationModel } from '../models';
|
|
25
27
|
// @ts-ignore
|
|
26
28
|
import { DoctorAffiliationsModel } from '../models';
|
|
@@ -38,6 +40,64 @@ import { MediasModel } from '../models';
|
|
|
38
40
|
*/
|
|
39
41
|
export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
40
42
|
return {
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @summary Get DoctorAffiliationAppointmentTimetables
|
|
46
|
+
* @param {string} doctorAffiliationId
|
|
47
|
+
* @param {number} [year]
|
|
48
|
+
* @param {number} [month]
|
|
49
|
+
* @param {string} [timeZone]
|
|
50
|
+
* @param {string} [appointmentIdExcluded]
|
|
51
|
+
* @param {*} [options] Override http request option.
|
|
52
|
+
* @throws {RequiredError}
|
|
53
|
+
*/
|
|
54
|
+
apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet: async (doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
55
|
+
// verify required parameter 'doctorAffiliationId' is not null or undefined
|
|
56
|
+
assertParamExists('apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet', 'doctorAffiliationId', doctorAffiliationId)
|
|
57
|
+
const localVarPath = `/api/v2/doctoraffiliations/{doctorAffiliationId}/appointmenttimetables`
|
|
58
|
+
.replace(`{${"doctorAffiliationId"}}`, encodeURIComponent(String(doctorAffiliationId)));
|
|
59
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
60
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
61
|
+
let baseOptions;
|
|
62
|
+
if (configuration) {
|
|
63
|
+
baseOptions = configuration.baseOptions;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
67
|
+
const localVarHeaderParameter = {} as any;
|
|
68
|
+
const localVarQueryParameter = {} as any;
|
|
69
|
+
|
|
70
|
+
// authentication oauth2 required
|
|
71
|
+
// oauth required
|
|
72
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_api", "IdentityServerApi"], configuration)
|
|
73
|
+
|
|
74
|
+
if (year !== undefined) {
|
|
75
|
+
localVarQueryParameter['Year'] = year;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (month !== undefined) {
|
|
79
|
+
localVarQueryParameter['Month'] = month;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
if (timeZone !== undefined) {
|
|
83
|
+
localVarQueryParameter['TimeZone'] = timeZone;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
if (appointmentIdExcluded !== undefined) {
|
|
87
|
+
localVarQueryParameter['AppointmentIdExcluded'] = appointmentIdExcluded;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
93
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
94
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
95
|
+
|
|
96
|
+
return {
|
|
97
|
+
url: toPathString(localVarUrlObj),
|
|
98
|
+
options: localVarRequestOptions,
|
|
99
|
+
};
|
|
100
|
+
},
|
|
41
101
|
/**
|
|
42
102
|
*
|
|
43
103
|
* @summary Get all DoctorAffiliationMedias.
|
|
@@ -327,6 +387,21 @@ export const DoctorAffiliationsApiAxiosParamCreator = function (configuration?:
|
|
|
327
387
|
export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
|
|
328
388
|
const localVarAxiosParamCreator = DoctorAffiliationsApiAxiosParamCreator(configuration)
|
|
329
389
|
return {
|
|
390
|
+
/**
|
|
391
|
+
*
|
|
392
|
+
* @summary Get DoctorAffiliationAppointmentTimetables
|
|
393
|
+
* @param {string} doctorAffiliationId
|
|
394
|
+
* @param {number} [year]
|
|
395
|
+
* @param {number} [month]
|
|
396
|
+
* @param {string} [timeZone]
|
|
397
|
+
* @param {string} [appointmentIdExcluded]
|
|
398
|
+
* @param {*} [options] Override http request option.
|
|
399
|
+
* @throws {RequiredError}
|
|
400
|
+
*/
|
|
401
|
+
async apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentTimetablesModel>> {
|
|
402
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId, year, month, timeZone, appointmentIdExcluded, options);
|
|
403
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
404
|
+
},
|
|
330
405
|
/**
|
|
331
406
|
*
|
|
332
407
|
* @summary Get all DoctorAffiliationMedias.
|
|
@@ -413,6 +488,20 @@ export const DoctorAffiliationsApiFp = function(configuration?: Configuration) {
|
|
|
413
488
|
export const DoctorAffiliationsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
414
489
|
const localVarFp = DoctorAffiliationsApiFp(configuration)
|
|
415
490
|
return {
|
|
491
|
+
/**
|
|
492
|
+
*
|
|
493
|
+
* @summary Get DoctorAffiliationAppointmentTimetables
|
|
494
|
+
* @param {string} doctorAffiliationId
|
|
495
|
+
* @param {number} [year]
|
|
496
|
+
* @param {number} [month]
|
|
497
|
+
* @param {string} [timeZone]
|
|
498
|
+
* @param {string} [appointmentIdExcluded]
|
|
499
|
+
* @param {*} [options] Override http request option.
|
|
500
|
+
* @throws {RequiredError}
|
|
501
|
+
*/
|
|
502
|
+
apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
|
|
503
|
+
return localVarFp.apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(axios, basePath));
|
|
504
|
+
},
|
|
416
505
|
/**
|
|
417
506
|
*
|
|
418
507
|
* @summary Get all DoctorAffiliationMedias.
|
|
@@ -494,6 +583,22 @@ export const DoctorAffiliationsApiFactory = function (configuration?: Configurat
|
|
|
494
583
|
* @extends {BaseAPI}
|
|
495
584
|
*/
|
|
496
585
|
export class DoctorAffiliationsApi extends BaseAPI {
|
|
586
|
+
/**
|
|
587
|
+
*
|
|
588
|
+
* @summary Get DoctorAffiliationAppointmentTimetables
|
|
589
|
+
* @param {string} doctorAffiliationId
|
|
590
|
+
* @param {number} [year]
|
|
591
|
+
* @param {number} [month]
|
|
592
|
+
* @param {string} [timeZone]
|
|
593
|
+
* @param {string} [appointmentIdExcluded]
|
|
594
|
+
* @param {*} [options] Override http request option.
|
|
595
|
+
* @throws {RequiredError}
|
|
596
|
+
* @memberof DoctorAffiliationsApi
|
|
597
|
+
*/
|
|
598
|
+
public apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: AxiosRequestConfig) {
|
|
599
|
+
return DoctorAffiliationsApiFp(this.configuration).apiV2DoctoraffiliationsDoctorAffiliationIdAppointmenttimetablesGet(doctorAffiliationId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(this.axios, this.basePath));
|
|
600
|
+
}
|
|
601
|
+
|
|
497
602
|
/**
|
|
498
603
|
*
|
|
499
604
|
* @summary Get all DoctorAffiliationMedias.
|