ch-api-client-typescript2 5.36.33 → 5.36.39
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 +102 -0
- package/lib/api/hospitals-api.d.ts.map +1 -1
- package/lib/api/hospitals-api.js +156 -0
- package/lib/api/messages-api.d.ts +88 -0
- package/lib/api/messages-api.d.ts.map +1 -0
- package/lib/api/messages-api.js +216 -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/index.d.ts +2 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +2 -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/request-handoff-command.d.ts +37 -0
- package/lib/models/request-handoff-command.d.ts.map +1 -0
- package/lib/models/request-handoff-command.js +15 -0
- package/lib/models/web-app-metadata-model.d.ts +61 -0
- package/lib/models/web-app-metadata-model.d.ts.map +1 -0
- package/lib/models/web-app-metadata-model.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +3 -0
- package/src/api/hospitals-api.ts +178 -0
- package/src/api/messages-api.ts +147 -0
- package/src/api.ts +1 -0
- package/src/models/index.ts +2 -0
- package/src/models/notification-code.ts +2 -1
- package/src/models/request-handoff-command.ts +42 -0
- package/src/models/web-app-metadata-model.ts +66 -0
package/src/api/hospitals-api.ts
CHANGED
|
@@ -119,6 +119,8 @@ import { SnsHandleModel } from '../models';
|
|
|
119
119
|
// @ts-ignore
|
|
120
120
|
import { SnsType } from '../models';
|
|
121
121
|
// @ts-ignore
|
|
122
|
+
import { WebAppMetadataModel } from '../models';
|
|
123
|
+
// @ts-ignore
|
|
122
124
|
import { WorkingDayModel } from '../models';
|
|
123
125
|
/**
|
|
124
126
|
* HospitalsApi - axios parameter creator
|
|
@@ -3202,6 +3204,40 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3202
3204
|
|
|
3203
3205
|
|
|
3204
3206
|
|
|
3207
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3209
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3210
|
+
|
|
3211
|
+
return {
|
|
3212
|
+
url: toPathString(localVarUrlObj),
|
|
3213
|
+
options: localVarRequestOptions,
|
|
3214
|
+
};
|
|
3215
|
+
},
|
|
3216
|
+
/**
|
|
3217
|
+
*
|
|
3218
|
+
* @summary Get hospital\'s webApp metadata by hospital id
|
|
3219
|
+
* @param {string} hospitalId
|
|
3220
|
+
* @param {*} [options] Override http request option.
|
|
3221
|
+
* @throws {RequiredError}
|
|
3222
|
+
*/
|
|
3223
|
+
apiV2HospitalsHospitalIdWebappMetadataGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3224
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
3225
|
+
assertParamExists('apiV2HospitalsHospitalIdWebappMetadataGet', 'hospitalId', hospitalId)
|
|
3226
|
+
const localVarPath = `/api/v2/hospitals/{hospitalId}/webapp/metadata`
|
|
3227
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
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
|
+
|
|
3240
|
+
|
|
3205
3241
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3206
3242
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3207
3243
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -3325,6 +3361,45 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
|
|
|
3325
3361
|
|
|
3326
3362
|
|
|
3327
3363
|
|
|
3364
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3365
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3366
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
3367
|
+
|
|
3368
|
+
return {
|
|
3369
|
+
url: toPathString(localVarUrlObj),
|
|
3370
|
+
options: localVarRequestOptions,
|
|
3371
|
+
};
|
|
3372
|
+
},
|
|
3373
|
+
/**
|
|
3374
|
+
*
|
|
3375
|
+
* @summary Get hospital\'s webapp metadata by hospital slug
|
|
3376
|
+
* @param {string} hospitalSlug
|
|
3377
|
+
* @param {string} [languageCode]
|
|
3378
|
+
* @param {*} [options] Override http request option.
|
|
3379
|
+
* @throws {RequiredError}
|
|
3380
|
+
*/
|
|
3381
|
+
apiV2HospitalsHospitalSlugWebappMetadataGet: async (hospitalSlug: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
3382
|
+
// verify required parameter 'hospitalSlug' is not null or undefined
|
|
3383
|
+
assertParamExists('apiV2HospitalsHospitalSlugWebappMetadataGet', 'hospitalSlug', hospitalSlug)
|
|
3384
|
+
const localVarPath = `/api/v2/hospitals/{hospitalSlug}/webapp/metadata`
|
|
3385
|
+
.replace(`{${"hospitalSlug"}}`, encodeURIComponent(String(hospitalSlug)));
|
|
3386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3387
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3388
|
+
let baseOptions;
|
|
3389
|
+
if (configuration) {
|
|
3390
|
+
baseOptions = configuration.baseOptions;
|
|
3391
|
+
}
|
|
3392
|
+
|
|
3393
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
3394
|
+
const localVarHeaderParameter = {} as any;
|
|
3395
|
+
const localVarQueryParameter = {} as any;
|
|
3396
|
+
|
|
3397
|
+
if (languageCode !== undefined) {
|
|
3398
|
+
localVarQueryParameter['languageCode'] = languageCode;
|
|
3399
|
+
}
|
|
3400
|
+
|
|
3401
|
+
|
|
3402
|
+
|
|
3328
3403
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3329
3404
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3330
3405
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -4349,6 +4424,17 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
4349
4424
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdTagsTagIdGet(hospitalId, tagId, options);
|
|
4350
4425
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4351
4426
|
},
|
|
4427
|
+
/**
|
|
4428
|
+
*
|
|
4429
|
+
* @summary Get hospital\'s webApp metadata by hospital id
|
|
4430
|
+
* @param {string} hospitalId
|
|
4431
|
+
* @param {*} [options] Override http request option.
|
|
4432
|
+
* @throws {RequiredError}
|
|
4433
|
+
*/
|
|
4434
|
+
async apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppMetadataModel>> {
|
|
4435
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId, options);
|
|
4436
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4437
|
+
},
|
|
4352
4438
|
/**
|
|
4353
4439
|
*
|
|
4354
4440
|
* @summary Get all HospitalWorkingDays.
|
|
@@ -4381,6 +4467,18 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
|
|
|
4381
4467
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options);
|
|
4382
4468
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4383
4469
|
},
|
|
4470
|
+
/**
|
|
4471
|
+
*
|
|
4472
|
+
* @summary Get hospital\'s webapp metadata by hospital slug
|
|
4473
|
+
* @param {string} hospitalSlug
|
|
4474
|
+
* @param {string} [languageCode]
|
|
4475
|
+
* @param {*} [options] Override http request option.
|
|
4476
|
+
* @throws {RequiredError}
|
|
4477
|
+
*/
|
|
4478
|
+
async apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppMetadataModel>> {
|
|
4479
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug, languageCode, options);
|
|
4480
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
4481
|
+
},
|
|
4384
4482
|
/**
|
|
4385
4483
|
*
|
|
4386
4484
|
* @summary Get all Hospitals.
|
|
@@ -5212,6 +5310,16 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
5212
5310
|
apiV2HospitalsHospitalIdTagsTagIdGet(hospitalId: string, tagId: string, options?: any): AxiosPromise<HospitalTagModel> {
|
|
5213
5311
|
return localVarFp.apiV2HospitalsHospitalIdTagsTagIdGet(hospitalId, tagId, options).then((request) => request(axios, basePath));
|
|
5214
5312
|
},
|
|
5313
|
+
/**
|
|
5314
|
+
*
|
|
5315
|
+
* @summary Get hospital\'s webApp metadata by hospital id
|
|
5316
|
+
* @param {string} hospitalId
|
|
5317
|
+
* @param {*} [options] Override http request option.
|
|
5318
|
+
* @throws {RequiredError}
|
|
5319
|
+
*/
|
|
5320
|
+
apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId: string, options?: any): AxiosPromise<WebAppMetadataModel> {
|
|
5321
|
+
return localVarFp.apiV2HospitalsHospitalIdWebappMetadataGet(hospitalId, options).then((request) => request(axios, basePath));
|
|
5322
|
+
},
|
|
5215
5323
|
/**
|
|
5216
5324
|
*
|
|
5217
5325
|
* @summary Get all HospitalWorkingDays.
|
|
@@ -5242,6 +5350,17 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
|
|
|
5242
5350
|
apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId: string, workingDayId: string, options?: any): AxiosPromise<WorkingDayModel> {
|
|
5243
5351
|
return localVarFp.apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(hospitalId, workingDayId, options).then((request) => request(axios, basePath));
|
|
5244
5352
|
},
|
|
5353
|
+
/**
|
|
5354
|
+
*
|
|
5355
|
+
* @summary Get hospital\'s webapp metadata by hospital slug
|
|
5356
|
+
* @param {string} hospitalSlug
|
|
5357
|
+
* @param {string} [languageCode]
|
|
5358
|
+
* @param {*} [options] Override http request option.
|
|
5359
|
+
* @throws {RequiredError}
|
|
5360
|
+
*/
|
|
5361
|
+
apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug: string, languageCode?: string, options?: any): AxiosPromise<WebAppMetadataModel> {
|
|
5362
|
+
return localVarFp.apiV2HospitalsHospitalSlugWebappMetadataGet(hospitalSlug, languageCode, options).then((request) => request(axios, basePath));
|
|
5363
|
+
},
|
|
5245
5364
|
/**
|
|
5246
5365
|
*
|
|
5247
5366
|
* @summary Get all Hospitals.
|
|
@@ -7777,6 +7896,20 @@ export interface HospitalsApiApiV2HospitalsHospitalIdTagsTagIdGetRequest {
|
|
|
7777
7896
|
readonly tagId: string
|
|
7778
7897
|
}
|
|
7779
7898
|
|
|
7899
|
+
/**
|
|
7900
|
+
* Request parameters for apiV2HospitalsHospitalIdWebappMetadataGet operation in HospitalsApi.
|
|
7901
|
+
* @export
|
|
7902
|
+
* @interface HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest
|
|
7903
|
+
*/
|
|
7904
|
+
export interface HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest {
|
|
7905
|
+
/**
|
|
7906
|
+
*
|
|
7907
|
+
* @type {string}
|
|
7908
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGet
|
|
7909
|
+
*/
|
|
7910
|
+
readonly hospitalId: string
|
|
7911
|
+
}
|
|
7912
|
+
|
|
7780
7913
|
/**
|
|
7781
7914
|
* Request parameters for apiV2HospitalsHospitalIdWorkingdaysGet operation in HospitalsApi.
|
|
7782
7915
|
* @export
|
|
@@ -7875,6 +8008,27 @@ export interface HospitalsApiApiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGetR
|
|
|
7875
8008
|
readonly workingDayId: string
|
|
7876
8009
|
}
|
|
7877
8010
|
|
|
8011
|
+
/**
|
|
8012
|
+
* Request parameters for apiV2HospitalsHospitalSlugWebappMetadataGet operation in HospitalsApi.
|
|
8013
|
+
* @export
|
|
8014
|
+
* @interface HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest
|
|
8015
|
+
*/
|
|
8016
|
+
export interface HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest {
|
|
8017
|
+
/**
|
|
8018
|
+
*
|
|
8019
|
+
* @type {string}
|
|
8020
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGet
|
|
8021
|
+
*/
|
|
8022
|
+
readonly hospitalSlug: string
|
|
8023
|
+
|
|
8024
|
+
/**
|
|
8025
|
+
*
|
|
8026
|
+
* @type {string}
|
|
8027
|
+
* @memberof HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGet
|
|
8028
|
+
*/
|
|
8029
|
+
readonly languageCode?: string
|
|
8030
|
+
}
|
|
8031
|
+
|
|
7878
8032
|
/**
|
|
7879
8033
|
* Request parameters for apiV2HospitalsSimpleGet operation in HospitalsApi.
|
|
7880
8034
|
* @export
|
|
@@ -8685,6 +8839,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
8685
8839
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdTagsTagIdGet(requestParameters.hospitalId, requestParameters.tagId, options).then((request) => request(this.axios, this.basePath));
|
|
8686
8840
|
}
|
|
8687
8841
|
|
|
8842
|
+
/**
|
|
8843
|
+
*
|
|
8844
|
+
* @summary Get hospital\'s webApp metadata by hospital id
|
|
8845
|
+
* @param {HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest} requestParameters Request parameters.
|
|
8846
|
+
* @param {*} [options] Override http request option.
|
|
8847
|
+
* @throws {RequiredError}
|
|
8848
|
+
* @memberof HospitalsApi
|
|
8849
|
+
*/
|
|
8850
|
+
public apiV2HospitalsHospitalIdWebappMetadataGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdWebappMetadataGetRequest, options?: AxiosRequestConfig) {
|
|
8851
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWebappMetadataGet(requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
8852
|
+
}
|
|
8853
|
+
|
|
8688
8854
|
/**
|
|
8689
8855
|
*
|
|
8690
8856
|
* @summary Get all HospitalWorkingDays.
|
|
@@ -8709,6 +8875,18 @@ export class HospitalsApi extends BaseAPI {
|
|
|
8709
8875
|
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdWorkingdaysWorkingDayIdGet(requestParameters.hospitalId, requestParameters.workingDayId, options).then((request) => request(this.axios, this.basePath));
|
|
8710
8876
|
}
|
|
8711
8877
|
|
|
8878
|
+
/**
|
|
8879
|
+
*
|
|
8880
|
+
* @summary Get hospital\'s webapp metadata by hospital slug
|
|
8881
|
+
* @param {HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest} requestParameters Request parameters.
|
|
8882
|
+
* @param {*} [options] Override http request option.
|
|
8883
|
+
* @throws {RequiredError}
|
|
8884
|
+
* @memberof HospitalsApi
|
|
8885
|
+
*/
|
|
8886
|
+
public apiV2HospitalsHospitalSlugWebappMetadataGet(requestParameters: HospitalsApiApiV2HospitalsHospitalSlugWebappMetadataGetRequest, options?: AxiosRequestConfig) {
|
|
8887
|
+
return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalSlugWebappMetadataGet(requestParameters.hospitalSlug, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
|
|
8888
|
+
}
|
|
8889
|
+
|
|
8712
8890
|
/**
|
|
8713
8891
|
*
|
|
8714
8892
|
* @summary Get all Hospitals.
|
|
@@ -0,0 +1,147 @@
|
|
|
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
|
+
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 { ProblemDetails } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { RequestHandoffCommand } from '../models';
|
|
27
|
+
/**
|
|
28
|
+
* MessagesApi - axios parameter creator
|
|
29
|
+
* @export
|
|
30
|
+
*/
|
|
31
|
+
export const MessagesApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32
|
+
return {
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* @summary Send requestHandoff notifications
|
|
36
|
+
* @param {RequestHandoffCommand} [requestHandoffCommand]
|
|
37
|
+
* @param {*} [options] Override http request option.
|
|
38
|
+
* @throws {RequiredError}
|
|
39
|
+
*/
|
|
40
|
+
apiV2MessagesPost: async (requestHandoffCommand?: RequestHandoffCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
41
|
+
const localVarPath = `/api/v2/messages`;
|
|
42
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
43
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
44
|
+
let baseOptions;
|
|
45
|
+
if (configuration) {
|
|
46
|
+
baseOptions = configuration.baseOptions;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
50
|
+
const localVarHeaderParameter = {} as any;
|
|
51
|
+
const localVarQueryParameter = {} as any;
|
|
52
|
+
|
|
53
|
+
// authentication oauth2 required
|
|
54
|
+
// oauth required
|
|
55
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
60
|
+
|
|
61
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
62
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
63
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
64
|
+
localVarRequestOptions.data = serializeDataIfNeeded(requestHandoffCommand, localVarRequestOptions, configuration)
|
|
65
|
+
|
|
66
|
+
return {
|
|
67
|
+
url: toPathString(localVarUrlObj),
|
|
68
|
+
options: localVarRequestOptions,
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
}
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* MessagesApi - functional programming interface
|
|
76
|
+
* @export
|
|
77
|
+
*/
|
|
78
|
+
export const MessagesApiFp = function(configuration?: Configuration) {
|
|
79
|
+
const localVarAxiosParamCreator = MessagesApiAxiosParamCreator(configuration)
|
|
80
|
+
return {
|
|
81
|
+
/**
|
|
82
|
+
*
|
|
83
|
+
* @summary Send requestHandoff notifications
|
|
84
|
+
* @param {RequestHandoffCommand} [requestHandoffCommand]
|
|
85
|
+
* @param {*} [options] Override http request option.
|
|
86
|
+
* @throws {RequiredError}
|
|
87
|
+
*/
|
|
88
|
+
async apiV2MessagesPost(requestHandoffCommand?: RequestHandoffCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
89
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2MessagesPost(requestHandoffCommand, options);
|
|
90
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
91
|
+
},
|
|
92
|
+
}
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* MessagesApi - factory interface
|
|
97
|
+
* @export
|
|
98
|
+
*/
|
|
99
|
+
export const MessagesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
100
|
+
const localVarFp = MessagesApiFp(configuration)
|
|
101
|
+
return {
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* @summary Send requestHandoff notifications
|
|
105
|
+
* @param {RequestHandoffCommand} [requestHandoffCommand]
|
|
106
|
+
* @param {*} [options] Override http request option.
|
|
107
|
+
* @throws {RequiredError}
|
|
108
|
+
*/
|
|
109
|
+
apiV2MessagesPost(requestHandoffCommand?: RequestHandoffCommand, options?: any): AxiosPromise<void> {
|
|
110
|
+
return localVarFp.apiV2MessagesPost(requestHandoffCommand, options).then((request) => request(axios, basePath));
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
/**
|
|
116
|
+
* Request parameters for apiV2MessagesPost operation in MessagesApi.
|
|
117
|
+
* @export
|
|
118
|
+
* @interface MessagesApiApiV2MessagesPostRequest
|
|
119
|
+
*/
|
|
120
|
+
export interface MessagesApiApiV2MessagesPostRequest {
|
|
121
|
+
/**
|
|
122
|
+
*
|
|
123
|
+
* @type {RequestHandoffCommand}
|
|
124
|
+
* @memberof MessagesApiApiV2MessagesPost
|
|
125
|
+
*/
|
|
126
|
+
readonly requestHandoffCommand?: RequestHandoffCommand
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
/**
|
|
130
|
+
* MessagesApi - object-oriented interface
|
|
131
|
+
* @export
|
|
132
|
+
* @class MessagesApi
|
|
133
|
+
* @extends {BaseAPI}
|
|
134
|
+
*/
|
|
135
|
+
export class MessagesApi extends BaseAPI {
|
|
136
|
+
/**
|
|
137
|
+
*
|
|
138
|
+
* @summary Send requestHandoff notifications
|
|
139
|
+
* @param {MessagesApiApiV2MessagesPostRequest} requestParameters Request parameters.
|
|
140
|
+
* @param {*} [options] Override http request option.
|
|
141
|
+
* @throws {RequiredError}
|
|
142
|
+
* @memberof MessagesApi
|
|
143
|
+
*/
|
|
144
|
+
public apiV2MessagesPost(requestParameters: MessagesApiApiV2MessagesPostRequest = {}, options?: AxiosRequestConfig) {
|
|
145
|
+
return MessagesApiFp(this.configuration).apiV2MessagesPost(requestParameters.requestHandoffCommand, options).then((request) => request(this.axios, this.basePath));
|
|
146
|
+
}
|
|
147
|
+
}
|
package/src/api.ts
CHANGED
|
@@ -40,6 +40,7 @@ export * from './api/hospitals-api';
|
|
|
40
40
|
export * from './api/images-api';
|
|
41
41
|
export * from './api/languages-api';
|
|
42
42
|
export * from './api/memberships-api';
|
|
43
|
+
export * from './api/messages-api';
|
|
43
44
|
export * from './api/notifications-api';
|
|
44
45
|
export * from './api/origins-api';
|
|
45
46
|
export * from './api/patients-api';
|
package/src/models/index.ts
CHANGED
|
@@ -306,6 +306,7 @@ export * from './register-patient-command';
|
|
|
306
306
|
export * from './registered-account-model';
|
|
307
307
|
export * from './reject-reason';
|
|
308
308
|
export * from './remove-cors-command';
|
|
309
|
+
export * from './request-handoff-command';
|
|
309
310
|
export * from './reschedule-appointment-command';
|
|
310
311
|
export * from './review-type';
|
|
311
312
|
export * from './search-curation-item-model';
|
|
@@ -382,5 +383,6 @@ export * from './user-location-type';
|
|
|
382
383
|
export * from './user-model';
|
|
383
384
|
export * from './user-property';
|
|
384
385
|
export * from './vonage-user';
|
|
386
|
+
export * from './web-app-metadata-model';
|
|
385
387
|
export * from './working-day-item-model';
|
|
386
388
|
export * from './working-day-model';
|
|
@@ -54,7 +54,8 @@ export const NotificationCode = {
|
|
|
54
54
|
AppointmentRefunded: 'AppointmentRefunded',
|
|
55
55
|
AppointmentRescheduleRequested: 'AppointmentRescheduleRequested',
|
|
56
56
|
AppointmentRescheduleRequestApproved: 'AppointmentRescheduleRequestApproved',
|
|
57
|
-
AppointmentReady: 'AppointmentReady'
|
|
57
|
+
AppointmentReady: 'AppointmentReady',
|
|
58
|
+
HandoffRequested: 'HandoffRequested'
|
|
58
59
|
} as const;
|
|
59
60
|
|
|
60
61
|
export type NotificationCode = typeof NotificationCode[keyof typeof NotificationCode];
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* @interface RequestHandoffCommand
|
|
21
|
+
*/
|
|
22
|
+
export interface RequestHandoffCommand {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof RequestHandoffCommand
|
|
27
|
+
*/
|
|
28
|
+
'hospitalId'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof RequestHandoffCommand
|
|
33
|
+
*/
|
|
34
|
+
'sessionId'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof RequestHandoffCommand
|
|
39
|
+
*/
|
|
40
|
+
'languageCode'?: string | null;
|
|
41
|
+
}
|
|
42
|
+
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
* @interface WebAppMetadataModel
|
|
21
|
+
*/
|
|
22
|
+
export interface WebAppMetadataModel {
|
|
23
|
+
/**
|
|
24
|
+
*
|
|
25
|
+
* @type {string}
|
|
26
|
+
* @memberof WebAppMetadataModel
|
|
27
|
+
*/
|
|
28
|
+
'id'?: string;
|
|
29
|
+
/**
|
|
30
|
+
*
|
|
31
|
+
* @type {string}
|
|
32
|
+
* @memberof WebAppMetadataModel
|
|
33
|
+
*/
|
|
34
|
+
'hospitalId'?: string;
|
|
35
|
+
/**
|
|
36
|
+
*
|
|
37
|
+
* @type {string}
|
|
38
|
+
* @memberof WebAppMetadataModel
|
|
39
|
+
*/
|
|
40
|
+
'colorPrimary'?: string | null;
|
|
41
|
+
/**
|
|
42
|
+
*
|
|
43
|
+
* @type {string}
|
|
44
|
+
* @memberof WebAppMetadataModel
|
|
45
|
+
*/
|
|
46
|
+
'colorSecondary'?: string | null;
|
|
47
|
+
/**
|
|
48
|
+
*
|
|
49
|
+
* @type {string}
|
|
50
|
+
* @memberof WebAppMetadataModel
|
|
51
|
+
*/
|
|
52
|
+
'colorNeutral'?: string | null;
|
|
53
|
+
/**
|
|
54
|
+
*
|
|
55
|
+
* @type {string}
|
|
56
|
+
* @memberof WebAppMetadataModel
|
|
57
|
+
*/
|
|
58
|
+
'colorDark'?: string | null;
|
|
59
|
+
/**
|
|
60
|
+
*
|
|
61
|
+
* @type {string}
|
|
62
|
+
* @memberof WebAppMetadataModel
|
|
63
|
+
*/
|
|
64
|
+
'colorLight'?: string | null;
|
|
65
|
+
}
|
|
66
|
+
|