ch-admin-api-client-typescript 5.41.1 → 5.42.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.
Files changed (34) hide show
  1. package/lib/api.d.ts +0 -1
  2. package/lib/api.d.ts.map +1 -1
  3. package/lib/api.js +0 -1
  4. package/lib/models/index.d.ts +0 -4
  5. package/lib/models/index.d.ts.map +1 -1
  6. package/lib/models/index.js +0 -4
  7. package/lib/models/notification-code.d.ts +2 -0
  8. package/lib/models/notification-code.d.ts.map +1 -1
  9. package/lib/models/notification-code.js +3 -1
  10. package/package.json +1 -1
  11. package/src/.openapi-generator/FILES +0 -5
  12. package/src/api.ts +0 -1
  13. package/src/models/index.ts +0 -4
  14. package/src/models/notification-code.ts +3 -1
  15. package/lib/api/message-webhooks-api.d.ts +0 -283
  16. package/lib/api/message-webhooks-api.d.ts.map +0 -1
  17. package/lib/api/message-webhooks-api.js +0 -561
  18. package/lib/models/message-provider.d.ts +0 -21
  19. package/lib/models/message-provider.d.ts.map +0 -1
  20. package/lib/models/message-provider.js +0 -24
  21. package/lib/models/message-webhook-model.d.ts +0 -74
  22. package/lib/models/message-webhook-model.d.ts.map +0 -1
  23. package/lib/models/message-webhook-model.js +0 -15
  24. package/lib/models/register-message-webhook-command.d.ts +0 -62
  25. package/lib/models/register-message-webhook-command.d.ts.map +0 -1
  26. package/lib/models/register-message-webhook-command.js +0 -15
  27. package/lib/models/update-message-webhook-command.d.ts +0 -43
  28. package/lib/models/update-message-webhook-command.d.ts.map +0 -1
  29. package/lib/models/update-message-webhook-command.js +0 -15
  30. package/src/api/message-webhooks-api.ts +0 -504
  31. package/src/models/message-provider.ts +0 -30
  32. package/src/models/message-webhook-model.ts +0 -81
  33. package/src/models/register-message-webhook-command.ts +0 -69
  34. package/src/models/update-message-webhook-command.ts +0 -48
@@ -1,504 +0,0 @@
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 { UpdateMessageWebhookCommand } 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 Get list of message webhooks related to the hospital
78
- * @param {string} hospitalId
79
- * @param {*} [options] Override http request option.
80
- * @throws {RequiredError}
81
- */
82
- apiV1MessagewebhooksHospitalIdWhatsappGet: async (hospitalId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
83
- // verify required parameter 'hospitalId' is not null or undefined
84
- assertParamExists('apiV1MessagewebhooksHospitalIdWhatsappGet', 'hospitalId', hospitalId)
85
- const localVarPath = `/api/v1/messagewebhooks/{hospitalId}/whatsapp`
86
- .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
87
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
88
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
89
- let baseOptions;
90
- if (configuration) {
91
- baseOptions = configuration.baseOptions;
92
- }
93
-
94
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
95
- const localVarHeaderParameter = {} as any;
96
- const localVarQueryParameter = {} as any;
97
-
98
- // authentication oauth2 required
99
- // oauth required
100
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
101
-
102
-
103
-
104
- setSearchParams(localVarUrlObj, localVarQueryParameter);
105
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
106
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
107
-
108
- return {
109
- url: toPathString(localVarUrlObj),
110
- options: localVarRequestOptions,
111
- };
112
- },
113
- /**
114
- *
115
- * @summary Create message webhook on CH-Message-Broker
116
- * @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
117
- * @param {*} [options] Override http request option.
118
- * @throws {RequiredError}
119
- */
120
- apiV1MessagewebhooksPost: async (registerMessageWebhookCommand?: RegisterMessageWebhookCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
121
- const localVarPath = `/api/v1/messagewebhooks`;
122
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
123
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
124
- let baseOptions;
125
- if (configuration) {
126
- baseOptions = configuration.baseOptions;
127
- }
128
-
129
- const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
130
- const localVarHeaderParameter = {} as any;
131
- const localVarQueryParameter = {} as any;
132
-
133
- // authentication oauth2 required
134
- // oauth required
135
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
136
-
137
-
138
-
139
- localVarHeaderParameter['Content-Type'] = 'application/json';
140
-
141
- setSearchParams(localVarUrlObj, localVarQueryParameter);
142
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
143
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
144
- localVarRequestOptions.data = serializeDataIfNeeded(registerMessageWebhookCommand, localVarRequestOptions, configuration)
145
-
146
- return {
147
- url: toPathString(localVarUrlObj),
148
- options: localVarRequestOptions,
149
- };
150
- },
151
- /**
152
- *
153
- * @summary Delete message webhook by webhookId
154
- * @param {string} webhookId
155
- * @param {*} [options] Override http request option.
156
- * @throws {RequiredError}
157
- */
158
- apiV1MessagewebhooksWebhookIdDelete: async (webhookId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
159
- // verify required parameter 'webhookId' is not null or undefined
160
- assertParamExists('apiV1MessagewebhooksWebhookIdDelete', 'webhookId', webhookId)
161
- const localVarPath = `/api/v1/messagewebhooks/{webhookId}`
162
- .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
163
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
164
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
165
- let baseOptions;
166
- if (configuration) {
167
- baseOptions = configuration.baseOptions;
168
- }
169
-
170
- const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
171
- const localVarHeaderParameter = {} as any;
172
- const localVarQueryParameter = {} as any;
173
-
174
- // authentication oauth2 required
175
- // oauth required
176
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
177
-
178
-
179
-
180
- setSearchParams(localVarUrlObj, localVarQueryParameter);
181
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
182
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
183
-
184
- return {
185
- url: toPathString(localVarUrlObj),
186
- options: localVarRequestOptions,
187
- };
188
- },
189
- /**
190
- *
191
- * @summary Update message webhook by webhookId
192
- * @param {string} webhookId
193
- * @param {UpdateMessageWebhookCommand} [updateMessageWebhookCommand]
194
- * @param {*} [options] Override http request option.
195
- * @throws {RequiredError}
196
- */
197
- apiV1MessagewebhooksWebhookIdPut: async (webhookId: string, updateMessageWebhookCommand?: UpdateMessageWebhookCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
198
- // verify required parameter 'webhookId' is not null or undefined
199
- assertParamExists('apiV1MessagewebhooksWebhookIdPut', 'webhookId', webhookId)
200
- const localVarPath = `/api/v1/messagewebhooks/{webhookId}`
201
- .replace(`{${"webhookId"}}`, encodeURIComponent(String(webhookId)));
202
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
203
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
204
- let baseOptions;
205
- if (configuration) {
206
- baseOptions = configuration.baseOptions;
207
- }
208
-
209
- const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
210
- const localVarHeaderParameter = {} as any;
211
- const localVarQueryParameter = {} as any;
212
-
213
- // authentication oauth2 required
214
- // oauth required
215
- await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
216
-
217
-
218
-
219
- localVarHeaderParameter['Content-Type'] = 'application/json';
220
-
221
- setSearchParams(localVarUrlObj, localVarQueryParameter);
222
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
223
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
224
- localVarRequestOptions.data = serializeDataIfNeeded(updateMessageWebhookCommand, localVarRequestOptions, configuration)
225
-
226
- return {
227
- url: toPathString(localVarUrlObj),
228
- options: localVarRequestOptions,
229
- };
230
- },
231
- }
232
- };
233
-
234
- /**
235
- * MessageWebhooksApi - functional programming interface
236
- * @export
237
- */
238
- export const MessageWebhooksApiFp = function(configuration?: Configuration) {
239
- const localVarAxiosParamCreator = MessageWebhooksApiAxiosParamCreator(configuration)
240
- return {
241
- /**
242
- *
243
- * @summary Get list of message webhooks related to the hospital
244
- * @param {string} hospitalId
245
- * @param {*} [options] Override http request option.
246
- * @throws {RequiredError}
247
- */
248
- async apiV1MessagewebhooksHospitalIdGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<MessageWebhookModel>>> {
249
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksHospitalIdGet(hospitalId, options);
250
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
251
- },
252
- /**
253
- *
254
- * @summary Get list of message webhooks related to the hospital
255
- * @param {string} hospitalId
256
- * @param {*} [options] Override http request option.
257
- * @throws {RequiredError}
258
- */
259
- async apiV1MessagewebhooksHospitalIdWhatsappGet(hospitalId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageWebhookModel>> {
260
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksHospitalIdWhatsappGet(hospitalId, options);
261
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
262
- },
263
- /**
264
- *
265
- * @summary Create message webhook on CH-Message-Broker
266
- * @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
267
- * @param {*} [options] Override http request option.
268
- * @throws {RequiredError}
269
- */
270
- async apiV1MessagewebhooksPost(registerMessageWebhookCommand?: RegisterMessageWebhookCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageWebhookModel>> {
271
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options);
272
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
273
- },
274
- /**
275
- *
276
- * @summary Delete message webhook by webhookId
277
- * @param {string} webhookId
278
- * @param {*} [options] Override http request option.
279
- * @throws {RequiredError}
280
- */
281
- async apiV1MessagewebhooksWebhookIdDelete(webhookId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
282
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdDelete(webhookId, options);
283
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
284
- },
285
- /**
286
- *
287
- * @summary Update message webhook by webhookId
288
- * @param {string} webhookId
289
- * @param {UpdateMessageWebhookCommand} [updateMessageWebhookCommand]
290
- * @param {*} [options] Override http request option.
291
- * @throws {RequiredError}
292
- */
293
- async apiV1MessagewebhooksWebhookIdPut(webhookId: string, updateMessageWebhookCommand?: UpdateMessageWebhookCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<MessageWebhookModel>> {
294
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdPut(webhookId, updateMessageWebhookCommand, options);
295
- return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
296
- },
297
- }
298
- };
299
-
300
- /**
301
- * MessageWebhooksApi - factory interface
302
- * @export
303
- */
304
- export const MessageWebhooksApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
305
- const localVarFp = MessageWebhooksApiFp(configuration)
306
- return {
307
- /**
308
- *
309
- * @summary Get list of message webhooks related to the hospital
310
- * @param {string} hospitalId
311
- * @param {*} [options] Override http request option.
312
- * @throws {RequiredError}
313
- */
314
- apiV1MessagewebhooksHospitalIdGet(hospitalId: string, options?: any): AxiosPromise<Array<MessageWebhookModel>> {
315
- return localVarFp.apiV1MessagewebhooksHospitalIdGet(hospitalId, options).then((request) => request(axios, basePath));
316
- },
317
- /**
318
- *
319
- * @summary Get list of message webhooks related to the hospital
320
- * @param {string} hospitalId
321
- * @param {*} [options] Override http request option.
322
- * @throws {RequiredError}
323
- */
324
- apiV1MessagewebhooksHospitalIdWhatsappGet(hospitalId: string, options?: any): AxiosPromise<MessageWebhookModel> {
325
- return localVarFp.apiV1MessagewebhooksHospitalIdWhatsappGet(hospitalId, options).then((request) => request(axios, basePath));
326
- },
327
- /**
328
- *
329
- * @summary Create message webhook on CH-Message-Broker
330
- * @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
331
- * @param {*} [options] Override http request option.
332
- * @throws {RequiredError}
333
- */
334
- apiV1MessagewebhooksPost(registerMessageWebhookCommand?: RegisterMessageWebhookCommand, options?: any): AxiosPromise<MessageWebhookModel> {
335
- return localVarFp.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options).then((request) => request(axios, basePath));
336
- },
337
- /**
338
- *
339
- * @summary Delete message webhook by webhookId
340
- * @param {string} webhookId
341
- * @param {*} [options] Override http request option.
342
- * @throws {RequiredError}
343
- */
344
- apiV1MessagewebhooksWebhookIdDelete(webhookId: string, options?: any): AxiosPromise<string> {
345
- return localVarFp.apiV1MessagewebhooksWebhookIdDelete(webhookId, options).then((request) => request(axios, basePath));
346
- },
347
- /**
348
- *
349
- * @summary Update message webhook by webhookId
350
- * @param {string} webhookId
351
- * @param {UpdateMessageWebhookCommand} [updateMessageWebhookCommand]
352
- * @param {*} [options] Override http request option.
353
- * @throws {RequiredError}
354
- */
355
- apiV1MessagewebhooksWebhookIdPut(webhookId: string, updateMessageWebhookCommand?: UpdateMessageWebhookCommand, options?: any): AxiosPromise<MessageWebhookModel> {
356
- return localVarFp.apiV1MessagewebhooksWebhookIdPut(webhookId, updateMessageWebhookCommand, options).then((request) => request(axios, basePath));
357
- },
358
- };
359
- };
360
-
361
- /**
362
- * Request parameters for apiV1MessagewebhooksHospitalIdGet operation in MessageWebhooksApi.
363
- * @export
364
- * @interface MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest
365
- */
366
- export interface MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest {
367
- /**
368
- *
369
- * @type {string}
370
- * @memberof MessageWebhooksApiApiV1MessagewebhooksHospitalIdGet
371
- */
372
- readonly hospitalId: string
373
- }
374
-
375
- /**
376
- * Request parameters for apiV1MessagewebhooksHospitalIdWhatsappGet operation in MessageWebhooksApi.
377
- * @export
378
- * @interface MessageWebhooksApiApiV1MessagewebhooksHospitalIdWhatsappGetRequest
379
- */
380
- export interface MessageWebhooksApiApiV1MessagewebhooksHospitalIdWhatsappGetRequest {
381
- /**
382
- *
383
- * @type {string}
384
- * @memberof MessageWebhooksApiApiV1MessagewebhooksHospitalIdWhatsappGet
385
- */
386
- readonly hospitalId: string
387
- }
388
-
389
- /**
390
- * Request parameters for apiV1MessagewebhooksPost operation in MessageWebhooksApi.
391
- * @export
392
- * @interface MessageWebhooksApiApiV1MessagewebhooksPostRequest
393
- */
394
- export interface MessageWebhooksApiApiV1MessagewebhooksPostRequest {
395
- /**
396
- *
397
- * @type {RegisterMessageWebhookCommand}
398
- * @memberof MessageWebhooksApiApiV1MessagewebhooksPost
399
- */
400
- readonly registerMessageWebhookCommand?: RegisterMessageWebhookCommand
401
- }
402
-
403
- /**
404
- * Request parameters for apiV1MessagewebhooksWebhookIdDelete operation in MessageWebhooksApi.
405
- * @export
406
- * @interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest
407
- */
408
- export interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest {
409
- /**
410
- *
411
- * @type {string}
412
- * @memberof MessageWebhooksApiApiV1MessagewebhooksWebhookIdDelete
413
- */
414
- readonly webhookId: string
415
- }
416
-
417
- /**
418
- * Request parameters for apiV1MessagewebhooksWebhookIdPut operation in MessageWebhooksApi.
419
- * @export
420
- * @interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest
421
- */
422
- export interface MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest {
423
- /**
424
- *
425
- * @type {string}
426
- * @memberof MessageWebhooksApiApiV1MessagewebhooksWebhookIdPut
427
- */
428
- readonly webhookId: string
429
-
430
- /**
431
- *
432
- * @type {UpdateMessageWebhookCommand}
433
- * @memberof MessageWebhooksApiApiV1MessagewebhooksWebhookIdPut
434
- */
435
- readonly updateMessageWebhookCommand?: UpdateMessageWebhookCommand
436
- }
437
-
438
- /**
439
- * MessageWebhooksApi - object-oriented interface
440
- * @export
441
- * @class MessageWebhooksApi
442
- * @extends {BaseAPI}
443
- */
444
- export class MessageWebhooksApi extends BaseAPI {
445
- /**
446
- *
447
- * @summary Get list of message webhooks related to the hospital
448
- * @param {MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest} requestParameters Request parameters.
449
- * @param {*} [options] Override http request option.
450
- * @throws {RequiredError}
451
- * @memberof MessageWebhooksApi
452
- */
453
- public apiV1MessagewebhooksHospitalIdGet(requestParameters: MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest, options?: AxiosRequestConfig) {
454
- return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksHospitalIdGet(requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
455
- }
456
-
457
- /**
458
- *
459
- * @summary Get list of message webhooks related to the hospital
460
- * @param {MessageWebhooksApiApiV1MessagewebhooksHospitalIdWhatsappGetRequest} requestParameters Request parameters.
461
- * @param {*} [options] Override http request option.
462
- * @throws {RequiredError}
463
- * @memberof MessageWebhooksApi
464
- */
465
- public apiV1MessagewebhooksHospitalIdWhatsappGet(requestParameters: MessageWebhooksApiApiV1MessagewebhooksHospitalIdWhatsappGetRequest, options?: AxiosRequestConfig) {
466
- return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksHospitalIdWhatsappGet(requestParameters.hospitalId, options).then((request) => request(this.axios, this.basePath));
467
- }
468
-
469
- /**
470
- *
471
- * @summary Create message webhook on CH-Message-Broker
472
- * @param {MessageWebhooksApiApiV1MessagewebhooksPostRequest} requestParameters Request parameters.
473
- * @param {*} [options] Override http request option.
474
- * @throws {RequiredError}
475
- * @memberof MessageWebhooksApi
476
- */
477
- public apiV1MessagewebhooksPost(requestParameters: MessageWebhooksApiApiV1MessagewebhooksPostRequest = {}, options?: AxiosRequestConfig) {
478
- return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksPost(requestParameters.registerMessageWebhookCommand, options).then((request) => request(this.axios, this.basePath));
479
- }
480
-
481
- /**
482
- *
483
- * @summary Delete message webhook by webhookId
484
- * @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest} requestParameters Request parameters.
485
- * @param {*} [options] Override http request option.
486
- * @throws {RequiredError}
487
- * @memberof MessageWebhooksApi
488
- */
489
- public apiV1MessagewebhooksWebhookIdDelete(requestParameters: MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest, options?: AxiosRequestConfig) {
490
- return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksWebhookIdDelete(requestParameters.webhookId, options).then((request) => request(this.axios, this.basePath));
491
- }
492
-
493
- /**
494
- *
495
- * @summary Update message webhook by webhookId
496
- * @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest} requestParameters Request parameters.
497
- * @param {*} [options] Override http request option.
498
- * @throws {RequiredError}
499
- * @memberof MessageWebhooksApi
500
- */
501
- public apiV1MessagewebhooksWebhookIdPut(requestParameters: MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest, options?: AxiosRequestConfig) {
502
- return MessageWebhooksApiFp(this.configuration).apiV1MessagewebhooksWebhookIdPut(requestParameters.webhookId, requestParameters.updateMessageWebhookCommand, options).then((request) => request(this.axios, this.basePath));
503
- }
504
- }
@@ -1,30 +0,0 @@
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
-
@@ -1,81 +0,0 @@
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
- 'businessName'?: string | null;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof MessageWebhookModel
54
- */
55
- 'namespace'?: string | null;
56
- /**
57
- *
58
- * @type {string}
59
- * @memberof MessageWebhookModel
60
- */
61
- 'phoneNumberId'?: string | null;
62
- /**
63
- *
64
- * @type {string}
65
- * @memberof MessageWebhookModel
66
- */
67
- 'callbackUrl'?: string | null;
68
- /**
69
- *
70
- * @type {MessageProvider}
71
- * @memberof MessageWebhookModel
72
- */
73
- 'messageProvider'?: MessageProvider;
74
- /**
75
- *
76
- * @type {boolean}
77
- * @memberof MessageWebhookModel
78
- */
79
- 'isEnabled'?: boolean;
80
- }
81
-
@@ -1,69 +0,0 @@
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 RegisterMessageWebhookCommand
24
- */
25
- export interface RegisterMessageWebhookCommand {
26
- /**
27
- *
28
- * @type {string}
29
- * @memberof RegisterMessageWebhookCommand
30
- */
31
- 'hospitalId'?: string;
32
- /**
33
- *
34
- * @type {string}
35
- * @memberof RegisterMessageWebhookCommand
36
- */
37
- 'businessId'?: string | null;
38
- /**
39
- *
40
- * @type {string}
41
- * @memberof RegisterMessageWebhookCommand
42
- */
43
- 'businessName'?: string | null;
44
- /**
45
- *
46
- * @type {string}
47
- * @memberof RegisterMessageWebhookCommand
48
- */
49
- 'phoneNumberId'?: string | null;
50
- /**
51
- *
52
- * @type {string}
53
- * @memberof RegisterMessageWebhookCommand
54
- */
55
- 'namespace'?: string | null;
56
- /**
57
- *
58
- * @type {MessageProvider}
59
- * @memberof RegisterMessageWebhookCommand
60
- */
61
- 'messageProvider'?: MessageProvider;
62
- /**
63
- *
64
- * @type {boolean}
65
- * @memberof RegisterMessageWebhookCommand
66
- */
67
- 'enabled'?: boolean;
68
- }
69
-