ch-api-client-typescript2 5.79.27 → 5.79.34
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/webhooks-api.d.ts +97 -0
- package/lib/api/webhooks-api.d.ts.map +1 -0
- package/lib/api/webhooks-api.js +225 -0
- package/lib/api.d.ts +1 -1
- package/lib/api.d.ts.map +1 -1
- package/lib/api.js +1 -1
- package/lib/models/{devices-model.js → email-recipient.d.ts} +20 -4
- package/lib/models/email-recipient.d.ts.map +1 -0
- package/lib/models/index.d.ts +3 -5
- package/lib/models/index.d.ts.map +1 -1
- package/lib/models/index.js +3 -5
- package/lib/models/zoho-deal-closed-won-webhook-command.d.ts +45 -0
- package/lib/models/zoho-deal-closed-won-webhook-command.d.ts.map +1 -0
- package/lib/models/zoho-deal-closed-won-webhook-pdf-data.d.ts +115 -0
- package/lib/models/zoho-deal-closed-won-webhook-pdf-data.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/api/devices-api.d.ts +0 -357
- package/lib/api/devices-api.d.ts.map +0 -1
- package/lib/api/devices-api.js +0 -641
- package/lib/models/create-device-command.d.ts +0 -62
- package/lib/models/create-device-command.d.ts.map +0 -1
- package/lib/models/device-item-model.d.ts +0 -56
- package/lib/models/device-item-model.d.ts.map +0 -1
- package/lib/models/device-model.d.ts +0 -62
- package/lib/models/device-model.d.ts.map +0 -1
- package/lib/models/devices-model.d.ts +0 -33
- package/lib/models/devices-model.d.ts.map +0 -1
- package/lib/models/update-device-command.d.ts +0 -49
- package/lib/models/update-device-command.d.ts.map +0 -1
- package/lib/models/update-device-command.js +0 -15
- /package/lib/models/{create-device-command.js → email-recipient.js} +0 -0
- /package/lib/models/{device-item-model.js → zoho-deal-closed-won-webhook-command.js} +0 -0
- /package/lib/models/{device-model.js → zoho-deal-closed-won-webhook-pdf-data.js} +0 -0
package/lib/api/devices-api.js
DELETED
|
@@ -1,641 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
/**
|
|
5
|
-
* CloudHospital Api
|
|
6
|
-
* CloudHospital application with Swagger, Swashbuckle, and API versioning.
|
|
7
|
-
*
|
|
8
|
-
* The version of the OpenAPI document: 2
|
|
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 = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
52
|
-
return g.next = verb(0), g["throw"] = verb(1), g["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 __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
78
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
79
|
-
if (ar || !(i in from)) {
|
|
80
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
81
|
-
ar[i] = from[i];
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
85
|
-
};
|
|
86
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
87
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
88
|
-
};
|
|
89
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
90
|
-
exports.DevicesApi = exports.DevicesApiFactory = exports.DevicesApiFp = exports.DevicesApiAxiosParamCreator = void 0;
|
|
91
|
-
var axios_1 = __importDefault(require("axios"));
|
|
92
|
-
// Some imports not used depending on template conditions
|
|
93
|
-
// @ts-ignore
|
|
94
|
-
var common_1 = require("../common");
|
|
95
|
-
// @ts-ignore
|
|
96
|
-
var base_1 = require("../base");
|
|
97
|
-
/**
|
|
98
|
-
* DevicesApi - axios parameter creator
|
|
99
|
-
* @export
|
|
100
|
-
*/
|
|
101
|
-
var DevicesApiAxiosParamCreator = function (configuration) {
|
|
102
|
-
var _this = this;
|
|
103
|
-
return {
|
|
104
|
-
/**
|
|
105
|
-
*
|
|
106
|
-
* @summary Get all devices.
|
|
107
|
-
* @param {string} [id]
|
|
108
|
-
* @param {string} [token]
|
|
109
|
-
* @param {Platform} [platform]
|
|
110
|
-
* @param {boolean} [appAlert]
|
|
111
|
-
* @param {boolean} [eventAlert]
|
|
112
|
-
* @param {boolean} [noticeAlert]
|
|
113
|
-
* @param {number} [page]
|
|
114
|
-
* @param {number} [limit]
|
|
115
|
-
* @param {Date} [lastRetrieved]
|
|
116
|
-
* @param {*} [options] Override http request option.
|
|
117
|
-
* @throws {RequiredError}
|
|
118
|
-
*/
|
|
119
|
-
apiV2DevicesGet: function (id_1, token_1, platform_1, appAlert_1, eventAlert_1, noticeAlert_1, page_1, limit_1, lastRetrieved_1) {
|
|
120
|
-
var args_1 = [];
|
|
121
|
-
for (var _i = 9; _i < arguments.length; _i++) {
|
|
122
|
-
args_1[_i - 9] = arguments[_i];
|
|
123
|
-
}
|
|
124
|
-
return __awaiter(_this, __spreadArray([id_1, token_1, platform_1, appAlert_1, eventAlert_1, noticeAlert_1, page_1, limit_1, lastRetrieved_1], args_1, true), void 0, function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
125
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
126
|
-
if (options === void 0) { options = {}; }
|
|
127
|
-
return __generator(this, function (_a) {
|
|
128
|
-
switch (_a.label) {
|
|
129
|
-
case 0:
|
|
130
|
-
localVarPath = "/api/v2/devices";
|
|
131
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
132
|
-
if (configuration) {
|
|
133
|
-
baseOptions = configuration.baseOptions;
|
|
134
|
-
}
|
|
135
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
136
|
-
localVarHeaderParameter = {};
|
|
137
|
-
localVarQueryParameter = {};
|
|
138
|
-
// authentication oauth2 required
|
|
139
|
-
// oauth required
|
|
140
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)];
|
|
141
|
-
case 1:
|
|
142
|
-
// authentication oauth2 required
|
|
143
|
-
// oauth required
|
|
144
|
-
_a.sent();
|
|
145
|
-
if (id !== undefined) {
|
|
146
|
-
localVarQueryParameter['Id'] = id;
|
|
147
|
-
}
|
|
148
|
-
if (token !== undefined) {
|
|
149
|
-
localVarQueryParameter['Token'] = token;
|
|
150
|
-
}
|
|
151
|
-
if (platform !== undefined) {
|
|
152
|
-
localVarQueryParameter['Platform'] = platform;
|
|
153
|
-
}
|
|
154
|
-
if (appAlert !== undefined) {
|
|
155
|
-
localVarQueryParameter['AppAlert'] = appAlert;
|
|
156
|
-
}
|
|
157
|
-
if (eventAlert !== undefined) {
|
|
158
|
-
localVarQueryParameter['EventAlert'] = eventAlert;
|
|
159
|
-
}
|
|
160
|
-
if (noticeAlert !== undefined) {
|
|
161
|
-
localVarQueryParameter['NoticeAlert'] = noticeAlert;
|
|
162
|
-
}
|
|
163
|
-
if (page !== undefined) {
|
|
164
|
-
localVarQueryParameter['page'] = page;
|
|
165
|
-
}
|
|
166
|
-
if (limit !== undefined) {
|
|
167
|
-
localVarQueryParameter['limit'] = limit;
|
|
168
|
-
}
|
|
169
|
-
if (lastRetrieved !== undefined) {
|
|
170
|
-
localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
|
|
171
|
-
lastRetrieved.toISOString() :
|
|
172
|
-
lastRetrieved;
|
|
173
|
-
}
|
|
174
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
175
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
176
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
177
|
-
return [2 /*return*/, {
|
|
178
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
179
|
-
options: localVarRequestOptions,
|
|
180
|
-
}];
|
|
181
|
-
}
|
|
182
|
-
});
|
|
183
|
-
});
|
|
184
|
-
},
|
|
185
|
-
/**
|
|
186
|
-
*
|
|
187
|
-
* @summary Delete device.
|
|
188
|
-
* @param {string} id
|
|
189
|
-
* @param {*} [options] Override http request option.
|
|
190
|
-
* @throws {RequiredError}
|
|
191
|
-
*/
|
|
192
|
-
apiV2DevicesIdDelete: function (id_1) {
|
|
193
|
-
var args_1 = [];
|
|
194
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
195
|
-
args_1[_i - 1] = arguments[_i];
|
|
196
|
-
}
|
|
197
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
198
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
199
|
-
if (options === void 0) { options = {}; }
|
|
200
|
-
return __generator(this, function (_a) {
|
|
201
|
-
switch (_a.label) {
|
|
202
|
-
case 0:
|
|
203
|
-
// verify required parameter 'id' is not null or undefined
|
|
204
|
-
(0, common_1.assertParamExists)('apiV2DevicesIdDelete', 'id', id);
|
|
205
|
-
localVarPath = "/api/v2/devices/{id}"
|
|
206
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
207
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
208
|
-
if (configuration) {
|
|
209
|
-
baseOptions = configuration.baseOptions;
|
|
210
|
-
}
|
|
211
|
-
localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
|
|
212
|
-
localVarHeaderParameter = {};
|
|
213
|
-
localVarQueryParameter = {};
|
|
214
|
-
// authentication oauth2 required
|
|
215
|
-
// oauth required
|
|
216
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)];
|
|
217
|
-
case 1:
|
|
218
|
-
// authentication oauth2 required
|
|
219
|
-
// oauth required
|
|
220
|
-
_a.sent();
|
|
221
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
222
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
223
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
224
|
-
return [2 /*return*/, {
|
|
225
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
226
|
-
options: localVarRequestOptions,
|
|
227
|
-
}];
|
|
228
|
-
}
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
},
|
|
232
|
-
/**
|
|
233
|
-
*
|
|
234
|
-
* @summary Get device.
|
|
235
|
-
* @param {string} id
|
|
236
|
-
* @param {*} [options] Override http request option.
|
|
237
|
-
* @throws {RequiredError}
|
|
238
|
-
*/
|
|
239
|
-
apiV2DevicesIdGet: function (id_1) {
|
|
240
|
-
var args_1 = [];
|
|
241
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
242
|
-
args_1[_i - 1] = arguments[_i];
|
|
243
|
-
}
|
|
244
|
-
return __awaiter(_this, __spreadArray([id_1], args_1, true), void 0, function (id, options) {
|
|
245
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
246
|
-
if (options === void 0) { options = {}; }
|
|
247
|
-
return __generator(this, function (_a) {
|
|
248
|
-
switch (_a.label) {
|
|
249
|
-
case 0:
|
|
250
|
-
// verify required parameter 'id' is not null or undefined
|
|
251
|
-
(0, common_1.assertParamExists)('apiV2DevicesIdGet', 'id', id);
|
|
252
|
-
localVarPath = "/api/v2/devices/{id}"
|
|
253
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
254
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
255
|
-
if (configuration) {
|
|
256
|
-
baseOptions = configuration.baseOptions;
|
|
257
|
-
}
|
|
258
|
-
localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
|
|
259
|
-
localVarHeaderParameter = {};
|
|
260
|
-
localVarQueryParameter = {};
|
|
261
|
-
// authentication oauth2 required
|
|
262
|
-
// oauth required
|
|
263
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)];
|
|
264
|
-
case 1:
|
|
265
|
-
// authentication oauth2 required
|
|
266
|
-
// oauth required
|
|
267
|
-
_a.sent();
|
|
268
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
269
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
270
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
271
|
-
return [2 /*return*/, {
|
|
272
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
273
|
-
options: localVarRequestOptions,
|
|
274
|
-
}];
|
|
275
|
-
}
|
|
276
|
-
});
|
|
277
|
-
});
|
|
278
|
-
},
|
|
279
|
-
/**
|
|
280
|
-
*
|
|
281
|
-
* @summary Update device.
|
|
282
|
-
* @param {string} id
|
|
283
|
-
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
284
|
-
* @param {*} [options] Override http request option.
|
|
285
|
-
* @throws {RequiredError}
|
|
286
|
-
*/
|
|
287
|
-
apiV2DevicesIdPut: function (id_1, updateDeviceCommand_1) {
|
|
288
|
-
var args_1 = [];
|
|
289
|
-
for (var _i = 2; _i < arguments.length; _i++) {
|
|
290
|
-
args_1[_i - 2] = arguments[_i];
|
|
291
|
-
}
|
|
292
|
-
return __awaiter(_this, __spreadArray([id_1, updateDeviceCommand_1], args_1, true), void 0, function (id, updateDeviceCommand, options) {
|
|
293
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
294
|
-
if (options === void 0) { options = {}; }
|
|
295
|
-
return __generator(this, function (_a) {
|
|
296
|
-
switch (_a.label) {
|
|
297
|
-
case 0:
|
|
298
|
-
// verify required parameter 'id' is not null or undefined
|
|
299
|
-
(0, common_1.assertParamExists)('apiV2DevicesIdPut', 'id', id);
|
|
300
|
-
localVarPath = "/api/v2/devices/{id}"
|
|
301
|
-
.replace("{".concat("id", "}"), encodeURIComponent(String(id)));
|
|
302
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
303
|
-
if (configuration) {
|
|
304
|
-
baseOptions = configuration.baseOptions;
|
|
305
|
-
}
|
|
306
|
-
localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
|
|
307
|
-
localVarHeaderParameter = {};
|
|
308
|
-
localVarQueryParameter = {};
|
|
309
|
-
// authentication oauth2 required
|
|
310
|
-
// oauth required
|
|
311
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)];
|
|
312
|
-
case 1:
|
|
313
|
-
// authentication oauth2 required
|
|
314
|
-
// oauth required
|
|
315
|
-
_a.sent();
|
|
316
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
317
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
318
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
319
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
320
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateDeviceCommand, localVarRequestOptions, configuration);
|
|
321
|
-
return [2 /*return*/, {
|
|
322
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
323
|
-
options: localVarRequestOptions,
|
|
324
|
-
}];
|
|
325
|
-
}
|
|
326
|
-
});
|
|
327
|
-
});
|
|
328
|
-
},
|
|
329
|
-
/**
|
|
330
|
-
*
|
|
331
|
-
* @summary Create device.
|
|
332
|
-
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
333
|
-
* @param {*} [options] Override http request option.
|
|
334
|
-
* @throws {RequiredError}
|
|
335
|
-
*/
|
|
336
|
-
apiV2DevicesPost: function (createDeviceCommand_1) {
|
|
337
|
-
var args_1 = [];
|
|
338
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
339
|
-
args_1[_i - 1] = arguments[_i];
|
|
340
|
-
}
|
|
341
|
-
return __awaiter(_this, __spreadArray([createDeviceCommand_1], args_1, true), void 0, function (createDeviceCommand, options) {
|
|
342
|
-
var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
|
|
343
|
-
if (options === void 0) { options = {}; }
|
|
344
|
-
return __generator(this, function (_a) {
|
|
345
|
-
switch (_a.label) {
|
|
346
|
-
case 0:
|
|
347
|
-
localVarPath = "/api/v2/devices";
|
|
348
|
-
localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
349
|
-
if (configuration) {
|
|
350
|
-
baseOptions = configuration.baseOptions;
|
|
351
|
-
}
|
|
352
|
-
localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
|
|
353
|
-
localVarHeaderParameter = {};
|
|
354
|
-
localVarQueryParameter = {};
|
|
355
|
-
// authentication oauth2 required
|
|
356
|
-
// oauth required
|
|
357
|
-
return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["cloudhospital_api"], configuration)];
|
|
358
|
-
case 1:
|
|
359
|
-
// authentication oauth2 required
|
|
360
|
-
// oauth required
|
|
361
|
-
_a.sent();
|
|
362
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
363
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
364
|
-
headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
365
|
-
localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
366
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createDeviceCommand, localVarRequestOptions, configuration);
|
|
367
|
-
return [2 /*return*/, {
|
|
368
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
369
|
-
options: localVarRequestOptions,
|
|
370
|
-
}];
|
|
371
|
-
}
|
|
372
|
-
});
|
|
373
|
-
});
|
|
374
|
-
},
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
exports.DevicesApiAxiosParamCreator = DevicesApiAxiosParamCreator;
|
|
378
|
-
/**
|
|
379
|
-
* DevicesApi - functional programming interface
|
|
380
|
-
* @export
|
|
381
|
-
*/
|
|
382
|
-
var DevicesApiFp = function (configuration) {
|
|
383
|
-
var localVarAxiosParamCreator = (0, exports.DevicesApiAxiosParamCreator)(configuration);
|
|
384
|
-
return {
|
|
385
|
-
/**
|
|
386
|
-
*
|
|
387
|
-
* @summary Get all devices.
|
|
388
|
-
* @param {string} [id]
|
|
389
|
-
* @param {string} [token]
|
|
390
|
-
* @param {Platform} [platform]
|
|
391
|
-
* @param {boolean} [appAlert]
|
|
392
|
-
* @param {boolean} [eventAlert]
|
|
393
|
-
* @param {boolean} [noticeAlert]
|
|
394
|
-
* @param {number} [page]
|
|
395
|
-
* @param {number} [limit]
|
|
396
|
-
* @param {Date} [lastRetrieved]
|
|
397
|
-
* @param {*} [options] Override http request option.
|
|
398
|
-
* @throws {RequiredError}
|
|
399
|
-
*/
|
|
400
|
-
apiV2DevicesGet: function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
401
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
402
|
-
var localVarAxiosArgs;
|
|
403
|
-
return __generator(this, function (_a) {
|
|
404
|
-
switch (_a.label) {
|
|
405
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options)];
|
|
406
|
-
case 1:
|
|
407
|
-
localVarAxiosArgs = _a.sent();
|
|
408
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
409
|
-
}
|
|
410
|
-
});
|
|
411
|
-
});
|
|
412
|
-
},
|
|
413
|
-
/**
|
|
414
|
-
*
|
|
415
|
-
* @summary Delete device.
|
|
416
|
-
* @param {string} id
|
|
417
|
-
* @param {*} [options] Override http request option.
|
|
418
|
-
* @throws {RequiredError}
|
|
419
|
-
*/
|
|
420
|
-
apiV2DevicesIdDelete: function (id, options) {
|
|
421
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
422
|
-
var localVarAxiosArgs;
|
|
423
|
-
return __generator(this, function (_a) {
|
|
424
|
-
switch (_a.label) {
|
|
425
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdDelete(id, options)];
|
|
426
|
-
case 1:
|
|
427
|
-
localVarAxiosArgs = _a.sent();
|
|
428
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
});
|
|
432
|
-
},
|
|
433
|
-
/**
|
|
434
|
-
*
|
|
435
|
-
* @summary Get device.
|
|
436
|
-
* @param {string} id
|
|
437
|
-
* @param {*} [options] Override http request option.
|
|
438
|
-
* @throws {RequiredError}
|
|
439
|
-
*/
|
|
440
|
-
apiV2DevicesIdGet: function (id, options) {
|
|
441
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
442
|
-
var localVarAxiosArgs;
|
|
443
|
-
return __generator(this, function (_a) {
|
|
444
|
-
switch (_a.label) {
|
|
445
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdGet(id, options)];
|
|
446
|
-
case 1:
|
|
447
|
-
localVarAxiosArgs = _a.sent();
|
|
448
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
449
|
-
}
|
|
450
|
-
});
|
|
451
|
-
});
|
|
452
|
-
},
|
|
453
|
-
/**
|
|
454
|
-
*
|
|
455
|
-
* @summary Update device.
|
|
456
|
-
* @param {string} id
|
|
457
|
-
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
458
|
-
* @param {*} [options] Override http request option.
|
|
459
|
-
* @throws {RequiredError}
|
|
460
|
-
*/
|
|
461
|
-
apiV2DevicesIdPut: function (id, updateDeviceCommand, options) {
|
|
462
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
463
|
-
var localVarAxiosArgs;
|
|
464
|
-
return __generator(this, function (_a) {
|
|
465
|
-
switch (_a.label) {
|
|
466
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesIdPut(id, updateDeviceCommand, options)];
|
|
467
|
-
case 1:
|
|
468
|
-
localVarAxiosArgs = _a.sent();
|
|
469
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
470
|
-
}
|
|
471
|
-
});
|
|
472
|
-
});
|
|
473
|
-
},
|
|
474
|
-
/**
|
|
475
|
-
*
|
|
476
|
-
* @summary Create device.
|
|
477
|
-
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
478
|
-
* @param {*} [options] Override http request option.
|
|
479
|
-
* @throws {RequiredError}
|
|
480
|
-
*/
|
|
481
|
-
apiV2DevicesPost: function (createDeviceCommand, options) {
|
|
482
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
483
|
-
var localVarAxiosArgs;
|
|
484
|
-
return __generator(this, function (_a) {
|
|
485
|
-
switch (_a.label) {
|
|
486
|
-
case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV2DevicesPost(createDeviceCommand, options)];
|
|
487
|
-
case 1:
|
|
488
|
-
localVarAxiosArgs = _a.sent();
|
|
489
|
-
return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
|
|
490
|
-
}
|
|
491
|
-
});
|
|
492
|
-
});
|
|
493
|
-
},
|
|
494
|
-
};
|
|
495
|
-
};
|
|
496
|
-
exports.DevicesApiFp = DevicesApiFp;
|
|
497
|
-
/**
|
|
498
|
-
* DevicesApi - factory interface
|
|
499
|
-
* @export
|
|
500
|
-
*/
|
|
501
|
-
var DevicesApiFactory = function (configuration, basePath, axios) {
|
|
502
|
-
var localVarFp = (0, exports.DevicesApiFp)(configuration);
|
|
503
|
-
return {
|
|
504
|
-
/**
|
|
505
|
-
*
|
|
506
|
-
* @summary Get all devices.
|
|
507
|
-
* @param {string} [id]
|
|
508
|
-
* @param {string} [token]
|
|
509
|
-
* @param {Platform} [platform]
|
|
510
|
-
* @param {boolean} [appAlert]
|
|
511
|
-
* @param {boolean} [eventAlert]
|
|
512
|
-
* @param {boolean} [noticeAlert]
|
|
513
|
-
* @param {number} [page]
|
|
514
|
-
* @param {number} [limit]
|
|
515
|
-
* @param {Date} [lastRetrieved]
|
|
516
|
-
* @param {*} [options] Override http request option.
|
|
517
|
-
* @throws {RequiredError}
|
|
518
|
-
*/
|
|
519
|
-
apiV2DevicesGet: function (id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options) {
|
|
520
|
-
return localVarFp.apiV2DevicesGet(id, token, platform, appAlert, eventAlert, noticeAlert, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
|
|
521
|
-
},
|
|
522
|
-
/**
|
|
523
|
-
*
|
|
524
|
-
* @summary Delete device.
|
|
525
|
-
* @param {string} id
|
|
526
|
-
* @param {*} [options] Override http request option.
|
|
527
|
-
* @throws {RequiredError}
|
|
528
|
-
*/
|
|
529
|
-
apiV2DevicesIdDelete: function (id, options) {
|
|
530
|
-
return localVarFp.apiV2DevicesIdDelete(id, options).then(function (request) { return request(axios, basePath); });
|
|
531
|
-
},
|
|
532
|
-
/**
|
|
533
|
-
*
|
|
534
|
-
* @summary Get device.
|
|
535
|
-
* @param {string} id
|
|
536
|
-
* @param {*} [options] Override http request option.
|
|
537
|
-
* @throws {RequiredError}
|
|
538
|
-
*/
|
|
539
|
-
apiV2DevicesIdGet: function (id, options) {
|
|
540
|
-
return localVarFp.apiV2DevicesIdGet(id, options).then(function (request) { return request(axios, basePath); });
|
|
541
|
-
},
|
|
542
|
-
/**
|
|
543
|
-
*
|
|
544
|
-
* @summary Update device.
|
|
545
|
-
* @param {string} id
|
|
546
|
-
* @param {UpdateDeviceCommand} [updateDeviceCommand]
|
|
547
|
-
* @param {*} [options] Override http request option.
|
|
548
|
-
* @throws {RequiredError}
|
|
549
|
-
*/
|
|
550
|
-
apiV2DevicesIdPut: function (id, updateDeviceCommand, options) {
|
|
551
|
-
return localVarFp.apiV2DevicesIdPut(id, updateDeviceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
552
|
-
},
|
|
553
|
-
/**
|
|
554
|
-
*
|
|
555
|
-
* @summary Create device.
|
|
556
|
-
* @param {CreateDeviceCommand} [createDeviceCommand]
|
|
557
|
-
* @param {*} [options] Override http request option.
|
|
558
|
-
* @throws {RequiredError}
|
|
559
|
-
*/
|
|
560
|
-
apiV2DevicesPost: function (createDeviceCommand, options) {
|
|
561
|
-
return localVarFp.apiV2DevicesPost(createDeviceCommand, options).then(function (request) { return request(axios, basePath); });
|
|
562
|
-
},
|
|
563
|
-
};
|
|
564
|
-
};
|
|
565
|
-
exports.DevicesApiFactory = DevicesApiFactory;
|
|
566
|
-
/**
|
|
567
|
-
* DevicesApi - object-oriented interface
|
|
568
|
-
* @export
|
|
569
|
-
* @class DevicesApi
|
|
570
|
-
* @extends {BaseAPI}
|
|
571
|
-
*/
|
|
572
|
-
var DevicesApi = /** @class */ (function (_super) {
|
|
573
|
-
__extends(DevicesApi, _super);
|
|
574
|
-
function DevicesApi() {
|
|
575
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
576
|
-
}
|
|
577
|
-
/**
|
|
578
|
-
*
|
|
579
|
-
* @summary Get all devices.
|
|
580
|
-
* @param {DevicesApiApiV2DevicesGetRequest} requestParameters Request parameters.
|
|
581
|
-
* @param {*} [options] Override http request option.
|
|
582
|
-
* @throws {RequiredError}
|
|
583
|
-
* @memberof DevicesApi
|
|
584
|
-
*/
|
|
585
|
-
DevicesApi.prototype.apiV2DevicesGet = function (requestParameters, options) {
|
|
586
|
-
var _this = this;
|
|
587
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
588
|
-
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesGet(requestParameters.id, requestParameters.token, requestParameters.platform, requestParameters.appAlert, requestParameters.eventAlert, requestParameters.noticeAlert, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
589
|
-
};
|
|
590
|
-
/**
|
|
591
|
-
*
|
|
592
|
-
* @summary Delete device.
|
|
593
|
-
* @param {DevicesApiApiV2DevicesIdDeleteRequest} requestParameters Request parameters.
|
|
594
|
-
* @param {*} [options] Override http request option.
|
|
595
|
-
* @throws {RequiredError}
|
|
596
|
-
* @memberof DevicesApi
|
|
597
|
-
*/
|
|
598
|
-
DevicesApi.prototype.apiV2DevicesIdDelete = function (requestParameters, options) {
|
|
599
|
-
var _this = this;
|
|
600
|
-
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdDelete(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
601
|
-
};
|
|
602
|
-
/**
|
|
603
|
-
*
|
|
604
|
-
* @summary Get device.
|
|
605
|
-
* @param {DevicesApiApiV2DevicesIdGetRequest} requestParameters Request parameters.
|
|
606
|
-
* @param {*} [options] Override http request option.
|
|
607
|
-
* @throws {RequiredError}
|
|
608
|
-
* @memberof DevicesApi
|
|
609
|
-
*/
|
|
610
|
-
DevicesApi.prototype.apiV2DevicesIdGet = function (requestParameters, options) {
|
|
611
|
-
var _this = this;
|
|
612
|
-
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdGet(requestParameters.id, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
613
|
-
};
|
|
614
|
-
/**
|
|
615
|
-
*
|
|
616
|
-
* @summary Update device.
|
|
617
|
-
* @param {DevicesApiApiV2DevicesIdPutRequest} requestParameters Request parameters.
|
|
618
|
-
* @param {*} [options] Override http request option.
|
|
619
|
-
* @throws {RequiredError}
|
|
620
|
-
* @memberof DevicesApi
|
|
621
|
-
*/
|
|
622
|
-
DevicesApi.prototype.apiV2DevicesIdPut = function (requestParameters, options) {
|
|
623
|
-
var _this = this;
|
|
624
|
-
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesIdPut(requestParameters.id, requestParameters.updateDeviceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
625
|
-
};
|
|
626
|
-
/**
|
|
627
|
-
*
|
|
628
|
-
* @summary Create device.
|
|
629
|
-
* @param {DevicesApiApiV2DevicesPostRequest} requestParameters Request parameters.
|
|
630
|
-
* @param {*} [options] Override http request option.
|
|
631
|
-
* @throws {RequiredError}
|
|
632
|
-
* @memberof DevicesApi
|
|
633
|
-
*/
|
|
634
|
-
DevicesApi.prototype.apiV2DevicesPost = function (requestParameters, options) {
|
|
635
|
-
var _this = this;
|
|
636
|
-
if (requestParameters === void 0) { requestParameters = {}; }
|
|
637
|
-
return (0, exports.DevicesApiFp)(this.configuration).apiV2DevicesPost(requestParameters.createDeviceCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
|
|
638
|
-
};
|
|
639
|
-
return DevicesApi;
|
|
640
|
-
}(base_1.BaseAPI));
|
|
641
|
-
exports.DevicesApi = DevicesApi;
|