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.
Files changed (33) hide show
  1. package/lib/api/message-webhooks-api.d.ts +237 -0
  2. package/lib/api/message-webhooks-api.d.ts.map +1 -0
  3. package/lib/api/message-webhooks-api.js +476 -0
  4. package/lib/api/specialty-types-api.d.ts +16 -16
  5. package/lib/api/specialty-types-api.js +16 -16
  6. package/lib/api.d.ts +1 -0
  7. package/lib/api.d.ts.map +1 -1
  8. package/lib/api.js +1 -0
  9. package/lib/models/index.d.ts +4 -0
  10. package/lib/models/index.d.ts.map +1 -1
  11. package/lib/models/index.js +4 -0
  12. package/lib/models/message-provider.d.ts +21 -0
  13. package/lib/models/message-provider.d.ts.map +1 -0
  14. package/lib/models/message-provider.js +24 -0
  15. package/lib/models/message-webhook-model.d.ts +56 -0
  16. package/lib/models/message-webhook-model.d.ts.map +1 -0
  17. package/lib/models/message-webhook-model.js +15 -0
  18. package/lib/models/register-message-webhook-command.d.ts +44 -0
  19. package/lib/models/register-message-webhook-command.d.ts.map +1 -0
  20. package/lib/models/register-message-webhook-command.js +15 -0
  21. package/lib/models/toggle-message-webhook-command.d.ts +25 -0
  22. package/lib/models/toggle-message-webhook-command.d.ts.map +1 -0
  23. package/lib/models/toggle-message-webhook-command.js +15 -0
  24. package/package.json +1 -1
  25. package/src/.openapi-generator/FILES +5 -0
  26. package/src/api/message-webhooks-api.ts +419 -0
  27. package/src/api/specialty-types-api.ts +16 -16
  28. package/src/api.ts +1 -0
  29. package/src/models/index.ts +4 -0
  30. package/src/models/message-provider.ts +30 -0
  31. package/src/models/message-webhook-model.ts +63 -0
  32. package/src/models/register-message-webhook-command.ts +51 -0
  33. package/src/models/toggle-message-webhook-command.ts +30 -0
@@ -0,0 +1,476 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * CloudHospital Admin Api
6
+ * CloudHospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: developer@icloudhospital.com
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ var __extends = (this && this.__extends) || (function () {
16
+ var extendStatics = function (d, b) {
17
+ extendStatics = Object.setPrototypeOf ||
18
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
+ function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
+ return extendStatics(d, b);
21
+ };
22
+ return function (d, b) {
23
+ if (typeof b !== "function" && b !== null)
24
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
+ extendStatics(d, b);
26
+ function __() { this.constructor = d; }
27
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
+ };
29
+ })();
30
+ var __assign = (this && this.__assign) || function () {
31
+ __assign = Object.assign || function(t) {
32
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
33
+ s = arguments[i];
34
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
35
+ t[p] = s[p];
36
+ }
37
+ return t;
38
+ };
39
+ return __assign.apply(this, arguments);
40
+ };
41
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
42
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
43
+ return new (P || (P = Promise))(function (resolve, reject) {
44
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
45
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
46
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
47
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
48
+ });
49
+ };
50
+ var __generator = (this && this.__generator) || function (thisArg, body) {
51
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
52
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
53
+ function verb(n) { return function (v) { return step([n, v]); }; }
54
+ function step(op) {
55
+ if (f) throw new TypeError("Generator is already executing.");
56
+ while (g && (g = 0, op[0] && (_ = 0)), _) try {
57
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
58
+ if (y = 0, t) op = [op[0] & 2, t.value];
59
+ switch (op[0]) {
60
+ case 0: case 1: t = op; break;
61
+ case 4: _.label++; return { value: op[1], done: false };
62
+ case 5: _.label++; y = op[1]; op = [0]; continue;
63
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
64
+ default:
65
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
66
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
67
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
68
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
69
+ if (t[2]) _.ops.pop();
70
+ _.trys.pop(); continue;
71
+ }
72
+ op = body.call(thisArg, _);
73
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
74
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
75
+ }
76
+ };
77
+ var __importDefault = (this && this.__importDefault) || function (mod) {
78
+ return (mod && mod.__esModule) ? mod : { "default": mod };
79
+ };
80
+ Object.defineProperty(exports, "__esModule", { value: true });
81
+ exports.MessageWebhooksApi = exports.MessageWebhooksApiFactory = exports.MessageWebhooksApiFp = exports.MessageWebhooksApiAxiosParamCreator = void 0;
82
+ var axios_1 = __importDefault(require("axios"));
83
+ // Some imports not used depending on template conditions
84
+ // @ts-ignore
85
+ var common_1 = require("../common");
86
+ // @ts-ignore
87
+ var base_1 = require("../base");
88
+ /**
89
+ * MessageWebhooksApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var MessageWebhooksApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary Get list of message webhooks related to the hospital
98
+ * @param {string} hospitalId
99
+ * @param {*} [options] Override http request option.
100
+ * @throws {RequiredError}
101
+ */
102
+ apiV1MessagewebhooksHospitalIdGet: function (hospitalId, options) {
103
+ if (options === void 0) { options = {}; }
104
+ return __awaiter(_this, void 0, void 0, function () {
105
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
106
+ return __generator(this, function (_a) {
107
+ switch (_a.label) {
108
+ case 0:
109
+ // verify required parameter 'hospitalId' is not null or undefined
110
+ (0, common_1.assertParamExists)('apiV1MessagewebhooksHospitalIdGet', 'hospitalId', hospitalId);
111
+ localVarPath = "/api/v1/messagewebhooks/{hospitalId}"
112
+ .replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
113
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
114
+ if (configuration) {
115
+ baseOptions = configuration.baseOptions;
116
+ }
117
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
118
+ localVarHeaderParameter = {};
119
+ localVarQueryParameter = {};
120
+ // authentication oauth2 required
121
+ // oauth required
122
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
123
+ case 1:
124
+ // authentication oauth2 required
125
+ // oauth required
126
+ _a.sent();
127
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
128
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
129
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
130
+ return [2 /*return*/, {
131
+ url: (0, common_1.toPathString)(localVarUrlObj),
132
+ options: localVarRequestOptions,
133
+ }];
134
+ }
135
+ });
136
+ });
137
+ },
138
+ /**
139
+ *
140
+ * @summary Create message webhook on CH-Message-Broker
141
+ * @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
142
+ * @param {*} [options] Override http request option.
143
+ * @throws {RequiredError}
144
+ */
145
+ apiV1MessagewebhooksPost: function (registerMessageWebhookCommand, options) {
146
+ if (options === void 0) { options = {}; }
147
+ return __awaiter(_this, void 0, void 0, function () {
148
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
149
+ return __generator(this, function (_a) {
150
+ switch (_a.label) {
151
+ case 0:
152
+ localVarPath = "/api/v1/messagewebhooks";
153
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
154
+ if (configuration) {
155
+ baseOptions = configuration.baseOptions;
156
+ }
157
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
158
+ localVarHeaderParameter = {};
159
+ localVarQueryParameter = {};
160
+ // authentication oauth2 required
161
+ // oauth required
162
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
163
+ case 1:
164
+ // authentication oauth2 required
165
+ // oauth required
166
+ _a.sent();
167
+ localVarHeaderParameter['Content-Type'] = 'application/json';
168
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
169
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
171
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerMessageWebhookCommand, localVarRequestOptions, configuration);
172
+ return [2 /*return*/, {
173
+ url: (0, common_1.toPathString)(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ }];
176
+ }
177
+ });
178
+ });
179
+ },
180
+ /**
181
+ *
182
+ * @summary Delete message webhook by webhookId
183
+ * @param {string} webhookId
184
+ * @param {*} [options] Override http request option.
185
+ * @throws {RequiredError}
186
+ */
187
+ apiV1MessagewebhooksWebhookIdDelete: function (webhookId, options) {
188
+ if (options === void 0) { options = {}; }
189
+ return __awaiter(_this, void 0, void 0, function () {
190
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
191
+ return __generator(this, function (_a) {
192
+ switch (_a.label) {
193
+ case 0:
194
+ // verify required parameter 'webhookId' is not null or undefined
195
+ (0, common_1.assertParamExists)('apiV1MessagewebhooksWebhookIdDelete', 'webhookId', webhookId);
196
+ localVarPath = "/api/v1/messagewebhooks/{webhookId}"
197
+ .replace("{".concat("webhookId", "}"), encodeURIComponent(String(webhookId)));
198
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
199
+ if (configuration) {
200
+ baseOptions = configuration.baseOptions;
201
+ }
202
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
203
+ localVarHeaderParameter = {};
204
+ localVarQueryParameter = {};
205
+ // authentication oauth2 required
206
+ // oauth required
207
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
208
+ case 1:
209
+ // authentication oauth2 required
210
+ // oauth required
211
+ _a.sent();
212
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
213
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
214
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
215
+ return [2 /*return*/, {
216
+ url: (0, common_1.toPathString)(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ }];
219
+ }
220
+ });
221
+ });
222
+ },
223
+ /**
224
+ *
225
+ * @summary Update message webhook by webhookId
226
+ * @param {string} webhookId
227
+ * @param {ToggleMessageWebhookCommand} [toggleMessageWebhookCommand]
228
+ * @param {*} [options] Override http request option.
229
+ * @throws {RequiredError}
230
+ */
231
+ apiV1MessagewebhooksWebhookIdPut: function (webhookId, toggleMessageWebhookCommand, options) {
232
+ if (options === void 0) { options = {}; }
233
+ return __awaiter(_this, void 0, void 0, function () {
234
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
235
+ return __generator(this, function (_a) {
236
+ switch (_a.label) {
237
+ case 0:
238
+ // verify required parameter 'webhookId' is not null or undefined
239
+ (0, common_1.assertParamExists)('apiV1MessagewebhooksWebhookIdPut', 'webhookId', webhookId);
240
+ localVarPath = "/api/v1/messagewebhooks/{webhookId}"
241
+ .replace("{".concat("webhookId", "}"), encodeURIComponent(String(webhookId)));
242
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
243
+ if (configuration) {
244
+ baseOptions = configuration.baseOptions;
245
+ }
246
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
247
+ localVarHeaderParameter = {};
248
+ localVarQueryParameter = {};
249
+ // authentication oauth2 required
250
+ // oauth required
251
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
252
+ case 1:
253
+ // authentication oauth2 required
254
+ // oauth required
255
+ _a.sent();
256
+ localVarHeaderParameter['Content-Type'] = 'application/json';
257
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
258
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
259
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
260
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(toggleMessageWebhookCommand, localVarRequestOptions, configuration);
261
+ return [2 /*return*/, {
262
+ url: (0, common_1.toPathString)(localVarUrlObj),
263
+ options: localVarRequestOptions,
264
+ }];
265
+ }
266
+ });
267
+ });
268
+ },
269
+ };
270
+ };
271
+ exports.MessageWebhooksApiAxiosParamCreator = MessageWebhooksApiAxiosParamCreator;
272
+ /**
273
+ * MessageWebhooksApi - functional programming interface
274
+ * @export
275
+ */
276
+ var MessageWebhooksApiFp = function (configuration) {
277
+ var localVarAxiosParamCreator = (0, exports.MessageWebhooksApiAxiosParamCreator)(configuration);
278
+ return {
279
+ /**
280
+ *
281
+ * @summary Get list of message webhooks related to the hospital
282
+ * @param {string} hospitalId
283
+ * @param {*} [options] Override http request option.
284
+ * @throws {RequiredError}
285
+ */
286
+ apiV1MessagewebhooksHospitalIdGet: function (hospitalId, options) {
287
+ return __awaiter(this, void 0, void 0, function () {
288
+ var localVarAxiosArgs;
289
+ return __generator(this, function (_a) {
290
+ switch (_a.label) {
291
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksHospitalIdGet(hospitalId, options)];
292
+ case 1:
293
+ localVarAxiosArgs = _a.sent();
294
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
295
+ }
296
+ });
297
+ });
298
+ },
299
+ /**
300
+ *
301
+ * @summary Create message webhook on CH-Message-Broker
302
+ * @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
303
+ * @param {*} [options] Override http request option.
304
+ * @throws {RequiredError}
305
+ */
306
+ apiV1MessagewebhooksPost: function (registerMessageWebhookCommand, options) {
307
+ return __awaiter(this, void 0, void 0, function () {
308
+ var localVarAxiosArgs;
309
+ return __generator(this, function (_a) {
310
+ switch (_a.label) {
311
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options)];
312
+ case 1:
313
+ localVarAxiosArgs = _a.sent();
314
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
315
+ }
316
+ });
317
+ });
318
+ },
319
+ /**
320
+ *
321
+ * @summary Delete message webhook by webhookId
322
+ * @param {string} webhookId
323
+ * @param {*} [options] Override http request option.
324
+ * @throws {RequiredError}
325
+ */
326
+ apiV1MessagewebhooksWebhookIdDelete: function (webhookId, options) {
327
+ return __awaiter(this, void 0, void 0, function () {
328
+ var localVarAxiosArgs;
329
+ return __generator(this, function (_a) {
330
+ switch (_a.label) {
331
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdDelete(webhookId, options)];
332
+ case 1:
333
+ localVarAxiosArgs = _a.sent();
334
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
335
+ }
336
+ });
337
+ });
338
+ },
339
+ /**
340
+ *
341
+ * @summary Update message webhook by webhookId
342
+ * @param {string} webhookId
343
+ * @param {ToggleMessageWebhookCommand} [toggleMessageWebhookCommand]
344
+ * @param {*} [options] Override http request option.
345
+ * @throws {RequiredError}
346
+ */
347
+ apiV1MessagewebhooksWebhookIdPut: function (webhookId, toggleMessageWebhookCommand, options) {
348
+ return __awaiter(this, void 0, void 0, function () {
349
+ var localVarAxiosArgs;
350
+ return __generator(this, function (_a) {
351
+ switch (_a.label) {
352
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdPut(webhookId, toggleMessageWebhookCommand, options)];
353
+ case 1:
354
+ localVarAxiosArgs = _a.sent();
355
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
356
+ }
357
+ });
358
+ });
359
+ },
360
+ };
361
+ };
362
+ exports.MessageWebhooksApiFp = MessageWebhooksApiFp;
363
+ /**
364
+ * MessageWebhooksApi - factory interface
365
+ * @export
366
+ */
367
+ var MessageWebhooksApiFactory = function (configuration, basePath, axios) {
368
+ var localVarFp = (0, exports.MessageWebhooksApiFp)(configuration);
369
+ return {
370
+ /**
371
+ *
372
+ * @summary Get list of message webhooks related to the hospital
373
+ * @param {string} hospitalId
374
+ * @param {*} [options] Override http request option.
375
+ * @throws {RequiredError}
376
+ */
377
+ apiV1MessagewebhooksHospitalIdGet: function (hospitalId, options) {
378
+ return localVarFp.apiV1MessagewebhooksHospitalIdGet(hospitalId, options).then(function (request) { return request(axios, basePath); });
379
+ },
380
+ /**
381
+ *
382
+ * @summary Create message webhook on CH-Message-Broker
383
+ * @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
384
+ * @param {*} [options] Override http request option.
385
+ * @throws {RequiredError}
386
+ */
387
+ apiV1MessagewebhooksPost: function (registerMessageWebhookCommand, options) {
388
+ return localVarFp.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options).then(function (request) { return request(axios, basePath); });
389
+ },
390
+ /**
391
+ *
392
+ * @summary Delete message webhook by webhookId
393
+ * @param {string} webhookId
394
+ * @param {*} [options] Override http request option.
395
+ * @throws {RequiredError}
396
+ */
397
+ apiV1MessagewebhooksWebhookIdDelete: function (webhookId, options) {
398
+ return localVarFp.apiV1MessagewebhooksWebhookIdDelete(webhookId, options).then(function (request) { return request(axios, basePath); });
399
+ },
400
+ /**
401
+ *
402
+ * @summary Update message webhook by webhookId
403
+ * @param {string} webhookId
404
+ * @param {ToggleMessageWebhookCommand} [toggleMessageWebhookCommand]
405
+ * @param {*} [options] Override http request option.
406
+ * @throws {RequiredError}
407
+ */
408
+ apiV1MessagewebhooksWebhookIdPut: function (webhookId, toggleMessageWebhookCommand, options) {
409
+ return localVarFp.apiV1MessagewebhooksWebhookIdPut(webhookId, toggleMessageWebhookCommand, options).then(function (request) { return request(axios, basePath); });
410
+ },
411
+ };
412
+ };
413
+ exports.MessageWebhooksApiFactory = MessageWebhooksApiFactory;
414
+ /**
415
+ * MessageWebhooksApi - object-oriented interface
416
+ * @export
417
+ * @class MessageWebhooksApi
418
+ * @extends {BaseAPI}
419
+ */
420
+ var MessageWebhooksApi = /** @class */ (function (_super) {
421
+ __extends(MessageWebhooksApi, _super);
422
+ function MessageWebhooksApi() {
423
+ return _super !== null && _super.apply(this, arguments) || this;
424
+ }
425
+ /**
426
+ *
427
+ * @summary Get list of message webhooks related to the hospital
428
+ * @param {MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest} requestParameters Request parameters.
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ * @memberof MessageWebhooksApi
432
+ */
433
+ MessageWebhooksApi.prototype.apiV1MessagewebhooksHospitalIdGet = function (requestParameters, options) {
434
+ var _this = this;
435
+ return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksHospitalIdGet(requestParameters.hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
436
+ };
437
+ /**
438
+ *
439
+ * @summary Create message webhook on CH-Message-Broker
440
+ * @param {MessageWebhooksApiApiV1MessagewebhooksPostRequest} requestParameters Request parameters.
441
+ * @param {*} [options] Override http request option.
442
+ * @throws {RequiredError}
443
+ * @memberof MessageWebhooksApi
444
+ */
445
+ MessageWebhooksApi.prototype.apiV1MessagewebhooksPost = function (requestParameters, options) {
446
+ var _this = this;
447
+ if (requestParameters === void 0) { requestParameters = {}; }
448
+ return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksPost(requestParameters.registerMessageWebhookCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
449
+ };
450
+ /**
451
+ *
452
+ * @summary Delete message webhook by webhookId
453
+ * @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest} requestParameters Request parameters.
454
+ * @param {*} [options] Override http request option.
455
+ * @throws {RequiredError}
456
+ * @memberof MessageWebhooksApi
457
+ */
458
+ MessageWebhooksApi.prototype.apiV1MessagewebhooksWebhookIdDelete = function (requestParameters, options) {
459
+ var _this = this;
460
+ return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksWebhookIdDelete(requestParameters.webhookId, options).then(function (request) { return request(_this.axios, _this.basePath); });
461
+ };
462
+ /**
463
+ *
464
+ * @summary Update message webhook by webhookId
465
+ * @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest} requestParameters Request parameters.
466
+ * @param {*} [options] Override http request option.
467
+ * @throws {RequiredError}
468
+ * @memberof MessageWebhooksApi
469
+ */
470
+ MessageWebhooksApi.prototype.apiV1MessagewebhooksWebhookIdPut = function (requestParameters, options) {
471
+ var _this = this;
472
+ return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksWebhookIdPut(requestParameters.webhookId, requestParameters.toggleMessageWebhookCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
473
+ };
474
+ return MessageWebhooksApi;
475
+ }(base_1.BaseAPI));
476
+ exports.MessageWebhooksApi = MessageWebhooksApi;
@@ -62,7 +62,7 @@ export declare const SpecialtyTypesApiAxiosParamCreator: (configuration?: Config
62
62
  apiV1SpecialtytypesPost: (createSpecialtyTypeCommand?: CreateSpecialtyTypeCommand, options?: AxiosRequestConfig) => Promise<RequestArgs>;
63
63
  /**
64
64
  *
65
- * @summary Get all Hospitals.
65
+ * @summary Get all Departments with simplified model.
66
66
  * @param {string} [id]
67
67
  * @param {string} [name]
68
68
  * @param {string} [description]
@@ -83,7 +83,7 @@ export declare const SpecialtyTypesApiAxiosParamCreator: (configuration?: Config
83
83
  apiV1SpecialtytypesSimpleGet: (id?: string, name?: string, description?: string, marketingType?: MarketingType, hospitalId?: string, created?: Date, ids?: Array<string>, specialtyTypeCategoryId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig) => Promise<RequestArgs>;
84
84
  /**
85
85
  *
86
- * @summary
86
+ * @summary Get department by slug
87
87
  * @param {string} slug
88
88
  * @param {string} [languageCode]
89
89
  * @param {boolean} [returnDefaultValue]
@@ -93,7 +93,7 @@ export declare const SpecialtyTypesApiAxiosParamCreator: (configuration?: Config
93
93
  apiV1SpecialtytypesSlugGet: (slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
94
94
  /**
95
95
  *
96
- * @summary Batch for countries sorting
96
+ * @summary Batch for departments sorting
97
97
  * @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
98
98
  * @param {*} [options] Override http request option.
99
99
  * @throws {RequiredError}
@@ -110,7 +110,7 @@ export declare const SpecialtyTypesApiAxiosParamCreator: (configuration?: Config
110
110
  apiV1SpecialtytypesSpecialtyTypeIdDelete: (specialtyTypeId: string, isPermanent?: boolean, options?: AxiosRequestConfig) => Promise<RequestArgs>;
111
111
  /**
112
112
  *
113
- * @summary
113
+ * @summary Get department
114
114
  * @param {string} specialtyTypeId
115
115
  * @param {string} [languageCode]
116
116
  * @param {boolean} [returnDefaultValue]
@@ -240,7 +240,7 @@ export declare const SpecialtyTypesApiFp: (configuration?: Configuration) => {
240
240
  apiV1SpecialtytypesPost(createSpecialtyTypeCommand?: CreateSpecialtyTypeCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtyTypeModel>>;
241
241
  /**
242
242
  *
243
- * @summary Get all Hospitals.
243
+ * @summary Get all Departments with simplified model.
244
244
  * @param {string} [id]
245
245
  * @param {string} [name]
246
246
  * @param {string} [description]
@@ -261,7 +261,7 @@ export declare const SpecialtyTypesApiFp: (configuration?: Configuration) => {
261
261
  apiV1SpecialtytypesSimpleGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, hospitalId?: string, created?: Date, ids?: Array<string>, specialtyTypeCategoryId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtyTypesSimpleModel>>;
262
262
  /**
263
263
  *
264
- * @summary
264
+ * @summary Get department by slug
265
265
  * @param {string} slug
266
266
  * @param {string} [languageCode]
267
267
  * @param {boolean} [returnDefaultValue]
@@ -271,7 +271,7 @@ export declare const SpecialtyTypesApiFp: (configuration?: Configuration) => {
271
271
  apiV1SpecialtytypesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SpecialtyTypeModel>>;
272
272
  /**
273
273
  *
274
- * @summary Batch for countries sorting
274
+ * @summary Batch for departments sorting
275
275
  * @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
276
276
  * @param {*} [options] Override http request option.
277
277
  * @throws {RequiredError}
@@ -288,7 +288,7 @@ export declare const SpecialtyTypesApiFp: (configuration?: Configuration) => {
288
288
  apiV1SpecialtytypesSpecialtyTypeIdDelete(specialtyTypeId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>>;
289
289
  /**
290
290
  *
291
- * @summary
291
+ * @summary Get department
292
292
  * @param {string} specialtyTypeId
293
293
  * @param {string} [languageCode]
294
294
  * @param {boolean} [returnDefaultValue]
@@ -418,7 +418,7 @@ export declare const SpecialtyTypesApiFactory: (configuration?: Configuration, b
418
418
  apiV1SpecialtytypesPost(createSpecialtyTypeCommand?: CreateSpecialtyTypeCommand, options?: any): AxiosPromise<SpecialtyTypeModel>;
419
419
  /**
420
420
  *
421
- * @summary Get all Hospitals.
421
+ * @summary Get all Departments with simplified model.
422
422
  * @param {string} [id]
423
423
  * @param {string} [name]
424
424
  * @param {string} [description]
@@ -439,7 +439,7 @@ export declare const SpecialtyTypesApiFactory: (configuration?: Configuration, b
439
439
  apiV1SpecialtytypesSimpleGet(id?: string, name?: string, description?: string, marketingType?: MarketingType, hospitalId?: string, created?: Date, ids?: Array<string>, specialtyTypeCategoryId?: string, languageCode?: string, showHidden?: boolean, returnDefaultValue?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<SpecialtyTypesSimpleModel>;
440
440
  /**
441
441
  *
442
- * @summary
442
+ * @summary Get department by slug
443
443
  * @param {string} slug
444
444
  * @param {string} [languageCode]
445
445
  * @param {boolean} [returnDefaultValue]
@@ -449,7 +449,7 @@ export declare const SpecialtyTypesApiFactory: (configuration?: Configuration, b
449
449
  apiV1SpecialtytypesSlugGet(slug: string, languageCode?: string, returnDefaultValue?: boolean, options?: any): AxiosPromise<SpecialtyTypeModel>;
450
450
  /**
451
451
  *
452
- * @summary Batch for countries sorting
452
+ * @summary Batch for departments sorting
453
453
  * @param {SpecialtyTypeSortingCommand} [specialtyTypeSortingCommand]
454
454
  * @param {*} [options] Override http request option.
455
455
  * @throws {RequiredError}
@@ -466,7 +466,7 @@ export declare const SpecialtyTypesApiFactory: (configuration?: Configuration, b
466
466
  apiV1SpecialtytypesSpecialtyTypeIdDelete(specialtyTypeId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean>;
467
467
  /**
468
468
  *
469
- * @summary
469
+ * @summary Get department
470
470
  * @param {string} specialtyTypeId
471
471
  * @param {string} [languageCode]
472
472
  * @param {boolean} [returnDefaultValue]
@@ -1059,7 +1059,7 @@ export declare class SpecialtyTypesApi extends BaseAPI {
1059
1059
  apiV1SpecialtytypesPost(requestParameters?: SpecialtyTypesApiApiV1SpecialtytypesPostRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SpecialtyTypeModel, any>>;
1060
1060
  /**
1061
1061
  *
1062
- * @summary Get all Hospitals.
1062
+ * @summary Get all Departments with simplified model.
1063
1063
  * @param {SpecialtyTypesApiApiV1SpecialtytypesSimpleGetRequest} requestParameters Request parameters.
1064
1064
  * @param {*} [options] Override http request option.
1065
1065
  * @throws {RequiredError}
@@ -1068,7 +1068,7 @@ export declare class SpecialtyTypesApi extends BaseAPI {
1068
1068
  apiV1SpecialtytypesSimpleGet(requestParameters?: SpecialtyTypesApiApiV1SpecialtytypesSimpleGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SpecialtyTypesSimpleModel, any>>;
1069
1069
  /**
1070
1070
  *
1071
- * @summary
1071
+ * @summary Get department by slug
1072
1072
  * @param {SpecialtyTypesApiApiV1SpecialtytypesSlugGetRequest} requestParameters Request parameters.
1073
1073
  * @param {*} [options] Override http request option.
1074
1074
  * @throws {RequiredError}
@@ -1077,7 +1077,7 @@ export declare class SpecialtyTypesApi extends BaseAPI {
1077
1077
  apiV1SpecialtytypesSlugGet(requestParameters: SpecialtyTypesApiApiV1SpecialtytypesSlugGetRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<SpecialtyTypeModel, any>>;
1078
1078
  /**
1079
1079
  *
1080
- * @summary Batch for countries sorting
1080
+ * @summary Batch for departments sorting
1081
1081
  * @param {SpecialtyTypesApiApiV1SpecialtytypesSortPutRequest} requestParameters Request parameters.
1082
1082
  * @param {*} [options] Override http request option.
1083
1083
  * @throws {RequiredError}
@@ -1095,7 +1095,7 @@ export declare class SpecialtyTypesApi extends BaseAPI {
1095
1095
  apiV1SpecialtytypesSpecialtyTypeIdDelete(requestParameters: SpecialtyTypesApiApiV1SpecialtytypesSpecialtyTypeIdDeleteRequest, options?: AxiosRequestConfig): Promise<import("axios").AxiosResponse<boolean, any>>;
1096
1096
  /**
1097
1097
  *
1098
- * @summary
1098
+ * @summary Get department
1099
1099
  * @param {SpecialtyTypesApiApiV1SpecialtytypesSpecialtyTypeIdGetRequest} requestParameters Request parameters.
1100
1100
  * @param {*} [options] Override http request option.
1101
1101
  * @throws {RequiredError}