ch-admin-api-client-typescript 5.41.0 → 5.42.0
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.d.ts +0 -1
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +0 -1
- package/lib/models/index.d.ts +0 -4
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +0 -4
- package/lib/models/notification-code.d.ts +2 -0
- package/lib/models/notification-code.d.ts.map +1 -1
- package/lib/models/notification-code.js +3 -1
- package/package.json +1 -1
- package/src/.openapi-generator/FILES +0 -5
- package/src/api.ts +0 -1
- package/src/models/index.ts +0 -4
- package/src/models/notification-code.ts +3 -1
- package/lib/api/message-webhooks-api.d.ts +0 -283
- package/lib/api/message-webhooks-api.d.ts.map +0 -1
- package/lib/api/message-webhooks-api.js +0 -561
- package/lib/models/message-provider.d.ts +0 -21
- package/lib/models/message-provider.d.ts.map +0 -1
- package/lib/models/message-provider.js +0 -24
- package/lib/models/message-webhook-model.d.ts +0 -74
- package/lib/models/message-webhook-model.d.ts.map +0 -1
- package/lib/models/message-webhook-model.js +0 -15
- package/lib/models/register-message-webhook-command.d.ts +0 -62
- package/lib/models/register-message-webhook-command.d.ts.map +0 -1
- package/lib/models/register-message-webhook-command.js +0 -15
- package/lib/models/update-message-webhook-command.d.ts +0 -43
- package/lib/models/update-message-webhook-command.d.ts.map +0 -1
- package/lib/models/update-message-webhook-command.js +0 -15
- package/src/api/message-webhooks-api.ts +0 -504
- package/src/models/message-provider.ts +0 -30
- package/src/models/message-webhook-model.ts +0 -81
- package/src/models/register-message-webhook-command.ts +0 -69
- package/src/models/update-message-webhook-command.ts +0 -48
|
@@ -1,561 +0,0 @@
|
|
|
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 Get list of message webhooks related to the hospital
|
|
141
|
-
* @param {string} hospitalId
|
|
142
|
-
* @param {*} [options] Override http request option.
|
|
143
|
-
* @throws {RequiredError}
|
|
144
|
-
*/
|
|
145
|
-
apiV1MessagewebhooksHospitalIdWhatsappGet: function (hospitalId, 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
|
-
// verify required parameter 'hospitalId' is not null or undefined
|
|
153
|
-
(0, common_1.assertParamExists)('apiV1MessagewebhooksHospitalIdWhatsappGet', 'hospitalId', hospitalId);
|
|
154
|
-
localVarPath = "/api/v1/messagewebhooks/{hospitalId}/whatsapp"
|
|
155
|
-
.replace("{".concat("hospitalId", "}"), encodeURIComponent(String(hospitalId)));
|
|
156
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
157
|
-
if (configuration) {
|
|
158
|
-
baseOptions = configuration.baseOptions;
|
|
159
|
-
}
|
|
160
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
161
|
-
localVarHeaderParameter = {};
|
|
162
|
-
localVarQueryParameter = {};
|
|
163
|
-
// authentication oauth2 required
|
|
164
|
-
// oauth required
|
|
165
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
166
|
-
case 1:
|
|
167
|
-
// authentication oauth2 required
|
|
168
|
-
// oauth required
|
|
169
|
-
_a.sent();
|
|
170
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
171
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
172
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
173
|
-
return [2 /*return*/, {
|
|
174
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
175
|
-
options: localVarRequestOptions,
|
|
176
|
-
}];
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
});
|
|
180
|
-
},
|
|
181
|
-
/**
|
|
182
|
-
*
|
|
183
|
-
* @summary Create message webhook on CH-Message-Broker
|
|
184
|
-
* @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
|
|
185
|
-
* @param {*} [options] Override http request option.
|
|
186
|
-
* @throws {RequiredError}
|
|
187
|
-
*/
|
|
188
|
-
apiV1MessagewebhooksPost: function (registerMessageWebhookCommand, options) {
|
|
189
|
-
if (options === void 0) { options = {}; }
|
|
190
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
191
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
192
|
-
return __generator(this, function (_a) {
|
|
193
|
-
switch (_a.label) {
|
|
194
|
-
case 0:
|
|
195
|
-
localVarPath = "/api/v1/messagewebhooks";
|
|
196
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
197
|
-
if (configuration) {
|
|
198
|
-
baseOptions = configuration.baseOptions;
|
|
199
|
-
}
|
|
200
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
201
|
-
localVarHeaderParameter = {};
|
|
202
|
-
localVarQueryParameter = {};
|
|
203
|
-
// authentication oauth2 required
|
|
204
|
-
// oauth required
|
|
205
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
206
|
-
case 1:
|
|
207
|
-
// authentication oauth2 required
|
|
208
|
-
// oauth required
|
|
209
|
-
_a.sent();
|
|
210
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
211
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
212
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
213
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
214
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(registerMessageWebhookCommand, localVarRequestOptions, configuration);
|
|
215
|
-
return [2 /*return*/, {
|
|
216
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
217
|
-
options: localVarRequestOptions,
|
|
218
|
-
}];
|
|
219
|
-
}
|
|
220
|
-
});
|
|
221
|
-
});
|
|
222
|
-
},
|
|
223
|
-
/**
|
|
224
|
-
*
|
|
225
|
-
* @summary Delete message webhook by webhookId
|
|
226
|
-
* @param {string} webhookId
|
|
227
|
-
* @param {*} [options] Override http request option.
|
|
228
|
-
* @throws {RequiredError}
|
|
229
|
-
*/
|
|
230
|
-
apiV1MessagewebhooksWebhookIdDelete: function (webhookId, options) {
|
|
231
|
-
if (options === void 0) { options = {}; }
|
|
232
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
233
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
234
|
-
return __generator(this, function (_a) {
|
|
235
|
-
switch (_a.label) {
|
|
236
|
-
case 0:
|
|
237
|
-
// verify required parameter 'webhookId' is not null or undefined
|
|
238
|
-
(0, common_1.assertParamExists)('apiV1MessagewebhooksWebhookIdDelete', 'webhookId', webhookId);
|
|
239
|
-
localVarPath = "/api/v1/messagewebhooks/{webhookId}"
|
|
240
|
-
.replace("{".concat("webhookId", "}"), encodeURIComponent(String(webhookId)));
|
|
241
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
242
|
-
if (configuration) {
|
|
243
|
-
baseOptions = configuration.baseOptions;
|
|
244
|
-
}
|
|
245
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
246
|
-
localVarHeaderParameter = {};
|
|
247
|
-
localVarQueryParameter = {};
|
|
248
|
-
// authentication oauth2 required
|
|
249
|
-
// oauth required
|
|
250
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
251
|
-
case 1:
|
|
252
|
-
// authentication oauth2 required
|
|
253
|
-
// oauth required
|
|
254
|
-
_a.sent();
|
|
255
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
256
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
257
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
258
|
-
return [2 /*return*/, {
|
|
259
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
260
|
-
options: localVarRequestOptions,
|
|
261
|
-
}];
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
});
|
|
265
|
-
},
|
|
266
|
-
/**
|
|
267
|
-
*
|
|
268
|
-
* @summary Update message webhook by webhookId
|
|
269
|
-
* @param {string} webhookId
|
|
270
|
-
* @param {UpdateMessageWebhookCommand} [updateMessageWebhookCommand]
|
|
271
|
-
* @param {*} [options] Override http request option.
|
|
272
|
-
* @throws {RequiredError}
|
|
273
|
-
*/
|
|
274
|
-
apiV1MessagewebhooksWebhookIdPut: function (webhookId, updateMessageWebhookCommand, options) {
|
|
275
|
-
if (options === void 0) { options = {}; }
|
|
276
|
-
return __awaiter(_this, void 0, void 0, function () {
|
|
277
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
278
|
-
return __generator(this, function (_a) {
|
|
279
|
-
switch (_a.label) {
|
|
280
|
-
case 0:
|
|
281
|
-
// verify required parameter 'webhookId' is not null or undefined
|
|
282
|
-
(0, common_1.assertParamExists)('apiV1MessagewebhooksWebhookIdPut', 'webhookId', webhookId);
|
|
283
|
-
localVarPath = "/api/v1/messagewebhooks/{webhookId}"
|
|
284
|
-
.replace("{".concat("webhookId", "}"), encodeURIComponent(String(webhookId)));
|
|
285
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
286
|
-
if (configuration) {
|
|
287
|
-
baseOptions = configuration.baseOptions;
|
|
288
|
-
}
|
|
289
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
290
|
-
localVarHeaderParameter = {};
|
|
291
|
-
localVarQueryParameter = {};
|
|
292
|
-
// authentication oauth2 required
|
|
293
|
-
// oauth required
|
|
294
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)];
|
|
295
|
-
case 1:
|
|
296
|
-
// authentication oauth2 required
|
|
297
|
-
// oauth required
|
|
298
|
-
_a.sent();
|
|
299
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
300
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
301
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
302
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
303
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateMessageWebhookCommand, localVarRequestOptions, configuration);
|
|
304
|
-
return [2 /*return*/, {
|
|
305
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
306
|
-
options: localVarRequestOptions,
|
|
307
|
-
}];
|
|
308
|
-
}
|
|
309
|
-
});
|
|
310
|
-
});
|
|
311
|
-
},
|
|
312
|
-
};
|
|
313
|
-
};
|
|
314
|
-
exports.MessageWebhooksApiAxiosParamCreator = MessageWebhooksApiAxiosParamCreator;
|
|
315
|
-
/**
|
|
316
|
-
* MessageWebhooksApi - functional programming interface
|
|
317
|
-
* @export
|
|
318
|
-
*/
|
|
319
|
-
var MessageWebhooksApiFp = function (configuration) {
|
|
320
|
-
var localVarAxiosParamCreator = (0, exports.MessageWebhooksApiAxiosParamCreator)(configuration);
|
|
321
|
-
return {
|
|
322
|
-
/**
|
|
323
|
-
*
|
|
324
|
-
* @summary Get list of message webhooks related to the hospital
|
|
325
|
-
* @param {string} hospitalId
|
|
326
|
-
* @param {*} [options] Override http request option.
|
|
327
|
-
* @throws {RequiredError}
|
|
328
|
-
*/
|
|
329
|
-
apiV1MessagewebhooksHospitalIdGet: function (hospitalId, options) {
|
|
330
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
331
|
-
var localVarAxiosArgs;
|
|
332
|
-
return __generator(this, function (_a) {
|
|
333
|
-
switch (_a.label) {
|
|
334
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksHospitalIdGet(hospitalId, options)];
|
|
335
|
-
case 1:
|
|
336
|
-
localVarAxiosArgs = _a.sent();
|
|
337
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
338
|
-
}
|
|
339
|
-
});
|
|
340
|
-
});
|
|
341
|
-
},
|
|
342
|
-
/**
|
|
343
|
-
*
|
|
344
|
-
* @summary Get list of message webhooks related to the hospital
|
|
345
|
-
* @param {string} hospitalId
|
|
346
|
-
* @param {*} [options] Override http request option.
|
|
347
|
-
* @throws {RequiredError}
|
|
348
|
-
*/
|
|
349
|
-
apiV1MessagewebhooksHospitalIdWhatsappGet: function (hospitalId, options) {
|
|
350
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
351
|
-
var localVarAxiosArgs;
|
|
352
|
-
return __generator(this, function (_a) {
|
|
353
|
-
switch (_a.label) {
|
|
354
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksHospitalIdWhatsappGet(hospitalId, options)];
|
|
355
|
-
case 1:
|
|
356
|
-
localVarAxiosArgs = _a.sent();
|
|
357
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
358
|
-
}
|
|
359
|
-
});
|
|
360
|
-
});
|
|
361
|
-
},
|
|
362
|
-
/**
|
|
363
|
-
*
|
|
364
|
-
* @summary Create message webhook on CH-Message-Broker
|
|
365
|
-
* @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
|
|
366
|
-
* @param {*} [options] Override http request option.
|
|
367
|
-
* @throws {RequiredError}
|
|
368
|
-
*/
|
|
369
|
-
apiV1MessagewebhooksPost: function (registerMessageWebhookCommand, options) {
|
|
370
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
371
|
-
var localVarAxiosArgs;
|
|
372
|
-
return __generator(this, function (_a) {
|
|
373
|
-
switch (_a.label) {
|
|
374
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options)];
|
|
375
|
-
case 1:
|
|
376
|
-
localVarAxiosArgs = _a.sent();
|
|
377
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
378
|
-
}
|
|
379
|
-
});
|
|
380
|
-
});
|
|
381
|
-
},
|
|
382
|
-
/**
|
|
383
|
-
*
|
|
384
|
-
* @summary Delete message webhook by webhookId
|
|
385
|
-
* @param {string} webhookId
|
|
386
|
-
* @param {*} [options] Override http request option.
|
|
387
|
-
* @throws {RequiredError}
|
|
388
|
-
*/
|
|
389
|
-
apiV1MessagewebhooksWebhookIdDelete: function (webhookId, options) {
|
|
390
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
391
|
-
var localVarAxiosArgs;
|
|
392
|
-
return __generator(this, function (_a) {
|
|
393
|
-
switch (_a.label) {
|
|
394
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdDelete(webhookId, options)];
|
|
395
|
-
case 1:
|
|
396
|
-
localVarAxiosArgs = _a.sent();
|
|
397
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
398
|
-
}
|
|
399
|
-
});
|
|
400
|
-
});
|
|
401
|
-
},
|
|
402
|
-
/**
|
|
403
|
-
*
|
|
404
|
-
* @summary Update message webhook by webhookId
|
|
405
|
-
* @param {string} webhookId
|
|
406
|
-
* @param {UpdateMessageWebhookCommand} [updateMessageWebhookCommand]
|
|
407
|
-
* @param {*} [options] Override http request option.
|
|
408
|
-
* @throws {RequiredError}
|
|
409
|
-
*/
|
|
410
|
-
apiV1MessagewebhooksWebhookIdPut: function (webhookId, updateMessageWebhookCommand, options) {
|
|
411
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
412
|
-
var localVarAxiosArgs;
|
|
413
|
-
return __generator(this, function (_a) {
|
|
414
|
-
switch (_a.label) {
|
|
415
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1MessagewebhooksWebhookIdPut(webhookId, updateMessageWebhookCommand, options)];
|
|
416
|
-
case 1:
|
|
417
|
-
localVarAxiosArgs = _a.sent();
|
|
418
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
419
|
-
}
|
|
420
|
-
});
|
|
421
|
-
});
|
|
422
|
-
},
|
|
423
|
-
};
|
|
424
|
-
};
|
|
425
|
-
exports.MessageWebhooksApiFp = MessageWebhooksApiFp;
|
|
426
|
-
/**
|
|
427
|
-
* MessageWebhooksApi - factory interface
|
|
428
|
-
* @export
|
|
429
|
-
*/
|
|
430
|
-
var MessageWebhooksApiFactory = function (configuration, basePath, axios) {
|
|
431
|
-
var localVarFp = (0, exports.MessageWebhooksApiFp)(configuration);
|
|
432
|
-
return {
|
|
433
|
-
/**
|
|
434
|
-
*
|
|
435
|
-
* @summary Get list of message webhooks related to the hospital
|
|
436
|
-
* @param {string} hospitalId
|
|
437
|
-
* @param {*} [options] Override http request option.
|
|
438
|
-
* @throws {RequiredError}
|
|
439
|
-
*/
|
|
440
|
-
apiV1MessagewebhooksHospitalIdGet: function (hospitalId, options) {
|
|
441
|
-
return localVarFp.apiV1MessagewebhooksHospitalIdGet(hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
442
|
-
},
|
|
443
|
-
/**
|
|
444
|
-
*
|
|
445
|
-
* @summary Get list of message webhooks related to the hospital
|
|
446
|
-
* @param {string} hospitalId
|
|
447
|
-
* @param {*} [options] Override http request option.
|
|
448
|
-
* @throws {RequiredError}
|
|
449
|
-
*/
|
|
450
|
-
apiV1MessagewebhooksHospitalIdWhatsappGet: function (hospitalId, options) {
|
|
451
|
-
return localVarFp.apiV1MessagewebhooksHospitalIdWhatsappGet(hospitalId, options).then(function (request) { return request(axios, basePath); });
|
|
452
|
-
},
|
|
453
|
-
/**
|
|
454
|
-
*
|
|
455
|
-
* @summary Create message webhook on CH-Message-Broker
|
|
456
|
-
* @param {RegisterMessageWebhookCommand} [registerMessageWebhookCommand]
|
|
457
|
-
* @param {*} [options] Override http request option.
|
|
458
|
-
* @throws {RequiredError}
|
|
459
|
-
*/
|
|
460
|
-
apiV1MessagewebhooksPost: function (registerMessageWebhookCommand, options) {
|
|
461
|
-
return localVarFp.apiV1MessagewebhooksPost(registerMessageWebhookCommand, options).then(function (request) { return request(axios, basePath); });
|
|
462
|
-
},
|
|
463
|
-
/**
|
|
464
|
-
*
|
|
465
|
-
* @summary Delete message webhook by webhookId
|
|
466
|
-
* @param {string} webhookId
|
|
467
|
-
* @param {*} [options] Override http request option.
|
|
468
|
-
* @throws {RequiredError}
|
|
469
|
-
*/
|
|
470
|
-
apiV1MessagewebhooksWebhookIdDelete: function (webhookId, options) {
|
|
471
|
-
return localVarFp.apiV1MessagewebhooksWebhookIdDelete(webhookId, options).then(function (request) { return request(axios, basePath); });
|
|
472
|
-
},
|
|
473
|
-
/**
|
|
474
|
-
*
|
|
475
|
-
* @summary Update message webhook by webhookId
|
|
476
|
-
* @param {string} webhookId
|
|
477
|
-
* @param {UpdateMessageWebhookCommand} [updateMessageWebhookCommand]
|
|
478
|
-
* @param {*} [options] Override http request option.
|
|
479
|
-
* @throws {RequiredError}
|
|
480
|
-
*/
|
|
481
|
-
apiV1MessagewebhooksWebhookIdPut: function (webhookId, updateMessageWebhookCommand, options) {
|
|
482
|
-
return localVarFp.apiV1MessagewebhooksWebhookIdPut(webhookId, updateMessageWebhookCommand, options).then(function (request) { return request(axios, basePath); });
|
|
483
|
-
},
|
|
484
|
-
};
|
|
485
|
-
};
|
|
486
|
-
exports.MessageWebhooksApiFactory = MessageWebhooksApiFactory;
|
|
487
|
-
/**
|
|
488
|
-
* MessageWebhooksApi - object-oriented interface
|
|
489
|
-
* @export
|
|
490
|
-
* @class MessageWebhooksApi
|
|
491
|
-
* @extends {BaseAPI}
|
|
492
|
-
*/
|
|
493
|
-
var MessageWebhooksApi = /** @class */ (function (_super) {
|
|
494
|
-
__extends(MessageWebhooksApi, _super);
|
|
495
|
-
function MessageWebhooksApi() {
|
|
496
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
497
|
-
}
|
|
498
|
-
/**
|
|
499
|
-
*
|
|
500
|
-
* @summary Get list of message webhooks related to the hospital
|
|
501
|
-
* @param {MessageWebhooksApiApiV1MessagewebhooksHospitalIdGetRequest} requestParameters Request parameters.
|
|
502
|
-
* @param {*} [options] Override http request option.
|
|
503
|
-
* @throws {RequiredError}
|
|
504
|
-
* @memberof MessageWebhooksApi
|
|
505
|
-
*/
|
|
506
|
-
MessageWebhooksApi.prototype.apiV1MessagewebhooksHospitalIdGet = function (requestParameters, options) {
|
|
507
|
-
var _this = this;
|
|
508
|
-
return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksHospitalIdGet(requestParameters.hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
509
|
-
};
|
|
510
|
-
/**
|
|
511
|
-
*
|
|
512
|
-
* @summary Get list of message webhooks related to the hospital
|
|
513
|
-
* @param {MessageWebhooksApiApiV1MessagewebhooksHospitalIdWhatsappGetRequest} requestParameters Request parameters.
|
|
514
|
-
* @param {*} [options] Override http request option.
|
|
515
|
-
* @throws {RequiredError}
|
|
516
|
-
* @memberof MessageWebhooksApi
|
|
517
|
-
*/
|
|
518
|
-
MessageWebhooksApi.prototype.apiV1MessagewebhooksHospitalIdWhatsappGet = function (requestParameters, options) {
|
|
519
|
-
var _this = this;
|
|
520
|
-
return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksHospitalIdWhatsappGet(requestParameters.hospitalId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
521
|
-
};
|
|
522
|
-
/**
|
|
523
|
-
*
|
|
524
|
-
* @summary Create message webhook on CH-Message-Broker
|
|
525
|
-
* @param {MessageWebhooksApiApiV1MessagewebhooksPostRequest} requestParameters Request parameters.
|
|
526
|
-
* @param {*} [options] Override http request option.
|
|
527
|
-
* @throws {RequiredError}
|
|
528
|
-
* @memberof MessageWebhooksApi
|
|
529
|
-
*/
|
|
530
|
-
MessageWebhooksApi.prototype.apiV1MessagewebhooksPost = function (requestParameters, options) {
|
|
531
|
-
var _this = this;
|
|
532
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
533
|
-
return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksPost(requestParameters.registerMessageWebhookCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
534
|
-
};
|
|
535
|
-
/**
|
|
536
|
-
*
|
|
537
|
-
* @summary Delete message webhook by webhookId
|
|
538
|
-
* @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdDeleteRequest} requestParameters Request parameters.
|
|
539
|
-
* @param {*} [options] Override http request option.
|
|
540
|
-
* @throws {RequiredError}
|
|
541
|
-
* @memberof MessageWebhooksApi
|
|
542
|
-
*/
|
|
543
|
-
MessageWebhooksApi.prototype.apiV1MessagewebhooksWebhookIdDelete = function (requestParameters, options) {
|
|
544
|
-
var _this = this;
|
|
545
|
-
return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksWebhookIdDelete(requestParameters.webhookId, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
546
|
-
};
|
|
547
|
-
/**
|
|
548
|
-
*
|
|
549
|
-
* @summary Update message webhook by webhookId
|
|
550
|
-
* @param {MessageWebhooksApiApiV1MessagewebhooksWebhookIdPutRequest} requestParameters Request parameters.
|
|
551
|
-
* @param {*} [options] Override http request option.
|
|
552
|
-
* @throws {RequiredError}
|
|
553
|
-
* @memberof MessageWebhooksApi
|
|
554
|
-
*/
|
|
555
|
-
MessageWebhooksApi.prototype.apiV1MessagewebhooksWebhookIdPut = function (requestParameters, options) {
|
|
556
|
-
var _this = this;
|
|
557
|
-
return (0, exports.MessageWebhooksApiFp)(this.configuration).apiV1MessagewebhooksWebhookIdPut(requestParameters.webhookId, requestParameters.updateMessageWebhookCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
558
|
-
};
|
|
559
|
-
return MessageWebhooksApi;
|
|
560
|
-
}(base_1.BaseAPI));
|
|
561
|
-
exports.MessageWebhooksApi = MessageWebhooksApi;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CloudHospital Admin Api
|
|
3
|
-
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 1
|
|
6
|
-
* Contact: developer@icloudhospital.com
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
*
|
|
14
|
-
* @export
|
|
15
|
-
* @enum {string}
|
|
16
|
-
*/
|
|
17
|
-
export declare const MessageProvider: {
|
|
18
|
-
readonly WhatsApp: "WhatsApp";
|
|
19
|
-
};
|
|
20
|
-
export type MessageProvider = typeof MessageProvider[keyof typeof MessageProvider];
|
|
21
|
-
//# sourceMappingURL=message-provider.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message-provider.d.ts","sourceRoot":"","sources":["../../src/models/message-provider.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH;;;;GAIG;AAEH,eAAO,MAAM,eAAe;;CAElB,CAAC;AAEX,MAAM,MAAM,eAAe,GAAG,OAAO,eAAe,CAAC,MAAM,OAAO,eAAe,CAAC,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
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
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
16
|
-
exports.MessageProvider = void 0;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
19
|
-
* @export
|
|
20
|
-
* @enum {string}
|
|
21
|
-
*/
|
|
22
|
-
exports.MessageProvider = {
|
|
23
|
-
WhatsApp: 'WhatsApp'
|
|
24
|
-
};
|