ch-admin-api-client-typescript 5.30.44 → 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 +60 -12
- package/lib/api/specialty-types-api.d.ts.map +1 -1
- package/lib/api/specialty-types-api.js +97 -12
- package/lib/api.d.ts +1 -0
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -0
- package/lib/models/create-specialty-type-command.d.ts +12 -0
- package/lib/models/create-specialty-type-command.d.ts.map +1 -1
- package/lib/models/index.d.ts +5 -0
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +5 -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/specialty-type-item-model.d.ts +6 -0
- package/lib/models/specialty-type-item-model.d.ts.map +1 -1
- package/lib/models/specialty-type-model.d.ts +6 -0
- package/lib/models/specialty-type-model.d.ts.map +1 -1
- package/lib/models/specialty-type-simple-item-model.d.ts +6 -0
- package/lib/models/specialty-type-simple-item-model.d.ts.map +1 -1
- package/lib/models/specialty-type-sorting-command.d.ts +26 -0
- package/lib/models/specialty-type-sorting-command.d.ts.map +1 -0
- package/lib/models/specialty-type-sorting-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/lib/models/update-specialty-type-command.d.ts +8 -2
- package/lib/models/update-specialty-type-command.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +6 -0
- package/src/api/message-webhooks-api.ts +419 -0
- package/src/api/specialty-types-api.ts +101 -12
- package/src/api.ts +1 -0
- package/src/models/create-specialty-type-command.ts +12 -0
- package/src/models/index.ts +5 -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/specialty-type-item-model.ts +6 -0
- package/src/models/specialty-type-model.ts +6 -0
- package/src/models/specialty-type-simple-item-model.ts +6 -0
- package/src/models/specialty-type-sorting-command.ts +33 -0
- package/src/models/toggle-message-webhook-command.ts +30 -0
- package/src/models/update-specialty-type-command.ts +8 -2
|
@@ -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
|
+
}
|
|
@@ -35,8 +35,12 @@ import { MediasModel } from '../models';
|
|
|
35
35
|
// @ts-ignore
|
|
36
36
|
import { ProblemDetails } from '../models';
|
|
37
37
|
// @ts-ignore
|
|
38
|
+
import { SortingResultModel } from '../models';
|
|
39
|
+
// @ts-ignore
|
|
38
40
|
import { SpecialtyTypeModel } from '../models';
|
|
39
41
|
// @ts-ignore
|
|
42
|
+
import { SpecialtyTypeSortingCommand } from '../models';
|
|
43
|
+
// @ts-ignore
|
|
40
44
|
import { SpecialtyTypesModel } from '../models';
|
|
41
45
|
// @ts-ignore
|
|
42
46
|
import { SpecialtyTypesSimpleModel } from '../models';
|
|
@@ -200,7 +204,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
200
204
|
},
|
|
201
205
|
/**
|
|
202
206
|
*
|
|
203
|
-
* @summary Get all
|
|
207
|
+
* @summary Get all Departments with simplified model.
|
|
204
208
|
* @param {string} [id]
|
|
205
209
|
* @param {string} [name]
|
|
206
210
|
* @param {string} [description]
|
|
@@ -308,7 +312,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
308
312
|
},
|
|
309
313
|
/**
|
|
310
314
|
*
|
|
311
|
-
* @summary
|
|
315
|
+
* @summary Get department by slug
|
|
312
316
|
* @param {string} slug
|
|
313
317
|
* @param {string} [languageCode]
|
|
314
318
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -354,6 +358,44 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
354
358
|
options: localVarRequestOptions,
|
|
355
359
|
};
|
|
356
360
|
},
|
|
361
|
+
/**
|
|
362
|
+
*
|
|
363
|
+
* @summary Batch for departments sorting
|
|
364
|
+
* @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
|
|
365
|
+
* @param {*} [options] Override http request option.
|
|
366
|
+
* @throws {RequiredError}
|
|
367
|
+
*/
|
|
368
|
+
apiV1SpecialtytypesSortPut: async (specialtyTypeSortingCommand?: SpecialtyTypeSortingCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
369
|
+
const localVarPath = `/api/v1/specialtytypes/sort`;
|
|
370
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
371
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
372
|
+
let baseOptions;
|
|
373
|
+
if (configuration) {
|
|
374
|
+
baseOptions = configuration.baseOptions;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
378
|
+
const localVarHeaderParameter = {} as any;
|
|
379
|
+
const localVarQueryParameter = {} as any;
|
|
380
|
+
|
|
381
|
+
// authentication oauth2 required
|
|
382
|
+
// oauth required
|
|
383
|
+
await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
388
|
+
|
|
389
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
390
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
391
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
392
|
+
localVarRequestOptions.data = serializeDataIfNeeded(specialtyTypeSortingCommand, localVarRequestOptions, configuration)
|
|
393
|
+
|
|
394
|
+
return {
|
|
395
|
+
url: toPathString(localVarUrlObj),
|
|
396
|
+
options: localVarRequestOptions,
|
|
397
|
+
};
|
|
398
|
+
},
|
|
357
399
|
/**
|
|
358
400
|
*
|
|
359
401
|
* @summary Delete Department.
|
|
@@ -399,7 +441,7 @@ export const SpecialtyTypesApiAxiosParamCreator = function (configuration?: Conf
|
|
|
399
441
|
},
|
|
400
442
|
/**
|
|
401
443
|
*
|
|
402
|
-
* @summary
|
|
444
|
+
* @summary Get department
|
|
403
445
|
* @param {string} specialtyTypeId
|
|
404
446
|
* @param {string} [languageCode]
|
|
405
447
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -894,7 +936,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
894
936
|
},
|
|
895
937
|
/**
|
|
896
938
|
*
|
|
897
|
-
* @summary Get all
|
|
939
|
+
* @summary Get all Departments with simplified model.
|
|
898
940
|
* @param {string} [id]
|
|
899
941
|
* @param {string} [name]
|
|
900
942
|
* @param {string} [description]
|
|
@@ -918,7 +960,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
918
960
|
},
|
|
919
961
|
/**
|
|
920
962
|
*
|
|
921
|
-
* @summary
|
|
963
|
+
* @summary Get department by slug
|
|
922
964
|
* @param {string} slug
|
|
923
965
|
* @param {string} [languageCode]
|
|
924
966
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -929,6 +971,17 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
929
971
|
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtytypesSlugGet(slug, languageCode, returnDefaultValue, options);
|
|
930
972
|
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
931
973
|
},
|
|
974
|
+
/**
|
|
975
|
+
*
|
|
976
|
+
* @summary Batch for departments sorting
|
|
977
|
+
* @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
|
|
978
|
+
* @param {*} [options] Override http request option.
|
|
979
|
+
* @throws {RequiredError}
|
|
980
|
+
*/
|
|
981
|
+
async apiV1SpecialtytypesSortPut(specialtyTypeSortingCommand?: SpecialtyTypeSortingCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SortingResultModel>> {
|
|
982
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1SpecialtytypesSortPut(specialtyTypeSortingCommand, options);
|
|
983
|
+
return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
|
|
984
|
+
},
|
|
932
985
|
/**
|
|
933
986
|
*
|
|
934
987
|
* @summary Delete Department.
|
|
@@ -943,7 +996,7 @@ export const SpecialtyTypesApiFp = function(configuration?: Configuration) {
|
|
|
943
996
|
},
|
|
944
997
|
/**
|
|
945
998
|
*
|
|
946
|
-
* @summary
|
|
999
|
+
* @summary Get department
|
|
947
1000
|
* @param {string} specialtyTypeId
|
|
948
1001
|
* @param {string} [languageCode]
|
|
949
1002
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1111,7 +1164,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1111
1164
|
},
|
|
1112
1165
|
/**
|
|
1113
1166
|
*
|
|
1114
|
-
* @summary Get all
|
|
1167
|
+
* @summary Get all Departments with simplified model.
|
|
1115
1168
|
* @param {string} [id]
|
|
1116
1169
|
* @param {string} [name]
|
|
1117
1170
|
* @param {string} [description]
|
|
@@ -1134,7 +1187,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1134
1187
|
},
|
|
1135
1188
|
/**
|
|
1136
1189
|
*
|
|
1137
|
-
* @summary
|
|
1190
|
+
* @summary Get department by slug
|
|
1138
1191
|
* @param {string} slug
|
|
1139
1192
|
* @param {string} [languageCode]
|
|
1140
1193
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1144,6 +1197,16 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1144
1197
|
apiV1SpecialtytypesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<SpecialtyTypeModel> {
|
|
1145
1198
|
return localVarFp.apiV1SpecialtytypesSlugGet(slug, languageCode, returnDefaultValue, options).then((request) => request(axios, basePath));
|
|
1146
1199
|
},
|
|
1200
|
+
/**
|
|
1201
|
+
*
|
|
1202
|
+
* @summary Batch for departments sorting
|
|
1203
|
+
* @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
|
|
1204
|
+
* @param {*} [options] Override http request option.
|
|
1205
|
+
* @throws {RequiredError}
|
|
1206
|
+
*/
|
|
1207
|
+
apiV1SpecialtytypesSortPut(specialtyTypeSortingCommand?: SpecialtyTypeSortingCommand, options?: any): AxiosPromise<SortingResultModel> {
|
|
1208
|
+
return localVarFp.apiV1SpecialtytypesSortPut(specialtyTypeSortingCommand, options).then((request) => request(axios, basePath));
|
|
1209
|
+
},
|
|
1147
1210
|
/**
|
|
1148
1211
|
*
|
|
1149
1212
|
* @summary Delete Department.
|
|
@@ -1157,7 +1220,7 @@ export const SpecialtyTypesApiFactory = function (configuration?: Configuration,
|
|
|
1157
1220
|
},
|
|
1158
1221
|
/**
|
|
1159
1222
|
*
|
|
1160
|
-
* @summary
|
|
1223
|
+
* @summary Get department
|
|
1161
1224
|
* @param {string} specialtyTypeId
|
|
1162
1225
|
* @param {string} [languageCode]
|
|
1163
1226
|
* @param {boolean} [returnDefaultValue]
|
|
@@ -1525,6 +1588,20 @@ export interface SpecialtyTypesApiApiV1SpecialtytypesSlugGetRequest {
|
|
|
1525
1588
|
readonly returnDefaultValue?: boolean
|
|
1526
1589
|
}
|
|
1527
1590
|
|
|
1591
|
+
/**
|
|
1592
|
+
* Request parameters for apiV1SpecialtytypesSortPut operation in SpecialtyTypesApi.
|
|
1593
|
+
* @export
|
|
1594
|
+
* @interface SpecialtyTypesApiApiV1SpecialtytypesSortPutRequest
|
|
1595
|
+
*/
|
|
1596
|
+
export interface SpecialtyTypesApiApiV1SpecialtytypesSortPutRequest {
|
|
1597
|
+
/**
|
|
1598
|
+
*
|
|
1599
|
+
* @type {SpecialtyTypeSortingCommand}
|
|
1600
|
+
* @memberof SpecialtyTypesApiApiV1SpecialtytypesSortPut
|
|
1601
|
+
*/
|
|
1602
|
+
readonly specialtyTypeSortingCommand?: SpecialtyTypeSortingCommand
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1528
1605
|
/**
|
|
1529
1606
|
* Request parameters for apiV1SpecialtytypesSpecialtyTypeIdDelete operation in SpecialtyTypesApi.
|
|
1530
1607
|
* @export
|
|
@@ -1824,7 +1901,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1824
1901
|
|
|
1825
1902
|
/**
|
|
1826
1903
|
*
|
|
1827
|
-
* @summary Get all
|
|
1904
|
+
* @summary Get all Departments with simplified model.
|
|
1828
1905
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSimpleGetRequest} requestParameters Request parameters.
|
|
1829
1906
|
* @param {*} [options] Override http request option.
|
|
1830
1907
|
* @throws {RequiredError}
|
|
@@ -1836,7 +1913,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1836
1913
|
|
|
1837
1914
|
/**
|
|
1838
1915
|
*
|
|
1839
|
-
* @summary
|
|
1916
|
+
* @summary Get department by slug
|
|
1840
1917
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSlugGetRequest} requestParameters Request parameters.
|
|
1841
1918
|
* @param {*} [options] Override http request option.
|
|
1842
1919
|
* @throws {RequiredError}
|
|
@@ -1846,6 +1923,18 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1846
1923
|
return SpecialtyTypesApiFp(this.configuration).apiV1SpecialtytypesSlugGet(requestParameters.slug, requestParameters.languageCode, requestParameters.returnDefaultValue, options).then((request) => request(this.axios, this.basePath));
|
|
1847
1924
|
}
|
|
1848
1925
|
|
|
1926
|
+
/**
|
|
1927
|
+
*
|
|
1928
|
+
* @summary Batch for departments sorting
|
|
1929
|
+
* @param {SpecialtyTypesApiApiV1SpecialtytypesSortPutRequest} requestParameters Request parameters.
|
|
1930
|
+
* @param {*} [options] Override http request option.
|
|
1931
|
+
* @throws {RequiredError}
|
|
1932
|
+
* @memberof SpecialtyTypesApi
|
|
1933
|
+
*/
|
|
1934
|
+
public apiV1SpecialtytypesSortPut(requestParameters: SpecialtyTypesApiApiV1SpecialtytypesSortPutRequest = {}, options?: AxiosRequestConfig) {
|
|
1935
|
+
return SpecialtyTypesApiFp(this.configuration).apiV1SpecialtytypesSortPut(requestParameters.specialtyTypeSortingCommand, options).then((request) => request(this.axios, this.basePath));
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1849
1938
|
/**
|
|
1850
1939
|
*
|
|
1851
1940
|
* @summary Delete Department.
|
|
@@ -1860,7 +1949,7 @@ export class SpecialtyTypesApi extends BaseAPI {
|
|
|
1860
1949
|
|
|
1861
1950
|
/**
|
|
1862
1951
|
*
|
|
1863
|
-
* @summary
|
|
1952
|
+
* @summary Get department
|
|
1864
1953
|
* @param {SpecialtyTypesApiApiV1SpecialtytypesSpecialtyTypeIdGetRequest} requestParameters Request parameters.
|
|
1865
1954
|
* @param {*} [options] Override http request option.
|
|
1866
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';
|