ch-admin-api-client-typescript 5.30.46 → 5.31.1
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/message-webhooks-api.d.ts +237 -0
- package/lib/api/message-webhooks-api.d.ts.map +1 -0
- package/lib/api/message-webhooks-api.js +476 -0
- package/lib/api/specialty-types-api.d.ts +16 -16
- package/lib/api/specialty-types-api.js +16 -16
- 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 +4 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +4 -0
- package/lib/models/message-provider.d.ts +21 -0
- package/lib/models/message-provider.d.ts.map +1 -0
- package/lib/models/message-provider.js +24 -0
- package/lib/models/message-webhook-model.d.ts +56 -0
- package/lib/models/message-webhook-model.d.ts.map +1 -0
- package/lib/models/message-webhook-model.js +15 -0
- package/lib/models/register-message-webhook-command.d.ts +44 -0
- package/lib/models/register-message-webhook-command.d.ts.map +1 -0
- package/lib/models/register-message-webhook-command.js +15 -0
- package/lib/models/toggle-message-webhook-command.d.ts +25 -0
- package/lib/models/toggle-message-webhook-command.d.ts.map +1 -0
- package/lib/models/toggle-message-webhook-command.js +15 -0
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +5 -0
- package/src/api/message-webhooks-api.ts +419 -0
- package/src/api/specialty-types-api.ts +16 -16
- package/src/api.ts +1 -0
- package/src/models/index.ts +4 -0
- package/src/models/message-provider.ts +30 -0
- package/src/models/message-webhook-model.ts +63 -0
- package/src/models/register-message-webhook-command.ts +51 -0
- package/src/models/toggle-message-webhook-command.ts +30 -0
|
@@ -0,0 +1,419 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CloudHospital Admin Api
|
|
5
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
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 { MessageWebhookModel } from '../models';
|
|
25
|
+
// @ts-ignore
|
|
26
|
+
import { ProblemDetails } from '../models';
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
import { RegisterMessageWebhookCommand } from '../models';
|
|
29
|
+
// @ts-ignore
|
|
30
|
+
import { ToggleMessageWebhookCommand } from '../models';
|
|
31
|
+
/**
|
|
32
|
+
* MessageWebhooksApi - axios parameter creator
|
|
33
|
+
* @export
|
|
34
|
+
*/
|
|
35
|
+
export const MessageWebhooksApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
36
|
+
return {
|
|
37
|
+
/**
|
|
38
|
+
*
|
|
39
|
+
* @summary Get list of message webhooks related to the hospital
|
|
40
|
+
* @param {string} hospitalId
|
|
41
|
+
* @param {*} [options] Override http request option.
|
|
42
|
+
* @throws {RequiredError}
|
|
43
|
+
*/
|
|
44
|
+
apiV1MessagewebhooksHospitalIdGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
45
|
+
// verify required parameter 'hospitalId' is not null or undefined
|
|
46
|
+
assertParamExists('apiV1MessagewebhooksHospitalIdGet', 'hospitalId', hospitalId)
|
|
47
|
+
const localVarPath = `/api/v1/messagewebhooks/{hospitalId}`
|
|
48
|
+
.replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
|
|
49
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
50
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
51
|
+
let baseOptions;
|
|
52
|
+
if (configuration) {
|
|
53
|
+
baseOptions = configuration.baseOptions;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57
|
+
const localVarHeaderParameter = {} as any;
|
|
58
|
+
const localVarQueryParameter = {} as any;
|
|
59
|
+
|
|
60
|
+
// authentication oauth2 required
|
|
61
|
+
// oauth required
|
|
62
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
67
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
68
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
69
|
+
|
|
70
|
+
return {
|
|
71
|
+
url: toPathString(localVarUrlObj),
|
|
72
|
+
options: localVarRequestOptions,
|
|
73
|
+
};
|
|
74
|
+
},
|
|
75
|
+
/**
|
|
76
|
+
*
|
|
77
|
+
* @summary Create message webhook on CH-Message-Broker
|
|
78
|
+
* @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
|
|
79
|
+
* @param {*} [options] Override http request option.
|
|
80
|
+
* @throws {RequiredError}
|
|
81
|
+
*/
|
|
82
|
+
apiV1MessagewebhooksPost: async (registerMessageWebhookCommand?: RegisterMessageWebhookCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
83
|
+
const localVarPath = `/api/v1/messagewebhooks`;
|
|
84
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
85
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
86
|
+
let baseOptions;
|
|
87
|
+
if (configuration) {
|
|
88
|
+
baseOptions = configuration.baseOptions;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
92
|
+
const localVarHeaderParameter = {} as any;
|
|
93
|
+
const localVarQueryParameter = {} as any;
|
|
94
|
+
|
|
95
|
+
// authentication oauth2 required
|
|
96
|
+
// oauth required
|
|
97
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
102
|
+
|
|
103
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
104
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
105
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
106
|
+
localVarRequestOptions.data = serializeDataIfNeeded(registerMessageWebhookCommand, localVarRequestOptions, configuration)
|
|
107
|
+
|
|
108
|
+
return {
|
|
109
|
+
url: toPathString(localVarUrlObj),
|
|
110
|
+
options: localVarRequestOptions,
|
|
111
|
+
};
|
|
112
|
+
},
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
* @summary Delete message webhook by webhookId
|
|
116
|
+
* @param {string} webhookId
|
|
117
|
+
* @param {*} [options] Override http request option.
|
|
118
|
+
* @throws {RequiredError}
|
|
119
|
+
*/
|
|
120
|
+
apiV1MessagewebhooksWebhookIdDelete: async (webhookId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
121
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
122
|
+
assertParamExists('apiV1MessagewebhooksWebhookIdDelete', 'webhookId', webhookId)
|
|
123
|
+
const localVarPath = `/api/v1/messagewebhooks/{webhookId}`
|
|
124
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
125
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
126
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
127
|
+
let baseOptions;
|
|
128
|
+
if (configuration) {
|
|
129
|
+
baseOptions = configuration.baseOptions;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
133
|
+
const localVarHeaderParameter = {} as any;
|
|
134
|
+
const localVarQueryParameter = {} as any;
|
|
135
|
+
|
|
136
|
+
// authentication oauth2 required
|
|
137
|
+
// oauth required
|
|
138
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
143
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
144
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
145
|
+
|
|
146
|
+
return {
|
|
147
|
+
url: toPathString(localVarUrlObj),
|
|
148
|
+
options: localVarRequestOptions,
|
|
149
|
+
};
|
|
150
|
+
},
|
|
151
|
+
/**
|
|
152
|
+
*
|
|
153
|
+
* @summary Update message webhook by webhookId
|
|
154
|
+
* @param {string} webhookId
|
|
155
|
+
* @param {ToggleMessageWebhookCommand} [toggleMessageWebhookCommand]
|
|
156
|
+
* @param {*} [options] Override http request option.
|
|
157
|
+
* @throws {RequiredError}
|
|
158
|
+
*/
|
|
159
|
+
apiV1MessagewebhooksWebhookIdPut: async (webhookId: string, toggleMessageWebhookCommand?: ToggleMessageWebhookCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
160
|
+
// verify required parameter 'webhookId' is not null or undefined
|
|
161
|
+
assertParamExists('apiV1MessagewebhooksWebhookIdPut', 'webhookId', webhookId)
|
|
162
|
+
const localVarPath = `/api/v1/messagewebhooks/{webhookId}`
|
|
163
|
+
.replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
|
|
164
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
165
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
166
|
+
let baseOptions;
|
|
167
|
+
if (configuration) {
|
|
168
|
+
baseOptions = configuration.baseOptions;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
172
|
+
const localVarHeaderParameter = {} as any;
|
|
173
|
+
const localVarQueryParameter = {} as any;
|
|
174
|
+
|
|
175
|
+
// authentication oauth2 required
|
|
176
|
+
// oauth required
|
|
177
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
|
|
181
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
182
|
+
|
|
183
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
185
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
186
|
+
localVarRequestOptions.data = serializeDataIfNeeded(toggleMessageWebhookCommand, localVarRequestOptions, configuration)
|
|
187
|
+
|
|
188
|
+
return {
|
|
189
|
+
url: toPathString(localVarUrlObj),
|
|
190
|
+
options: localVarRequestOptions,
|
|
191
|
+
};
|
|
192
|
+
},
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* MessageWebhooksApi - functional programming interface
|
|
198
|
+
* @export
|
|
199
|
+
*/
|
|
200
|
+
export const MessageWebhooksApiFp = function(configuration?: Configuration) {
|
|
201
|
+
const localVarAxiosParamCreator = MessageWebhooksApiAxiosParamCreator(configuration)
|
|
202
|
+
return {
|
|
203
|
+
/**
|
|
204
|
+
*
|
|
205
|
+
* @summary Get list of message webhooks related to the hospital
|
|
206
|
+
* @param {string} hospitalId
|
|
207
|
+
* @param {*} [options] Override http request option.
|
|
208
|
+
* @throws {RequiredError}
|
|
209
|
+
*/
|
|
210
|
+
async apiV1MessagewebhooksHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MessageWebhookModel>>> {
|
|
211
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksHospitalIdGet(hospitalId, options);
|
|
212
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
213
|
+
},
|
|
214
|
+
/**
|
|
215
|
+
*
|
|
216
|
+
* @summary Create message webhook on CH-Message-Broker
|
|
217
|
+
* @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
|
|
218
|
+
* @param {*} [options] Override http request option.
|
|
219
|
+
* @throws {RequiredError}
|
|
220
|
+
*/
|
|
221
|
+
async apiV1MessagewebhooksPost(registerMessageWebhookCommand?: RegisterMessageWebhookCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageWebhookModel>> {
|
|
222
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options);
|
|
223
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
224
|
+
},
|
|
225
|
+
/**
|
|
226
|
+
*
|
|
227
|
+
* @summary Delete message webhook by webhookId
|
|
228
|
+
* @param {string} webhookId
|
|
229
|
+
* @param {*} [options] Override http request option.
|
|
230
|
+
* @throws {RequiredError}
|
|
231
|
+
*/
|
|
232
|
+
async apiV1MessagewebhooksWebhookIdDelete(webhookId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
|
|
233
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdDelete(webhookId, options);
|
|
234
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
*
|
|
238
|
+
* @summary Update message webhook by webhookId
|
|
239
|
+
* @param {string} webhookId
|
|
240
|
+
* @param {ToggleMessageWebhookCommand} [toggleMessageWebhookCommand]
|
|
241
|
+
* @param {*} [options] Override http request option.
|
|
242
|
+
* @throws {RequiredError}
|
|
243
|
+
*/
|
|
244
|
+
async apiV1MessagewebhooksWebhookIdPut(webhookId: string, toggleMessageWebhookCommand?: ToggleMessageWebhookCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageWebhookModel>> {
|
|
245
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdPut(webhookId, toggleMessageWebhookCommand, options);
|
|
246
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
247
|
+
},
|
|
248
|
+
}
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* MessageWebhooksApi - factory interface
|
|
253
|
+
* @export
|
|
254
|
+
*/
|
|
255
|
+
export const MessageWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
256
|
+
const localVarFp = MessageWebhooksApiFp(configuration)
|
|
257
|
+
return {
|
|
258
|
+
/**
|
|
259
|
+
*
|
|
260
|
+
* @summary Get list of message webhooks related to the hospital
|
|
261
|
+
* @param {string} hospitalId
|
|
262
|
+
* @param {*} [options] Override http request option.
|
|
263
|
+
* @throws {RequiredError}
|
|
264
|
+
*/
|
|
265
|
+
apiV1MessagewebhooksHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<Array<MessageWebhookModel>> {
|
|
266
|
+
return localVarFp.apiV1MessagewebhooksHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
|
|
267
|
+
},
|
|
268
|
+
/**
|
|
269
|
+
*
|
|
270
|
+
* @summary Create message webhook on CH-Message-Broker
|
|
271
|
+
* @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
|
|
272
|
+
* @param {*} [options] Override http request option.
|
|
273
|
+
* @throws {RequiredError}
|
|
274
|
+
*/
|
|
275
|
+
apiV1MessagewebhooksPost(registerMessageWebhookCommand?: RegisterMessageWebhookCommand, options?: any): AxiosPromise<MessageWebhookModel> {
|
|
276
|
+
return localVarFp.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options).then((request) => request(axios, basePath));
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
*
|
|
280
|
+
* @summary Delete message webhook by webhookId
|
|
281
|
+
* @param {string} webhookId
|
|
282
|
+
* @param {*} [options] Override http request option.
|
|
283
|
+
* @throws {RequiredError}
|
|
284
|
+
*/
|
|
285
|
+
apiV1MessagewebhooksWebhookIdDelete(webhookId: string, options?: any): AxiosPromise<string> {
|
|
286
|
+
return localVarFp.apiV1MessagewebhooksWebhookIdDelete(webhookId, options).then((request) => request(axios, basePath));
|
|
287
|
+
},
|
|
288
|
+
/**
|
|
289
|
+
*
|
|
290
|
+
* @summary Update message webhook by webhookId
|
|
291
|
+
* @param {string} webhookId
|
|
292
|
+
* @param {ToggleMessageWebhookCommand} [toggleMessageWebhookCommand]
|
|
293
|
+
* @param {*} [options] Override http request option.
|
|
294
|
+
* @throws {RequiredError}
|
|
295
|
+
*/
|
|
296
|
+
apiV1MessagewebhooksWebhookIdPut(webhookId: string, toggleMessageWebhookCommand?: ToggleMessageWebhookCommand, options?: any): AxiosPromise<MessageWebhookModel> {
|
|
297
|
+
return localVarFp.apiV1MessagewebhooksWebhookIdPut(webhookId, toggleMessageWebhookCommand, options).then((request) => request(axios, basePath));
|
|
298
|
+
},
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* Request parameters for apiV1MessagewebhooksHospitalIdGet operation in MessageWebhooksApi.
|
|
304
|
+
* @export
|
|
305
|
+
* @interface MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest
|
|
306
|
+
*/
|
|
307
|
+
export interface MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest {
|
|
308
|
+
/**
|
|
309
|
+
*
|
|
310
|
+
* @type {string}
|
|
311
|
+
* @memberof MessageWebhooksApiApiV1MessagewebhooksHospitalIdGet
|
|
312
|
+
*/
|
|
313
|
+
readonly hospitalId: string
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
/**
|
|
317
|
+
* Request parameters for apiV1MessagewebhooksPost operation in MessageWebhooksApi.
|
|
318
|
+
* @export
|
|
319
|
+
* @interface MessageWebhooksApiApiV1MessagewebhooksPostRequest
|
|
320
|
+
*/
|
|
321
|
+
export interface MessageWebhooksApiApiV1MessagewebhooksPostRequest {
|
|
322
|
+
/**
|
|
323
|
+
*
|
|
324
|
+
* @type {RegisterMessageWebhookCommand}
|
|
325
|
+
* @memberof MessageWebhooksApiApiV1MessagewebhooksPost
|
|
326
|
+
*/
|
|
327
|
+
readonly registerMessageWebhookCommand?: RegisterMessageWebhookCommand
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* Request parameters for apiV1MessagewebhooksWebhookIdDelete operation in MessageWebhooksApi.
|
|
332
|
+
* @export
|
|
333
|
+
* @interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest
|
|
334
|
+
*/
|
|
335
|
+
export interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest {
|
|
336
|
+
/**
|
|
337
|
+
*
|
|
338
|
+
* @type {string}
|
|
339
|
+
* @memberof MessageWebhooksApiApiV1MessagewebhooksWebhookIdDelete
|
|
340
|
+
*/
|
|
341
|
+
readonly webhookId: string
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/**
|
|
345
|
+
* Request parameters for apiV1MessagewebhooksWebhookIdPut operation in MessageWebhooksApi.
|
|
346
|
+
* @export
|
|
347
|
+
* @interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest
|
|
348
|
+
*/
|
|
349
|
+
export interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest {
|
|
350
|
+
/**
|
|
351
|
+
*
|
|
352
|
+
* @type {string}
|
|
353
|
+
* @memberof MessageWebhooksApiApiV1MessagewebhooksWebhookIdPut
|
|
354
|
+
*/
|
|
355
|
+
readonly webhookId: string
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
*
|
|
359
|
+
* @type {ToggleMessageWebhookCommand}
|
|
360
|
+
* @memberof MessageWebhooksApiApiV1MessagewebhooksWebhookIdPut
|
|
361
|
+
*/
|
|
362
|
+
readonly toggleMessageWebhookCommand?: ToggleMessageWebhookCommand
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
/**
|
|
366
|
+
* MessageWebhooksApi - object-oriented interface
|
|
367
|
+
* @export
|
|
368
|
+
* @class MessageWebhooksApi
|
|
369
|
+
* @extends {BaseAPI}
|
|
370
|
+
*/
|
|
371
|
+
export class MessageWebhooksApi extends BaseAPI {
|
|
372
|
+
/**
|
|
373
|
+
*
|
|
374
|
+
* @summary Get list of message webhooks related to the hospital
|
|
375
|
+
* @param {MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest} requestParameters Request parameters.
|
|
376
|
+
* @param {*} [options] Override http request option.
|
|
377
|
+
* @throws {RequiredError}
|
|
378
|
+
* @memberof MessageWebhooksApi
|
|
379
|
+
*/
|
|
380
|
+
public apiV1MessagewebhooksHospitalIdGet(requestParameters: MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest, options?: AxiosRequestConfig) {
|
|
381
|
+
return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksHospitalIdGet(requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
/**
|
|
385
|
+
*
|
|
386
|
+
* @summary Create message webhook on CH-Message-Broker
|
|
387
|
+
* @param {MessageWebhooksApiApiV1MessagewebhooksPostRequest} requestParameters Request parameters.
|
|
388
|
+
* @param {*} [options] Override http request option.
|
|
389
|
+
* @throws {RequiredError}
|
|
390
|
+
* @memberof MessageWebhooksApi
|
|
391
|
+
*/
|
|
392
|
+
public apiV1MessagewebhooksPost(requestParameters: MessageWebhooksApiApiV1MessagewebhooksPostRequest = {}, options?: AxiosRequestConfig) {
|
|
393
|
+
return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksPost(requestParameters.registerMessageWebhookCommand, options).then((request) => request(this.axios, this.basePath));
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
*
|
|
398
|
+
* @summary Delete message webhook by webhookId
|
|
399
|
+
* @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest} requestParameters Request parameters.
|
|
400
|
+
* @param {*} [options] Override http request option.
|
|
401
|
+
* @throws {RequiredError}
|
|
402
|
+
* @memberof MessageWebhooksApi
|
|
403
|
+
*/
|
|
404
|
+
public apiV1MessagewebhooksWebhookIdDelete(requestParameters: MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest, options?: AxiosRequestConfig) {
|
|
405
|
+
return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksWebhookIdDelete(requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
/**
|
|
409
|
+
*
|
|
410
|
+
* @summary Update message webhook by webhookId
|
|
411
|
+
* @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest} requestParameters Request parameters.
|
|
412
|
+
* @param {*} [options] Override http request option.
|
|
413
|
+
* @throws {RequiredError}
|
|
414
|
+
* @memberof MessageWebhooksApi
|
|
415
|
+
*/
|
|
416
|
+
public apiV1MessagewebhooksWebhookIdPut(requestParameters: MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest, options?: AxiosRequestConfig) {
|
|
417
|
+
return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksWebhookIdPut(requestParameters.webhookId, requestParameters.toggleMessageWebhookCommand, options).then((request) => request(this.axios, this.basePath));
|
|
418
|
+
}
|
|
419
|
+
}
|
|
@@ -204,7 +204,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
204
204
|
},
|
|
205
205
|
/**
|
|
206
206
|
*
|
|
207
|
-
* @summary Get all
|
|
207
|
+
* @summary Get all Departments with simplified model.
|
|
208
208
|
* @param {string} [id]
|
|
209
209
|
* @param {string} [name]
|
|
210
210
|
* @param {string} [description]
|
|
@@ -312,7 +312,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
312
312
|
},
|
|
313
313
|
/**
|
|
314
314
|
*
|
|
315
|
-
* @summary
|
|
315
|
+
* @summary Get department by slug
|
|
316
316
|
* @param {string} slug
|
|
317
317
|
* @param {string} [languageCode]
|
|
318
318
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -360,7 +360,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
360
360
|
},
|
|
361
361
|
/**
|
|
362
362
|
*
|
|
363
|
-
* @summary Batch for
|
|
363
|
+
* @summary Batch for departments sorting
|
|
364
364
|
* @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
|
|
365
365
|
* @param {*} [options] Override http request option.
|
|
366
366
|
* @throws {RequiredError}
|
|
@@ -441,7 +441,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
441
441
|
},
|
|
442
442
|
/**
|
|
443
443
|
*
|
|
444
|
-
* @summary
|
|
444
|
+
* @summary Get department
|
|
445
445
|
* @param {string} specialtyTypeId
|
|
446
446
|
* @param {string} [languageCode]
|
|
447
447
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -936,7 +936,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
936
936
|
},
|
|
937
937
|
/**
|
|
938
938
|
*
|
|
939
|
-
* @summary Get all
|
|
939
|
+
* @summary Get all Departments with simplified model.
|
|
940
940
|
* @param {string} [id]
|
|
941
941
|
* @param {string} [name]
|
|
942
942
|
* @param {string} [description]
|
|
@@ -960,7 +960,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
960
960
|
},
|
|
961
961
|
/**
|
|
962
962
|
*
|
|
963
|
-
* @summary
|
|
963
|
+
* @summary Get department by slug
|
|
964
964
|
* @param {string} slug
|
|
965
965
|
* @param {string} [languageCode]
|
|
966
966
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -973,7 +973,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
973
973
|
},
|
|
974
974
|
/**
|
|
975
975
|
*
|
|
976
|
-
* @summary Batch for
|
|
976
|
+
* @summary Batch for departments sorting
|
|
977
977
|
* @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
|
|
978
978
|
* @param {*} [options] Override http request option.
|
|
979
979
|
* @throws {RequiredError}
|
|
@@ -996,7 +996,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
996
996
|
},
|
|
997
997
|
/**
|
|
998
998
|
*
|
|
999
|
-
* @summary
|
|
999
|
+
* @summary Get department
|
|
1000
1000
|
* @param {string} specialtyTypeId
|
|
1001
1001
|
* @param {string} [languageCode]
|
|
1002
1002
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1164,7 +1164,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1164
1164
|
},
|
|
1165
1165
|
/**
|
|
1166
1166
|
*
|
|
1167
|
-
* @summary Get all
|
|
1167
|
+
* @summary Get all Departments with simplified model.
|
|
1168
1168
|
* @param {string} [id]
|
|
1169
1169
|
* @param {string} [name]
|
|
1170
1170
|
* @param {string} [description]
|
|
@@ -1187,7 +1187,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1187
1187
|
},
|
|
1188
1188
|
/**
|
|
1189
1189
|
*
|
|
1190
|
-
* @summary
|
|
1190
|
+
* @summary Get department by slug
|
|
1191
1191
|
* @param {string} slug
|
|
1192
1192
|
* @param {string} [languageCode]
|
|
1193
1193
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1199,7 +1199,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1199
1199
|
},
|
|
1200
1200
|
/**
|
|
1201
1201
|
*
|
|
1202
|
-
* @summary Batch for
|
|
1202
|
+
* @summary Batch for departments sorting
|
|
1203
1203
|
* @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
|
|
1204
1204
|
* @param {*} [options] Override http request option.
|
|
1205
1205
|
* @throws {RequiredError}
|
|
@@ -1220,7 +1220,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1220
1220
|
},
|
|
1221
1221
|
/**
|
|
1222
1222
|
*
|
|
1223
|
-
* @summary
|
|
1223
|
+
* @summary Get department
|
|
1224
1224
|
* @param {string} specialtyTypeId
|
|
1225
1225
|
* @param {string} [languageCode]
|
|
1226
1226
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1901,7 +1901,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1901
1901
|
|
|
1902
1902
|
/**
|
|
1903
1903
|
*
|
|
1904
|
-
* @summary Get all
|
|
1904
|
+
* @summary Get all Departments with simplified model.
|
|
1905
1905
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSimpleGetRequest} requestParameters Request parameters.
|
|
1906
1906
|
* @param {*} [options] Override http request option.
|
|
1907
1907
|
* @throws {RequiredError}
|
|
@@ -1913,7 +1913,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1913
1913
|
|
|
1914
1914
|
/**
|
|
1915
1915
|
*
|
|
1916
|
-
* @summary
|
|
1916
|
+
* @summary Get department by slug
|
|
1917
1917
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSlugGetRequest} requestParameters Request parameters.
|
|
1918
1918
|
* @param {*} [options] Override http request option.
|
|
1919
1919
|
* @throws {RequiredError}
|
|
@@ -1925,7 +1925,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1925
1925
|
|
|
1926
1926
|
/**
|
|
1927
1927
|
*
|
|
1928
|
-
* @summary Batch for
|
|
1928
|
+
* @summary Batch for departments sorting
|
|
1929
1929
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSortPutRequest} requestParameters Request parameters.
|
|
1930
1930
|
* @param {*} [options] Override http request option.
|
|
1931
1931
|
* @throws {RequiredError}
|
|
@@ -1949,7 +1949,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1949
1949
|
|
|
1950
1950
|
/**
|
|
1951
1951
|
*
|
|
1952
|
-
* @summary
|
|
1952
|
+
* @summary Get department
|
|
1953
1953
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSpecialtyTypeIdGetRequest} requestParameters Request parameters.
|
|
1954
1954
|
* @param {*} [options] Override http request option.
|
|
1955
1955
|
* @throws {RequiredError}
|
package/src/api.ts
CHANGED
|
@@ -46,6 +46,7 @@ export * from './api/images-api';
|
|
|
46
46
|
export * from './api/languages-api';
|
|
47
47
|
export * from './api/managers-api';
|
|
48
48
|
export * from './api/memberships-api';
|
|
49
|
+
export * from './api/message-webhooks-api';
|
|
49
50
|
export * from './api/notifications-api';
|
|
50
51
|
export * from './api/patient-affiliations-api';
|
|
51
52
|
export * from './api/patients-api';
|
package/src/models/index.ts
CHANGED
|
@@ -306,7 +306,9 @@ export * from './membership-item-model';
|
|
|
306
306
|
export * from './membership-model';
|
|
307
307
|
export * from './memberships-model';
|
|
308
308
|
export * from './mention-type';
|
|
309
|
+
export * from './message-provider';
|
|
309
310
|
export * from './message-type';
|
|
311
|
+
export * from './message-webhook-model';
|
|
310
312
|
export * from './metadata';
|
|
311
313
|
export * from './model-file';
|
|
312
314
|
export * from './notice-item-model';
|
|
@@ -368,6 +370,7 @@ export * from './procedure';
|
|
|
368
370
|
export * from './recurring-interval';
|
|
369
371
|
export * from './refund-policy';
|
|
370
372
|
export * from './refund-status';
|
|
373
|
+
export * from './register-message-webhook-command';
|
|
371
374
|
export * from './reject-appointment-command';
|
|
372
375
|
export * from './reject-reason';
|
|
373
376
|
export * from './reschedule-appointment-command';
|
|
@@ -453,6 +456,7 @@ export * from './template-versions-model';
|
|
|
453
456
|
export * from './test-email-model';
|
|
454
457
|
export * from './test-email-webhook-command';
|
|
455
458
|
export * from './text-message';
|
|
459
|
+
export * from './toggle-message-webhook-command';
|
|
456
460
|
export * from './translate-about-us-page-command';
|
|
457
461
|
export * from './translate-all-options';
|
|
458
462
|
export * from './translate-command';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CloudHospital Admin Api
|
|
5
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
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 MessageProvider = {
|
|
24
|
+
WhatsApp: 'WhatsApp'
|
|
25
|
+
} as const;
|
|
26
|
+
|
|
27
|
+
export type MessageProvider = typeof MessageProvider[keyof typeof MessageProvider];
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* CloudHospital Admin Api
|
|
5
|
+
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 1
|
|
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
|
+
// May contain unused imports in some cases
|
|
17
|
+
// @ts-ignore
|
|
18
|
+
import { MessageProvider } from './message-provider';
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
*
|
|
22
|
+
* @export
|
|
23
|
+
* @interface MessageWebhookModel
|
|
24
|
+
*/
|
|
25
|
+
export interface MessageWebhookModel {
|
|
26
|
+
/**
|
|
27
|
+
*
|
|
28
|
+
* @type {string}
|
|
29
|
+
* @memberof MessageWebhookModel
|
|
30
|
+
*/
|
|
31
|
+
'webhookId'?: string;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
* @type {string}
|
|
35
|
+
* @memberof MessageWebhookModel
|
|
36
|
+
*/
|
|
37
|
+
'hospitalId'?: string;
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
* @type {string}
|
|
41
|
+
* @memberof MessageWebhookModel
|
|
42
|
+
*/
|
|
43
|
+
'businessId'?: string | null;
|
|
44
|
+
/**
|
|
45
|
+
*
|
|
46
|
+
* @type {string}
|
|
47
|
+
* @memberof MessageWebhookModel
|
|
48
|
+
*/
|
|
49
|
+
'callbackUrl'?: string | null;
|
|
50
|
+
/**
|
|
51
|
+
*
|
|
52
|
+
* @type {MessageProvider}
|
|
53
|
+
* @memberof MessageWebhookModel
|
|
54
|
+
*/
|
|
55
|
+
'messageProvider'?: MessageProvider;
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
* @type {boolean}
|
|
59
|
+
* @memberof MessageWebhookModel
|
|
60
|
+
*/
|
|
61
|
+
'isEnabled'?: boolean;
|
|
62
|
+
}
|
|
63
|
+
|