ch-api-client-typescript2 5.36.73 → 5.36.80
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/hospitals-api.d.ts +74 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +93 -0
- package/lib/models/doctor-item-model.d.ts +3 -2
- package/lib/models/doctor-item-model.d.ts.map +1 -1
- package/lib/models/doctor-model.d.ts +9 -8
- package/lib/models/doctor-model.d.ts.map +1 -1
- package/lib/models/index.d.ts +1 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +1 -0
- package/lib/models/notification-code.d.ts +1 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +2 -1
- package/lib/models/patient-model.d.ts +9 -8
- package/lib/models/patient-model.d.ts.map +1 -1
- package/lib/models/survey-form-affiliation-model.d.ts +7 -0
- package/lib/models/survey-form-affiliation-model.d.ts.map +1 -1
- package/lib/models/user-model.d.ts +9 -8
- package/lib/models/user-model.d.ts.map +1 -1
- package/lib/models/user-type.d.ts +26 -0
- package/lib/models/user-type.d.ts.map +1 -0
- package/lib/models/user-type.js +29 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +1 -0
- package/src/api/hospitals-api.ts +124 -0
- package/src/models/doctor-item-model.ts +5 -2
- package/src/models/doctor-model.ts +11 -8
- package/src/models/index.ts +1 -0
- package/src/models/notification-code.ts +2 -1
- package/src/models/patient-model.ts +11 -8
- package/src/models/survey-form-affiliation-model.ts +9 -0
- package/src/models/user-model.ts +11 -8
- package/src/models/user-type.ts +35 -0
|
@@ -50,6 +50,7 @@ export declare const NotificationCode: {
|
|
|
50
50
|
readonly AppointmentRescheduleRequestApproved: "AppointmentRescheduleRequestApproved";
|
|
51
51
|
readonly AppointmentReady: "AppointmentReady";
|
|
52
52
|
readonly HandoffRequested: "HandoffRequested";
|
|
53
|
+
readonly SessionDeleted: "SessionDeleted";
|
|
53
54
|
};
|
|
54
55
|
export type NotificationCode = typeof NotificationCode[keyof typeof NotificationCode];
|
|
55
56
|
//# sourceMappingURL=notification-code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification-code.d.ts","sourceRoot":"","sources":["../../src/models/notification-code.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,gBAAgB
|
|
1
|
+
{"version":3,"file":"notification-code.d.ts","sourceRoot":"","sources":["../../src/models/notification-code.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCnB,CAAC;AAEX,MAAM,MAAM,gBAAgB,GAAG,OAAO,gBAAgB,CAAC,MAAM,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -54,5 +54,6 @@ exports.NotificationCode = {
|
|
|
54
54
|
AppointmentRescheduleRequested: 'AppointmentRescheduleRequested',
|
|
55
55
|
AppointmentRescheduleRequestApproved: 'AppointmentRescheduleRequestApproved',
|
|
56
56
|
AppointmentReady: 'AppointmentReady',
|
|
57
|
-
HandoffRequested: 'HandoffRequested'
|
|
57
|
+
HandoffRequested: 'HandoffRequested',
|
|
58
|
+
SessionDeleted: 'SessionDeleted'
|
|
58
59
|
};
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AuditableEntity } from './auditable-entity';
|
|
13
13
|
import { Gender } from './gender';
|
|
14
14
|
import { UserLanguageModel } from './user-language-model';
|
|
15
|
+
import { UserType } from './user-type';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -50,10 +51,10 @@ export interface PatientModel {
|
|
|
50
51
|
'fullName'?: string | null;
|
|
51
52
|
/**
|
|
52
53
|
*
|
|
53
|
-
* @type {
|
|
54
|
+
* @type {UserType}
|
|
54
55
|
* @memberof PatientModel
|
|
55
56
|
*/
|
|
56
|
-
'userType'?:
|
|
57
|
+
'userType'?: UserType;
|
|
57
58
|
/**
|
|
58
59
|
*
|
|
59
60
|
* @type {string}
|
|
@@ -72,6 +73,12 @@ export interface PatientModel {
|
|
|
72
73
|
* @memberof PatientModel
|
|
73
74
|
*/
|
|
74
75
|
'timeZone'?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Gender}
|
|
79
|
+
* @memberof PatientModel
|
|
80
|
+
*/
|
|
81
|
+
'gender'?: Gender;
|
|
75
82
|
/**
|
|
76
83
|
*
|
|
77
84
|
* @type {AuditableEntity}
|
|
@@ -90,12 +97,6 @@ export interface PatientModel {
|
|
|
90
97
|
* @memberof PatientModel
|
|
91
98
|
*/
|
|
92
99
|
'email'?: string | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {Gender}
|
|
96
|
-
* @memberof PatientModel
|
|
97
|
-
*/
|
|
98
|
-
'gender'?: Gender;
|
|
99
100
|
/**
|
|
100
101
|
*
|
|
101
102
|
* @type {Date}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"patient-model.d.ts","sourceRoot":"","sources":["../../src/models/patient-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"patient-model.d.ts","sourceRoot":"","sources":["../../src/models/patient-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG1D,OAAO,EAAE,QAAQ,E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11
|
*/
|
|
12
|
+
import { LocationModel } from './location-model';
|
|
12
13
|
/**
|
|
13
14
|
*
|
|
14
15
|
* @export
|
|
@@ -39,6 +40,12 @@ export interface SurveyFormAffiliationModel {
|
|
|
39
40
|
* @memberof SurveyFormAffiliationModel
|
|
40
41
|
*/
|
|
41
42
|
'hospitalLogo'?: string | null;
|
|
43
|
+
/**
|
|
44
|
+
*
|
|
45
|
+
* @type {LocationModel}
|
|
46
|
+
* @memberof SurveyFormAffiliationModel
|
|
47
|
+
*/
|
|
48
|
+
'hospitalLocation'?: LocationModel;
|
|
42
49
|
/**
|
|
43
50
|
*
|
|
44
51
|
* @type {string}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"survey-form-affiliation-model.d.ts","sourceRoot":"","sources":["../../src/models/survey-form-affiliation-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;
|
|
1
|
+
{"version":3,"file":"survey-form-affiliation-model.d.ts","sourceRoot":"","sources":["../../src/models/survey-form-affiliation-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD;;;;GAIG;AACH,MAAM,WAAW,0BAA0B;IACvC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,aAAa,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAClC"}
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
import { AuditableEntity } from './auditable-entity';
|
|
13
13
|
import { Gender } from './gender';
|
|
14
14
|
import { UserLanguageModel } from './user-language-model';
|
|
15
|
+
import { UserType } from './user-type';
|
|
15
16
|
/**
|
|
16
17
|
*
|
|
17
18
|
* @export
|
|
@@ -50,10 +51,10 @@ export interface UserModel {
|
|
|
50
51
|
'fullName'?: string | null;
|
|
51
52
|
/**
|
|
52
53
|
*
|
|
53
|
-
* @type {
|
|
54
|
+
* @type {UserType}
|
|
54
55
|
* @memberof UserModel
|
|
55
56
|
*/
|
|
56
|
-
'userType'?:
|
|
57
|
+
'userType'?: UserType;
|
|
57
58
|
/**
|
|
58
59
|
*
|
|
59
60
|
* @type {string}
|
|
@@ -72,6 +73,12 @@ export interface UserModel {
|
|
|
72
73
|
* @memberof UserModel
|
|
73
74
|
*/
|
|
74
75
|
'timeZone'?: string | null;
|
|
76
|
+
/**
|
|
77
|
+
*
|
|
78
|
+
* @type {Gender}
|
|
79
|
+
* @memberof UserModel
|
|
80
|
+
*/
|
|
81
|
+
'gender'?: Gender;
|
|
75
82
|
/**
|
|
76
83
|
*
|
|
77
84
|
* @type {AuditableEntity}
|
|
@@ -90,12 +97,6 @@ export interface UserModel {
|
|
|
90
97
|
* @memberof UserModel
|
|
91
98
|
*/
|
|
92
99
|
'email'?: string | null;
|
|
93
|
-
/**
|
|
94
|
-
*
|
|
95
|
-
* @type {Gender}
|
|
96
|
-
* @memberof UserModel
|
|
97
|
-
*/
|
|
98
|
-
'gender'?: Gender;
|
|
99
100
|
/**
|
|
100
101
|
*
|
|
101
102
|
* @type {Date}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user-model.d.ts","sourceRoot":"","sources":["../../src/models/user-model.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAGlC,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"user-model.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;;OAIG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,iBAAiB,CAAC,GAAG,IAAI,CAAC;CACjD"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* CloudHospital Api
|
|
3
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 2
|
|
6
|
+
* Contact: developer@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
|
+
/**
|
|
13
|
+
*
|
|
14
|
+
* @export
|
|
15
|
+
* @enum {string}
|
|
16
|
+
*/
|
|
17
|
+
export declare const UserType: {
|
|
18
|
+
readonly Patient: "Patient";
|
|
19
|
+
readonly Partner: "Partner";
|
|
20
|
+
readonly Doctor: "Doctor";
|
|
21
|
+
readonly Manager: "Manager";
|
|
22
|
+
readonly ChManager: "CHManager";
|
|
23
|
+
readonly ChAdmin: "CHAdmin";
|
|
24
|
+
};
|
|
25
|
+
export type UserType = typeof UserType[keyof typeof UserType];
|
|
26
|
+
//# sourceMappingURL=user-type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user-type.d.ts","sourceRoot":"","sources":["../../src/models/user-type.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,QAAQ;;;;;;;CAOX,CAAC;AAEX,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,MAAM,OAAO,QAAQ,CAAC,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
/**
|
|
5
|
+
* CloudHospital Api
|
|
6
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
+
*
|
|
8
|
+
* The version of the OpenAPI document: 2
|
|
9
|
+
* Contact: developer@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 });
|
|
16
|
+
exports.UserType = void 0;
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
exports.UserType = {
|
|
23
|
+
Patient: 'Patient',
|
|
24
|
+
Partner: 'Partner',
|
|
25
|
+
Doctor: 'Doctor',
|
|
26
|
+
Manager: 'Manager',
|
|
27
|
+
ChManager: 'CHManager',
|
|
28
|
+
ChAdmin: 'CHAdmin'
|
|
29
|
+
};
|
package/package.json
CHANGED
package/src/api/hospitals-api.ts
CHANGED
|
@@ -125,6 +125,8 @@ import { SnsHandleModel } from '../models';
|
|
|
125
125
|
// @ts-ignore
|
|
126
126
|
import { SnsType } from '../models';
|
|
127
127
|
// @ts-ignore
|
|
128
|
+
import { SurveyFormModel } from '../models';
|
|
129
|
+
// @ts-ignore
|
|
128
130
|
import { WebAppMetadataModel } from '../models';
|
|
129
131
|
// @ts-ignore
|
|
130
132
|
import { WorkingDayModel } from '../models';
|
|
@@ -3196,6 +3198,54 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3196
3198
|
|
|
3197
3199
|
|
|
3198
3200
|
|
|
3201
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3202
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3203
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3204
|
+
|
|
3205
|
+
return {
|
|
3206
|
+
url: toPathString(localVarUrlObj),
|
|
3207
|
+
options: localVarRequestOptions,
|
|
3208
|
+
};
|
|
3209
|
+
},
|
|
3210
|
+
/**
|
|
3211
|
+
*
|
|
3212
|
+
* @summary Get surveyForm by surveyFormId
|
|
3213
|
+
* @param {string} hospitalId
|
|
3214
|
+
* @param {string} surveyFormId
|
|
3215
|
+
* @param {string} [languageCode]
|
|
3216
|
+
* @param {string} [previewSecret]
|
|
3217
|
+
* @param {*} [options] Override http request option.
|
|
3218
|
+
* @throws {RequiredError}
|
|
3219
|
+
*/
|
|
3220
|
+
apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet: async (hospitalId: string, surveyFormId: string, languageCode?: string, previewSecret?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3221
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
3222
|
+
assertParamExists('apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet', 'hospitalId', hospitalId)
|
|
3223
|
+
// verify required parameter 'surveyFormId' is not null or undefined
|
|
3224
|
+
assertParamExists('apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet', 'surveyFormId', surveyFormId)
|
|
3225
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/surveyforms/{surveyFormId}`
|
|
3226
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
|
|
3227
|
+
.replace(`{${"surveyFormId"}}`, encodeURIComponent(String(surveyFormId)));
|
|
3228
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3229
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3230
|
+
let baseOptions;
|
|
3231
|
+
if (configuration) {
|
|
3232
|
+
baseOptions = configuration.baseOptions;
|
|
3233
|
+
}
|
|
3234
|
+
|
|
3235
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3236
|
+
const localVarHeaderParameter = {} as any;
|
|
3237
|
+
const localVarQueryParameter = {} as any;
|
|
3238
|
+
|
|
3239
|
+
if (languageCode !== undefined) {
|
|
3240
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
3241
|
+
}
|
|
3242
|
+
|
|
3243
|
+
if (previewSecret !== undefined) {
|
|
3244
|
+
localVarQueryParameter['previewSecret'] = previewSecret;
|
|
3245
|
+
}
|
|
3246
|
+
|
|
3247
|
+
|
|
3248
|
+
|
|
3199
3249
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3200
3250
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3201
3251
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4502,6 +4552,20 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
4502
4552
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options);
|
|
4503
4553
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4504
4554
|
},
|
|
4555
|
+
/**
|
|
4556
|
+
*
|
|
4557
|
+
* @summary Get surveyForm by surveyFormId
|
|
4558
|
+
* @param {string} hospitalId
|
|
4559
|
+
* @param {string} surveyFormId
|
|
4560
|
+
* @param {string} [languageCode]
|
|
4561
|
+
* @param {string} [previewSecret]
|
|
4562
|
+
* @param {*} [options] Override http request option.
|
|
4563
|
+
* @throws {RequiredError}
|
|
4564
|
+
*/
|
|
4565
|
+
async apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet(hospitalId: string, surveyFormId: string, languageCode?: string, previewSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SurveyFormModel>> {
|
|
4566
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet(hospitalId, surveyFormId, languageCode, previewSecret, options);
|
|
4567
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4568
|
+
},
|
|
4505
4569
|
/**
|
|
4506
4570
|
*
|
|
4507
4571
|
* @summary Get All HospitalTags
|
|
@@ -5408,6 +5472,19 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
5408
5472
|
apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId: string, specialtyId: string, serviceId: string, mediaId: string, options?: any): AxiosPromise<MediaModel> {
|
|
5409
5473
|
return localVarFp.apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(hospitalId, specialtyId, serviceId, mediaId, options).then((request) => request(axios, basePath));
|
|
5410
5474
|
},
|
|
5475
|
+
/**
|
|
5476
|
+
*
|
|
5477
|
+
* @summary Get surveyForm by surveyFormId
|
|
5478
|
+
* @param {string} hospitalId
|
|
5479
|
+
* @param {string} surveyFormId
|
|
5480
|
+
* @param {string} [languageCode]
|
|
5481
|
+
* @param {string} [previewSecret]
|
|
5482
|
+
* @param {*} [options] Override http request option.
|
|
5483
|
+
* @throws {RequiredError}
|
|
5484
|
+
*/
|
|
5485
|
+
apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet(hospitalId: string, surveyFormId: string, languageCode?: string, previewSecret?: string, options?: any): AxiosPromise<SurveyFormModel> {
|
|
5486
|
+
return localVarFp.apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet(hospitalId, surveyFormId, languageCode, previewSecret, options).then((request) => request(axios, basePath));
|
|
5487
|
+
},
|
|
5411
5488
|
/**
|
|
5412
5489
|
*
|
|
5413
5490
|
* @summary Get All HospitalTags
|
|
@@ -8026,6 +8103,41 @@ export interface HospitalsApiApiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServi
|
|
|
8026
8103
|
readonly mediaId: string
|
|
8027
8104
|
}
|
|
8028
8105
|
|
|
8106
|
+
/**
|
|
8107
|
+
* Request parameters for apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet operation in HospitalsApi.
|
|
8108
|
+
* @export
|
|
8109
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGetRequest
|
|
8110
|
+
*/
|
|
8111
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGetRequest {
|
|
8112
|
+
/**
|
|
8113
|
+
*
|
|
8114
|
+
* @type {string}
|
|
8115
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet
|
|
8116
|
+
*/
|
|
8117
|
+
readonly hospitalId: string
|
|
8118
|
+
|
|
8119
|
+
/**
|
|
8120
|
+
*
|
|
8121
|
+
* @type {string}
|
|
8122
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet
|
|
8123
|
+
*/
|
|
8124
|
+
readonly surveyFormId: string
|
|
8125
|
+
|
|
8126
|
+
/**
|
|
8127
|
+
*
|
|
8128
|
+
* @type {string}
|
|
8129
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet
|
|
8130
|
+
*/
|
|
8131
|
+
readonly languageCode?: string
|
|
8132
|
+
|
|
8133
|
+
/**
|
|
8134
|
+
*
|
|
8135
|
+
* @type {string}
|
|
8136
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet
|
|
8137
|
+
*/
|
|
8138
|
+
readonly previewSecret?: string
|
|
8139
|
+
}
|
|
8140
|
+
|
|
8029
8141
|
/**
|
|
8030
8142
|
* Request parameters for apiV2HospitalsHospitalIdTagsGet operation in HospitalsApi.
|
|
8031
8143
|
* @export
|
|
@@ -9020,6 +9132,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
9020
9132
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSpecialtiesSpecialtyIdServicesServiceIdMediasMediaIdGet(requestParameters.hospitalId, requestParameters.specialtyId, requestParameters.serviceId, requestParameters.mediaId, options).then((request) => request(this.axios, this.basePath));
|
|
9021
9133
|
}
|
|
9022
9134
|
|
|
9135
|
+
/**
|
|
9136
|
+
*
|
|
9137
|
+
* @summary Get surveyForm by surveyFormId
|
|
9138
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGetRequest} requestParameters Request parameters.
|
|
9139
|
+
* @param {*} [options] Override http request option.
|
|
9140
|
+
* @throws {RequiredError}
|
|
9141
|
+
* @memberof HospitalsApi
|
|
9142
|
+
*/
|
|
9143
|
+
public apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdSurveyformsSurveyFormIdGetRequest, options?: AxiosRequestConfig) {
|
|
9144
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdSurveyformsSurveyFormIdGet(requestParameters.hospitalId, requestParameters.surveyFormId, requestParameters.languageCode, requestParameters.previewSecret, options).then((request) => request(this.axios, this.basePath));
|
|
9145
|
+
}
|
|
9146
|
+
|
|
9023
9147
|
/**
|
|
9024
9148
|
*
|
|
9025
9149
|
* @summary Get All HospitalTags
|
|
@@ -22,6 +22,9 @@ import { Gender } from './gender';
|
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { UserLanguageModel } from './user-language-model';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { UserType } from './user-type';
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
30
|
*
|
|
@@ -61,10 +64,10 @@ export interface DoctorItemModel {
|
|
|
61
64
|
'fullName'?: string | null;
|
|
62
65
|
/**
|
|
63
66
|
*
|
|
64
|
-
* @type {
|
|
67
|
+
* @type {UserType}
|
|
65
68
|
* @memberof DoctorItemModel
|
|
66
69
|
*/
|
|
67
|
-
'userType'?:
|
|
70
|
+
'userType'?: UserType;
|
|
68
71
|
/**
|
|
69
72
|
*
|
|
70
73
|
* @type {string}
|
|
@@ -22,6 +22,9 @@ import { Gender } from './gender';
|
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { UserLanguageModel } from './user-language-model';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { UserType } from './user-type';
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
30
|
*
|
|
@@ -61,10 +64,10 @@ export interface DoctorModel {
|
|
|
61
64
|
'fullName'?: string | null;
|
|
62
65
|
/**
|
|
63
66
|
*
|
|
64
|
-
* @type {
|
|
67
|
+
* @type {UserType}
|
|
65
68
|
* @memberof DoctorModel
|
|
66
69
|
*/
|
|
67
|
-
'userType'?:
|
|
70
|
+
'userType'?: UserType;
|
|
68
71
|
/**
|
|
69
72
|
*
|
|
70
73
|
* @type {string}
|
|
@@ -83,6 +86,12 @@ export interface DoctorModel {
|
|
|
83
86
|
* @memberof DoctorModel
|
|
84
87
|
*/
|
|
85
88
|
'timeZone'?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Gender}
|
|
92
|
+
* @memberof DoctorModel
|
|
93
|
+
*/
|
|
94
|
+
'gender'?: Gender;
|
|
86
95
|
/**
|
|
87
96
|
*
|
|
88
97
|
* @type {AuditableEntity}
|
|
@@ -101,12 +110,6 @@ export interface DoctorModel {
|
|
|
101
110
|
* @memberof DoctorModel
|
|
102
111
|
*/
|
|
103
112
|
'email'?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {Gender}
|
|
107
|
-
* @memberof DoctorModel
|
|
108
|
-
*/
|
|
109
|
-
'gender'?: Gender;
|
|
110
113
|
/**
|
|
111
114
|
*
|
|
112
115
|
* @type {Date}
|
package/src/models/index.ts
CHANGED
|
@@ -373,6 +373,7 @@ export * from './user-language-document-model';
|
|
|
373
373
|
export * from './user-language-model';
|
|
374
374
|
export * from './user-model';
|
|
375
375
|
export * from './user-property';
|
|
376
|
+
export * from './user-type';
|
|
376
377
|
export * from './vonage-user';
|
|
377
378
|
export * from './web-app-metadata-model';
|
|
378
379
|
export * from './working-day-item-model';
|
|
@@ -55,7 +55,8 @@ export const NotificationCode = {
|
|
|
55
55
|
AppointmentRescheduleRequested: 'AppointmentRescheduleRequested',
|
|
56
56
|
AppointmentRescheduleRequestApproved: 'AppointmentRescheduleRequestApproved',
|
|
57
57
|
AppointmentReady: 'AppointmentReady',
|
|
58
|
-
HandoffRequested: 'HandoffRequested'
|
|
58
|
+
HandoffRequested: 'HandoffRequested',
|
|
59
|
+
SessionDeleted: 'SessionDeleted'
|
|
59
60
|
} as const;
|
|
60
61
|
|
|
61
62
|
export type NotificationCode = typeof NotificationCode[keyof typeof NotificationCode];
|
|
@@ -22,6 +22,9 @@ import { Gender } from './gender';
|
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { UserLanguageModel } from './user-language-model';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { UserType } from './user-type';
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
30
|
*
|
|
@@ -61,10 +64,10 @@ export interface PatientModel {
|
|
|
61
64
|
'fullName'?: string | null;
|
|
62
65
|
/**
|
|
63
66
|
*
|
|
64
|
-
* @type {
|
|
67
|
+
* @type {UserType}
|
|
65
68
|
* @memberof PatientModel
|
|
66
69
|
*/
|
|
67
|
-
'userType'?:
|
|
70
|
+
'userType'?: UserType;
|
|
68
71
|
/**
|
|
69
72
|
*
|
|
70
73
|
* @type {string}
|
|
@@ -83,6 +86,12 @@ export interface PatientModel {
|
|
|
83
86
|
* @memberof PatientModel
|
|
84
87
|
*/
|
|
85
88
|
'timeZone'?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Gender}
|
|
92
|
+
* @memberof PatientModel
|
|
93
|
+
*/
|
|
94
|
+
'gender'?: Gender;
|
|
86
95
|
/**
|
|
87
96
|
*
|
|
88
97
|
* @type {AuditableEntity}
|
|
@@ -101,12 +110,6 @@ export interface PatientModel {
|
|
|
101
110
|
* @memberof PatientModel
|
|
102
111
|
*/
|
|
103
112
|
'email'?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {Gender}
|
|
107
|
-
* @memberof PatientModel
|
|
108
|
-
*/
|
|
109
|
-
'gender'?: Gender;
|
|
110
113
|
/**
|
|
111
114
|
*
|
|
112
115
|
* @type {Date}
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
*/
|
|
14
14
|
|
|
15
15
|
|
|
16
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { LocationModel } from './location-model';
|
|
16
19
|
|
|
17
20
|
/**
|
|
18
21
|
*
|
|
@@ -44,6 +47,12 @@ export interface SurveyFormAffiliationModel {
|
|
|
44
47
|
* @memberof SurveyFormAffiliationModel
|
|
45
48
|
*/
|
|
46
49
|
'hospitalLogo'?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {LocationModel}
|
|
53
|
+
* @memberof SurveyFormAffiliationModel
|
|
54
|
+
*/
|
|
55
|
+
'hospitalLocation'?: LocationModel;
|
|
47
56
|
/**
|
|
48
57
|
*
|
|
49
58
|
* @type {string}
|
package/src/models/user-model.ts
CHANGED
|
@@ -22,6 +22,9 @@ import { Gender } from './gender';
|
|
|
22
22
|
// May contain unused imports in some cases
|
|
23
23
|
// @ts-ignore
|
|
24
24
|
import { UserLanguageModel } from './user-language-model';
|
|
25
|
+
// May contain unused imports in some cases
|
|
26
|
+
// @ts-ignore
|
|
27
|
+
import { UserType } from './user-type';
|
|
25
28
|
|
|
26
29
|
/**
|
|
27
30
|
*
|
|
@@ -61,10 +64,10 @@ export interface UserModel {
|
|
|
61
64
|
'fullName'?: string | null;
|
|
62
65
|
/**
|
|
63
66
|
*
|
|
64
|
-
* @type {
|
|
67
|
+
* @type {UserType}
|
|
65
68
|
* @memberof UserModel
|
|
66
69
|
*/
|
|
67
|
-
'userType'?:
|
|
70
|
+
'userType'?: UserType;
|
|
68
71
|
/**
|
|
69
72
|
*
|
|
70
73
|
* @type {string}
|
|
@@ -83,6 +86,12 @@ export interface UserModel {
|
|
|
83
86
|
* @memberof UserModel
|
|
84
87
|
*/
|
|
85
88
|
'timeZone'?: string | null;
|
|
89
|
+
/**
|
|
90
|
+
*
|
|
91
|
+
* @type {Gender}
|
|
92
|
+
* @memberof UserModel
|
|
93
|
+
*/
|
|
94
|
+
'gender'?: Gender;
|
|
86
95
|
/**
|
|
87
96
|
*
|
|
88
97
|
* @type {AuditableEntity}
|
|
@@ -101,12 +110,6 @@ export interface UserModel {
|
|
|
101
110
|
* @memberof UserModel
|
|
102
111
|
*/
|
|
103
112
|
'email'?: string | null;
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @type {Gender}
|
|
107
|
-
* @memberof UserModel
|
|
108
|
-
*/
|
|
109
|
-
'gender'?: Gender;
|
|
110
113
|
/**
|
|
111
114
|
*
|
|
112
115
|
* @type {Date}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CloudHospital Api
|
|
5
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 2
|
|
8
|
+
* Contact: developer@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
|
+
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* @export
|
|
20
|
+
* @enum {string}
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
export const UserType = {
|
|
24
|
+
Patient: 'Patient',
|
|
25
|
+
Partner: 'Partner',
|
|
26
|
+
Doctor: 'Doctor',
|
|
27
|
+
Manager: 'Manager',
|
|
28
|
+
ChManager: 'CHManager',
|
|
29
|
+
ChAdmin: 'CHAdmin'
|
|
30
|
+
} as const;
|
|
31
|
+
|
|
32
|
+
export type UserType = typeof UserType[keyof typeof UserType];
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|