ch-admin-api-client-typescript 5.19.10 → 5.19.15
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 +55 -0
- package/lib/api/appointments-api.d.ts.map +1 -1
- package/lib/api/appointments-api.js +91 -0
- package/lib/api/hospitals-api.d.ts +434 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +612 -0
- package/lib/models/appointment-model.d.ts +14 -0
- package/lib/models/appointment-model.d.ts.map +1 -1
- package/lib/models/appointment-refund-bank-transfer-model.d.ts +43 -0
- package/lib/models/appointment-refund-bank-transfer-model.d.ts.map +1 -0
- package/lib/models/appointment-refund-bank-transfer-model.js +15 -0
- package/lib/models/appointment-refund-upi-model.d.ts +31 -0
- package/lib/models/appointment-refund-upi-model.d.ts.map +1 -0
- package/lib/models/appointment-refund-upi-model.js +15 -0
- package/lib/models/appointment-status.d.ts +1 -0
- package/lib/models/appointment-status.d.ts.map +1 -1
- package/lib/models/appointment-status.js +1 -0
- package/lib/models/create-notice-command.d.ts +62 -0
- package/lib/models/create-notice-command.d.ts.map +1 -0
- package/lib/models/create-notice-command.js +15 -0
- package/lib/models/index.d.ts +8 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +8 -0
- package/lib/models/notice-item-model.d.ts +87 -0
- package/lib/models/notice-item-model.d.ts.map +1 -0
- package/lib/models/notice-item-model.js +15 -0
- package/lib/models/notice-model.d.ts +105 -0
- package/lib/models/notice-model.d.ts.map +1 -0
- package/lib/models/notice-model.js +15 -0
- package/lib/models/notice-status.d.ts +23 -0
- package/lib/models/notice-status.d.ts.map +1 -0
- package/lib/models/notice-status.js +26 -0
- package/lib/models/notices-model.d.ts +33 -0
- package/lib/models/notices-model.d.ts.map +1 -0
- package/lib/models/notices-model.js +15 -0
- package/lib/models/update-notice-command.d.ts +62 -0
- package/lib/models/update-notice-command.d.ts.map +1 -0
- package/lib/models/update-notice-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +8 -0
- package/src/api/appointments-api.ts +101 -0
- package/src/api/hospitals-api.ts +758 -4
- package/src/models/appointment-model.ts +18 -0
- package/src/models/appointment-refund-bank-transfer-model.ts +48 -0
- package/src/models/appointment-refund-upi-model.ts +36 -0
- package/src/models/appointment-status.ts +1 -0
- package/src/models/create-notice-command.ts +69 -0
- package/src/models/index.ts +8 -0
- package/src/models/notice-item-model.ts +96 -0
- package/src/models/notice-model.ts +114 -0
- package/src/models/notice-status.ts +32 -0
- package/src/models/notices-model.ts +42 -0
- package/src/models/update-notice-command.ts +69 -0
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { NoticeItemModel } from './notice-item-model';
|
|
13
|
+
import { PagedListMetaData } from './paged-list-meta-data';
|
|
14
|
+
/**
|
|
15
|
+
*
|
|
16
|
+
* @export
|
|
17
|
+
* @interface NoticesModel
|
|
18
|
+
*/
|
|
19
|
+
export interface NoticesModel {
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @type {Array<NoticeItemModel>}
|
|
23
|
+
* @memberof NoticesModel
|
|
24
|
+
*/
|
|
25
|
+
'items'?: Array<NoticeItemModel> | null;
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {PagedListMetaData}
|
|
29
|
+
* @memberof NoticesModel
|
|
30
|
+
*/
|
|
31
|
+
'metaData'?: PagedListMetaData;
|
|
32
|
+
}
|
|
33
|
+
//# sourceMappingURL=notices-model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"notices-model.d.ts","sourceRoot":"","sources":["../../src/models/notices-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAGtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D;;;;GAIG;AACH,MAAM,WAAW,YAAY;IACzB;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;IACxC;;;;OAIG;IACH,UAAU,CAAC,EAAE,iBAAiB,CAAC;CAClC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Swagger UI - Cloud Hospital Admin Api-INT
|
|
3
|
+
* Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1
|
|
6
|
+
* Contact: hyounoosung@icloudhospital.com
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
import { NoticeStatus } from './notice-status';
|
|
13
|
+
/**
|
|
14
|
+
*
|
|
15
|
+
* @export
|
|
16
|
+
* @interface UpdateNoticeCommand
|
|
17
|
+
*/
|
|
18
|
+
export interface UpdateNoticeCommand {
|
|
19
|
+
/**
|
|
20
|
+
*
|
|
21
|
+
* @type {NoticeStatus}
|
|
22
|
+
* @memberof UpdateNoticeCommand
|
|
23
|
+
*/
|
|
24
|
+
'status'?: NoticeStatus;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {number}
|
|
28
|
+
* @memberof UpdateNoticeCommand
|
|
29
|
+
*/
|
|
30
|
+
'order'?: number | null;
|
|
31
|
+
/**
|
|
32
|
+
*
|
|
33
|
+
* @type {string}
|
|
34
|
+
* @memberof UpdateNoticeCommand
|
|
35
|
+
*/
|
|
36
|
+
'languageCode'?: string | null;
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof UpdateNoticeCommand
|
|
41
|
+
*/
|
|
42
|
+
'name'?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof UpdateNoticeCommand
|
|
47
|
+
*/
|
|
48
|
+
'url'?: string | null;
|
|
49
|
+
/**
|
|
50
|
+
*
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof UpdateNoticeCommand
|
|
53
|
+
*/
|
|
54
|
+
'description'?: string | null;
|
|
55
|
+
/**
|
|
56
|
+
*
|
|
57
|
+
* @type {boolean}
|
|
58
|
+
* @memberof UpdateNoticeCommand
|
|
59
|
+
*/
|
|
60
|
+
'isConfirmed'?: boolean;
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=update-notice-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update-notice-command.d.ts","sourceRoot":"","sources":["../../src/models/update-notice-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C;;;;GAIG;AACH,MAAM,WAAW,mBAAmB;IAChC;;;;OAIG;IACH,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB;;;;OAIG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B;;;;OAIG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
package/package.json
CHANGED
|
@@ -81,6 +81,8 @@ models/appointment-item-model.ts
|
|
|
81
81
|
models/appointment-model.ts
|
|
82
82
|
models/appointment-option-input-model.ts
|
|
83
83
|
models/appointment-option-model.ts
|
|
84
|
+
models/appointment-refund-bank-transfer-model.ts
|
|
85
|
+
models/appointment-refund-upi-model.ts
|
|
84
86
|
models/appointment-statistics-model.ts
|
|
85
87
|
models/appointment-status.ts
|
|
86
88
|
models/appointment-timetable-model.ts
|
|
@@ -198,6 +200,7 @@ models/create-language-command.ts
|
|
|
198
200
|
models/create-manager-affiliation-command.ts
|
|
199
201
|
models/create-manager-command.ts
|
|
200
202
|
models/create-media-command.ts
|
|
203
|
+
models/create-notice-command.ts
|
|
201
204
|
models/create-patient-command.ts
|
|
202
205
|
models/create-plan-command.ts
|
|
203
206
|
models/create-plan-hospital-command.ts
|
|
@@ -366,6 +369,10 @@ models/message-type.ts
|
|
|
366
369
|
models/messages.ts
|
|
367
370
|
models/metadata.ts
|
|
368
371
|
models/model-file.ts
|
|
372
|
+
models/notice-item-model.ts
|
|
373
|
+
models/notice-model.ts
|
|
374
|
+
models/notice-status.ts
|
|
375
|
+
models/notices-model.ts
|
|
369
376
|
models/notification-code.ts
|
|
370
377
|
models/notification-model.ts
|
|
371
378
|
models/notifications-model.ts
|
|
@@ -548,6 +555,7 @@ models/update-landing-command.ts
|
|
|
548
555
|
models/update-language-command.ts
|
|
549
556
|
models/update-manager-command.ts
|
|
550
557
|
models/update-media-command.ts
|
|
558
|
+
models/update-notice-command.ts
|
|
551
559
|
models/update-number-command.ts
|
|
552
560
|
models/update-patient-command.ts
|
|
553
561
|
models/update-plan-command.ts
|
|
@@ -31,6 +31,8 @@ import { AppointmentsModel } from '../models';
|
|
|
31
31
|
// @ts-ignore
|
|
32
32
|
import { ApproveAppointmentCommand } from '../models';
|
|
33
33
|
// @ts-ignore
|
|
34
|
+
import { ProblemDetails } from '../models';
|
|
35
|
+
// @ts-ignore
|
|
34
36
|
import { RejectAppointmentCommand } from '../models';
|
|
35
37
|
// @ts-ignore
|
|
36
38
|
import { SortingOrder } from '../models';
|
|
@@ -235,6 +237,49 @@ export const AppointmentsApiAxiosParamCreator = function (configuration?: Config
|
|
|
235
237
|
|
|
236
238
|
|
|
237
239
|
|
|
240
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
241
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
242
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
243
|
+
|
|
244
|
+
return {
|
|
245
|
+
url: toPathString(localVarUrlObj),
|
|
246
|
+
options: localVarRequestOptions,
|
|
247
|
+
};
|
|
248
|
+
},
|
|
249
|
+
/**
|
|
250
|
+
*
|
|
251
|
+
* @summary Set appointment as refunded
|
|
252
|
+
* @param {string} appointmentId
|
|
253
|
+
* @param {string} [languageCode]
|
|
254
|
+
* @param {*} [options] Override http request option.
|
|
255
|
+
* @throws {RequiredError}
|
|
256
|
+
*/
|
|
257
|
+
apiV1AppointmentsAppointmentIdRefundPost: async (appointmentId: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
258
|
+
// verify required parameter 'appointmentId' is not null or undefined
|
|
259
|
+
assertParamExists('apiV1AppointmentsAppointmentIdRefundPost', 'appointmentId', appointmentId)
|
|
260
|
+
const localVarPath = `/api/v1/appointments/{appointmentId}/refund`
|
|
261
|
+
.replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
|
|
262
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
263
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
264
|
+
let baseOptions;
|
|
265
|
+
if (configuration) {
|
|
266
|
+
baseOptions = configuration.baseOptions;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
270
|
+
const localVarHeaderParameter = {} as any;
|
|
271
|
+
const localVarQueryParameter = {} as any;
|
|
272
|
+
|
|
273
|
+
// authentication oauth2 required
|
|
274
|
+
// oauth required
|
|
275
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
|
|
276
|
+
|
|
277
|
+
if (languageCode !== undefined) {
|
|
278
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
|
|
238
283
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
239
284
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
240
285
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -520,6 +565,18 @@ export const AppointmentsApiFp = function(configuration?: Configuration) {
|
|
|
520
565
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdPaidPost(appointmentId, options);
|
|
521
566
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
522
567
|
},
|
|
568
|
+
/**
|
|
569
|
+
*
|
|
570
|
+
* @summary Set appointment as refunded
|
|
571
|
+
* @param {string} appointmentId
|
|
572
|
+
* @param {string} [languageCode]
|
|
573
|
+
* @param {*} [options] Override http request option.
|
|
574
|
+
* @throws {RequiredError}
|
|
575
|
+
*/
|
|
576
|
+
async apiV1AppointmentsAppointmentIdRefundPost(appointmentId: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
|
|
577
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdRefundPost(appointmentId, languageCode, options);
|
|
578
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
579
|
+
},
|
|
523
580
|
/**
|
|
524
581
|
*
|
|
525
582
|
* @summary Reject appointment
|
|
@@ -631,6 +688,17 @@ export const AppointmentsApiFactory = function (configuration?: Configuration, b
|
|
|
631
688
|
apiV1AppointmentsAppointmentIdPaidPost(appointmentId: string, options?: any): AxiosPromise<string> {
|
|
632
689
|
return localVarFp.apiV1AppointmentsAppointmentIdPaidPost(appointmentId, options).then((request) => request(axios, basePath));
|
|
633
690
|
},
|
|
691
|
+
/**
|
|
692
|
+
*
|
|
693
|
+
* @summary Set appointment as refunded
|
|
694
|
+
* @param {string} appointmentId
|
|
695
|
+
* @param {string} [languageCode]
|
|
696
|
+
* @param {*} [options] Override http request option.
|
|
697
|
+
* @throws {RequiredError}
|
|
698
|
+
*/
|
|
699
|
+
apiV1AppointmentsAppointmentIdRefundPost(appointmentId: string, languageCode?: string, options?: any): AxiosPromise<AppointmentModel> {
|
|
700
|
+
return localVarFp.apiV1AppointmentsAppointmentIdRefundPost(appointmentId, languageCode, options).then((request) => request(axios, basePath));
|
|
701
|
+
},
|
|
634
702
|
/**
|
|
635
703
|
*
|
|
636
704
|
* @summary Reject appointment
|
|
@@ -771,6 +839,27 @@ export interface AppointmentsApiApiV1AppointmentsAppointmentIdPaidPostRequest {
|
|
|
771
839
|
readonly appointmentId: string
|
|
772
840
|
}
|
|
773
841
|
|
|
842
|
+
/**
|
|
843
|
+
* Request parameters for apiV1AppointmentsAppointmentIdRefundPost operation in AppointmentsApi.
|
|
844
|
+
* @export
|
|
845
|
+
* @interface AppointmentsApiApiV1AppointmentsAppointmentIdRefundPostRequest
|
|
846
|
+
*/
|
|
847
|
+
export interface AppointmentsApiApiV1AppointmentsAppointmentIdRefundPostRequest {
|
|
848
|
+
/**
|
|
849
|
+
*
|
|
850
|
+
* @type {string}
|
|
851
|
+
* @memberof AppointmentsApiApiV1AppointmentsAppointmentIdRefundPost
|
|
852
|
+
*/
|
|
853
|
+
readonly appointmentId: string
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
*
|
|
857
|
+
* @type {string}
|
|
858
|
+
* @memberof AppointmentsApiApiV1AppointmentsAppointmentIdRefundPost
|
|
859
|
+
*/
|
|
860
|
+
readonly languageCode?: string
|
|
861
|
+
}
|
|
862
|
+
|
|
774
863
|
/**
|
|
775
864
|
* Request parameters for apiV1AppointmentsAppointmentIdRejectPut operation in AppointmentsApi.
|
|
776
865
|
* @export
|
|
@@ -1048,6 +1137,18 @@ export class AppointmentsApi extends BaseAPI {
|
|
|
1048
1137
|
return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdPaidPost(requestParameters.appointmentId, options).then((request) => request(this.axios, this.basePath));
|
|
1049
1138
|
}
|
|
1050
1139
|
|
|
1140
|
+
/**
|
|
1141
|
+
*
|
|
1142
|
+
* @summary Set appointment as refunded
|
|
1143
|
+
* @param {AppointmentsApiApiV1AppointmentsAppointmentIdRefundPostRequest} requestParameters Request parameters.
|
|
1144
|
+
* @param {*} [options] Override http request option.
|
|
1145
|
+
* @throws {RequiredError}
|
|
1146
|
+
* @memberof AppointmentsApi
|
|
1147
|
+
*/
|
|
1148
|
+
public apiV1AppointmentsAppointmentIdRefundPost(requestParameters: AppointmentsApiApiV1AppointmentsAppointmentIdRefundPostRequest, options?: AxiosRequestConfig) {
|
|
1149
|
+
return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdRefundPost(requestParameters.appointmentId, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1051
1152
|
/**
|
|
1052
1153
|
*
|
|
1053
1154
|
* @summary Reject appointment
|