ch-admin-api-client-typescript 5.5.6 → 5.5.7

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 (45) hide show
  1. package/lib/api/web-apps-api.d.ts +394 -0
  2. package/lib/api/web-apps-api.d.ts.map +1 -0
  3. package/lib/api/web-apps-api.js +636 -0
  4. package/lib/api.d.ts +1 -0
  5. package/lib/api.d.ts.map +1 -1
  6. package/lib/api.js +1 -0
  7. package/lib/models/create-web-app-command.d.ts +104 -0
  8. package/lib/models/create-web-app-command.d.ts.map +1 -0
  9. package/lib/models/create-web-app-command.js +15 -0
  10. package/lib/models/deploy-status.d.ts +28 -0
  11. package/lib/models/deploy-status.d.ts.map +1 -0
  12. package/lib/models/deploy-status.js +31 -0
  13. package/lib/models/domain-type.d.ts +22 -0
  14. package/lib/models/domain-type.d.ts.map +1 -0
  15. package/lib/models/domain-type.js +25 -0
  16. package/lib/models/hospital-model.d.ts +19 -0
  17. package/lib/models/hospital-model.d.ts.map +1 -1
  18. package/lib/models/index.d.ts +7 -0
  19. package/lib/models/index.d.ts.map +1 -1
  20. package/lib/models/index.js +7 -0
  21. package/lib/models/update-web-app-command.d.ts +105 -0
  22. package/lib/models/update-web-app-command.d.ts.map +1 -0
  23. package/lib/models/update-web-app-command.js +15 -0
  24. package/lib/models/web-app-item-model.d.ts +148 -0
  25. package/lib/models/web-app-item-model.d.ts.map +1 -0
  26. package/lib/models/web-app-item-model.js +15 -0
  27. package/lib/models/web-app-model.d.ts +148 -0
  28. package/lib/models/web-app-model.d.ts.map +1 -0
  29. package/lib/models/web-app-model.js +15 -0
  30. package/lib/models/web-apps-model.d.ts +33 -0
  31. package/lib/models/web-apps-model.d.ts.map +1 -0
  32. package/lib/models/web-apps-model.js +15 -0
  33. package/package.json +1 -1
  34. package/src/.openapi-generator/FILES +8 -0
  35. package/src/api/web-apps-api.ts +681 -0
  36. package/src/api.ts +1 -0
  37. package/src/models/create-web-app-command.ts +111 -0
  38. package/src/models/deploy-status.ts +37 -0
  39. package/src/models/domain-type.ts +31 -0
  40. package/src/models/hospital-model.ts +21 -0
  41. package/src/models/index.ts +7 -0
  42. package/src/models/update-web-app-command.ts +114 -0
  43. package/src/models/web-app-item-model.ts +159 -0
  44. package/src/models/web-app-model.ts +159 -0
  45. package/src/models/web-apps-model.ts +42 -0
@@ -0,0 +1,636 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Admin Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 1
9
+ * Contact: hyounoosung@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.WebAppsApi = exports.WebAppsApiFactory = exports.WebAppsApiFp = exports.WebAppsApiAxiosParamCreator = 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
+ * WebAppsApi - axios parameter creator
90
+ * @export
91
+ */
92
+ var WebAppsApiAxiosParamCreator = function (configuration) {
93
+ var _this = this;
94
+ return {
95
+ /**
96
+ *
97
+ * @summary Retrive all WebApp configuration
98
+ * @param {string} [id]
99
+ * @param {string} [stsClientId]
100
+ * @param {string} [hospitalId]
101
+ * @param {string} [hospitalName]
102
+ * @param {string} [template]
103
+ * @param {DomainType} [domainType]
104
+ * @param {DeployStatus} [deployStatus]
105
+ * @param {string} [languageCode]
106
+ * @param {number} [page]
107
+ * @param {number} [limit]
108
+ * @param {Date} [lastRetrieved]
109
+ * @param {*} [options] Override http request option.
110
+ * @throws {RequiredError}
111
+ */
112
+ apiV1WebappsGet: function (id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, options) {
113
+ if (options === void 0) { options = {}; }
114
+ return __awaiter(_this, void 0, void 0, function () {
115
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
116
+ return __generator(this, function (_a) {
117
+ switch (_a.label) {
118
+ case 0:
119
+ localVarPath = "/api/v1/webapps";
120
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
121
+ if (configuration) {
122
+ baseOptions = configuration.baseOptions;
123
+ }
124
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
125
+ localVarHeaderParameter = {};
126
+ localVarQueryParameter = {};
127
+ // authentication oauth2 required
128
+ // oauth required
129
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
130
+ case 1:
131
+ // authentication oauth2 required
132
+ // oauth required
133
+ _a.sent();
134
+ if (id !== undefined) {
135
+ localVarQueryParameter['Id'] = id;
136
+ }
137
+ if (stsClientId !== undefined) {
138
+ localVarQueryParameter['StsClientId'] = stsClientId;
139
+ }
140
+ if (hospitalId !== undefined) {
141
+ localVarQueryParameter['HospitalId'] = hospitalId;
142
+ }
143
+ if (hospitalName !== undefined) {
144
+ localVarQueryParameter['HospitalName'] = hospitalName;
145
+ }
146
+ if (template !== undefined) {
147
+ localVarQueryParameter['Template'] = template;
148
+ }
149
+ if (domainType !== undefined) {
150
+ localVarQueryParameter['DomainType'] = domainType;
151
+ }
152
+ if (deployStatus !== undefined) {
153
+ localVarQueryParameter['DeployStatus'] = deployStatus;
154
+ }
155
+ if (languageCode !== undefined) {
156
+ localVarQueryParameter['LanguageCode'] = languageCode;
157
+ }
158
+ if (page !== undefined) {
159
+ localVarQueryParameter['page'] = page;
160
+ }
161
+ if (limit !== undefined) {
162
+ localVarQueryParameter['limit'] = limit;
163
+ }
164
+ if (lastRetrieved !== undefined) {
165
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved instanceof Date) ?
166
+ lastRetrieved.toISOString() :
167
+ lastRetrieved;
168
+ }
169
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
170
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
171
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
172
+ return [2 /*return*/, {
173
+ url: (0, common_1.toPathString)(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ }];
176
+ }
177
+ });
178
+ });
179
+ },
180
+ /**
181
+ *
182
+ * @summary Delete WebApp configuration soft or permanent
183
+ * @param {string} id
184
+ * @param {boolean} [isPermanent]
185
+ * @param {*} [options] Override http request option.
186
+ * @throws {RequiredError}
187
+ */
188
+ apiV1WebappsIdDelete: function (id, isPermanent, 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
+ // verify required parameter 'id' is not null or undefined
196
+ (0, common_1.assertParamExists)('apiV1WebappsIdDelete', 'id', id);
197
+ localVarPath = "/api/v1/webapps/{id}"
198
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
199
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
200
+ if (configuration) {
201
+ baseOptions = configuration.baseOptions;
202
+ }
203
+ localVarRequestOptions = __assign(__assign({ method: 'DELETE' }, baseOptions), options);
204
+ localVarHeaderParameter = {};
205
+ localVarQueryParameter = {};
206
+ // authentication oauth2 required
207
+ // oauth required
208
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
209
+ case 1:
210
+ // authentication oauth2 required
211
+ // oauth required
212
+ _a.sent();
213
+ if (isPermanent !== undefined) {
214
+ localVarQueryParameter['isPermanent'] = isPermanent;
215
+ }
216
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
217
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
218
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
219
+ return [2 /*return*/, {
220
+ url: (0, common_1.toPathString)(localVarUrlObj),
221
+ options: localVarRequestOptions,
222
+ }];
223
+ }
224
+ });
225
+ });
226
+ },
227
+ /**
228
+ *
229
+ * @summary Retrive WebApp configuration
230
+ * @param {string} id
231
+ * @param {string} [languageCode]
232
+ * @param {*} [options] Override http request option.
233
+ * @throws {RequiredError}
234
+ */
235
+ apiV1WebappsIdGet: function (id, languageCode, options) {
236
+ if (options === void 0) { options = {}; }
237
+ return __awaiter(_this, void 0, void 0, function () {
238
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
239
+ return __generator(this, function (_a) {
240
+ switch (_a.label) {
241
+ case 0:
242
+ // verify required parameter 'id' is not null or undefined
243
+ (0, common_1.assertParamExists)('apiV1WebappsIdGet', 'id', id);
244
+ localVarPath = "/api/v1/webapps/{id}"
245
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
246
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
247
+ if (configuration) {
248
+ baseOptions = configuration.baseOptions;
249
+ }
250
+ localVarRequestOptions = __assign(__assign({ method: 'GET' }, baseOptions), options);
251
+ localVarHeaderParameter = {};
252
+ localVarQueryParameter = {};
253
+ // authentication oauth2 required
254
+ // oauth required
255
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
256
+ case 1:
257
+ // authentication oauth2 required
258
+ // oauth required
259
+ _a.sent();
260
+ if (languageCode !== undefined) {
261
+ localVarQueryParameter['languageCode'] = languageCode;
262
+ }
263
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
264
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
265
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
266
+ return [2 /*return*/, {
267
+ url: (0, common_1.toPathString)(localVarUrlObj),
268
+ options: localVarRequestOptions,
269
+ }];
270
+ }
271
+ });
272
+ });
273
+ },
274
+ /**
275
+ *
276
+ * @summary Update WebApp configuration
277
+ * @param {string} id
278
+ * @param {UpdateWebAppCommand} [updateWebAppCommand]
279
+ * @param {*} [options] Override http request option.
280
+ * @throws {RequiredError}
281
+ */
282
+ apiV1WebappsIdPut: function (id, updateWebAppCommand, options) {
283
+ if (options === void 0) { options = {}; }
284
+ return __awaiter(_this, void 0, void 0, function () {
285
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
286
+ return __generator(this, function (_a) {
287
+ switch (_a.label) {
288
+ case 0:
289
+ // verify required parameter 'id' is not null or undefined
290
+ (0, common_1.assertParamExists)('apiV1WebappsIdPut', 'id', id);
291
+ localVarPath = "/api/v1/webapps/{id}"
292
+ .replace("{".concat("id", "}"), encodeURIComponent(String(id)));
293
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
294
+ if (configuration) {
295
+ baseOptions = configuration.baseOptions;
296
+ }
297
+ localVarRequestOptions = __assign(__assign({ method: 'PUT' }, baseOptions), options);
298
+ localVarHeaderParameter = {};
299
+ localVarQueryParameter = {};
300
+ // authentication oauth2 required
301
+ // oauth required
302
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
303
+ case 1:
304
+ // authentication oauth2 required
305
+ // oauth required
306
+ _a.sent();
307
+ localVarHeaderParameter['Content-Type'] = 'application/json';
308
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
309
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
310
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
311
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateWebAppCommand, localVarRequestOptions, configuration);
312
+ return [2 /*return*/, {
313
+ url: (0, common_1.toPathString)(localVarUrlObj),
314
+ options: localVarRequestOptions,
315
+ }];
316
+ }
317
+ });
318
+ });
319
+ },
320
+ /**
321
+ *
322
+ * @summary Create WebApp configuration
323
+ * @param {CreateWebAppCommand} [createWebAppCommand]
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ apiV1WebappsPost: function (createWebAppCommand, options) {
328
+ if (options === void 0) { options = {}; }
329
+ return __awaiter(_this, void 0, void 0, function () {
330
+ var localVarPath, localVarUrlObj, baseOptions, localVarRequestOptions, localVarHeaderParameter, localVarQueryParameter, headersFromBaseOptions;
331
+ return __generator(this, function (_a) {
332
+ switch (_a.label) {
333
+ case 0:
334
+ localVarPath = "/api/v1/webapps";
335
+ localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
336
+ if (configuration) {
337
+ baseOptions = configuration.baseOptions;
338
+ }
339
+ localVarRequestOptions = __assign(__assign({ method: 'POST' }, baseOptions), options);
340
+ localVarHeaderParameter = {};
341
+ localVarQueryParameter = {};
342
+ // authentication oauth2 required
343
+ // oauth required
344
+ return [4 /*yield*/, (0, common_1.setOAuthToObject)(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)];
345
+ case 1:
346
+ // authentication oauth2 required
347
+ // oauth required
348
+ _a.sent();
349
+ localVarHeaderParameter['Content-Type'] = 'application/json';
350
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
351
+ headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
352
+ localVarRequestOptions.headers = __assign(__assign(__assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
353
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createWebAppCommand, localVarRequestOptions, configuration);
354
+ return [2 /*return*/, {
355
+ url: (0, common_1.toPathString)(localVarUrlObj),
356
+ options: localVarRequestOptions,
357
+ }];
358
+ }
359
+ });
360
+ });
361
+ },
362
+ };
363
+ };
364
+ exports.WebAppsApiAxiosParamCreator = WebAppsApiAxiosParamCreator;
365
+ /**
366
+ * WebAppsApi - functional programming interface
367
+ * @export
368
+ */
369
+ var WebAppsApiFp = function (configuration) {
370
+ var localVarAxiosParamCreator = (0, exports.WebAppsApiAxiosParamCreator)(configuration);
371
+ return {
372
+ /**
373
+ *
374
+ * @summary Retrive all WebApp configuration
375
+ * @param {string} [id]
376
+ * @param {string} [stsClientId]
377
+ * @param {string} [hospitalId]
378
+ * @param {string} [hospitalName]
379
+ * @param {string} [template]
380
+ * @param {DomainType} [domainType]
381
+ * @param {DeployStatus} [deployStatus]
382
+ * @param {string} [languageCode]
383
+ * @param {number} [page]
384
+ * @param {number} [limit]
385
+ * @param {Date} [lastRetrieved]
386
+ * @param {*} [options] Override http request option.
387
+ * @throws {RequiredError}
388
+ */
389
+ apiV1WebappsGet: function (id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, 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.apiV1WebappsGet(id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, 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 Delete WebApp configuration soft or permanent
405
+ * @param {string} id
406
+ * @param {boolean} [isPermanent]
407
+ * @param {*} [options] Override http request option.
408
+ * @throws {RequiredError}
409
+ */
410
+ apiV1WebappsIdDelete: function (id, isPermanent, 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.apiV1WebappsIdDelete(id, isPermanent, 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
+ * @summary Retrive WebApp configuration
426
+ * @param {string} id
427
+ * @param {string} [languageCode]
428
+ * @param {*} [options] Override http request option.
429
+ * @throws {RequiredError}
430
+ */
431
+ apiV1WebappsIdGet: function (id, languageCode, options) {
432
+ return __awaiter(this, void 0, void 0, function () {
433
+ var localVarAxiosArgs;
434
+ return __generator(this, function (_a) {
435
+ switch (_a.label) {
436
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WebappsIdGet(id, languageCode, options)];
437
+ case 1:
438
+ localVarAxiosArgs = _a.sent();
439
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
440
+ }
441
+ });
442
+ });
443
+ },
444
+ /**
445
+ *
446
+ * @summary Update WebApp configuration
447
+ * @param {string} id
448
+ * @param {UpdateWebAppCommand} [updateWebAppCommand]
449
+ * @param {*} [options] Override http request option.
450
+ * @throws {RequiredError}
451
+ */
452
+ apiV1WebappsIdPut: function (id, updateWebAppCommand, options) {
453
+ return __awaiter(this, void 0, void 0, function () {
454
+ var localVarAxiosArgs;
455
+ return __generator(this, function (_a) {
456
+ switch (_a.label) {
457
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WebappsIdPut(id, updateWebAppCommand, options)];
458
+ case 1:
459
+ localVarAxiosArgs = _a.sent();
460
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
461
+ }
462
+ });
463
+ });
464
+ },
465
+ /**
466
+ *
467
+ * @summary Create WebApp configuration
468
+ * @param {CreateWebAppCommand} [createWebAppCommand]
469
+ * @param {*} [options] Override http request option.
470
+ * @throws {RequiredError}
471
+ */
472
+ apiV1WebappsPost: function (createWebAppCommand, options) {
473
+ return __awaiter(this, void 0, void 0, function () {
474
+ var localVarAxiosArgs;
475
+ return __generator(this, function (_a) {
476
+ switch (_a.label) {
477
+ case 0: return [4 /*yield*/, localVarAxiosParamCreator.apiV1WebappsPost(createWebAppCommand, options)];
478
+ case 1:
479
+ localVarAxiosArgs = _a.sent();
480
+ return [2 /*return*/, (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)];
481
+ }
482
+ });
483
+ });
484
+ },
485
+ };
486
+ };
487
+ exports.WebAppsApiFp = WebAppsApiFp;
488
+ /**
489
+ * WebAppsApi - factory interface
490
+ * @export
491
+ */
492
+ var WebAppsApiFactory = function (configuration, basePath, axios) {
493
+ var localVarFp = (0, exports.WebAppsApiFp)(configuration);
494
+ return {
495
+ /**
496
+ *
497
+ * @summary Retrive all WebApp configuration
498
+ * @param {string} [id]
499
+ * @param {string} [stsClientId]
500
+ * @param {string} [hospitalId]
501
+ * @param {string} [hospitalName]
502
+ * @param {string} [template]
503
+ * @param {DomainType} [domainType]
504
+ * @param {DeployStatus} [deployStatus]
505
+ * @param {string} [languageCode]
506
+ * @param {number} [page]
507
+ * @param {number} [limit]
508
+ * @param {Date} [lastRetrieved]
509
+ * @param {*} [options] Override http request option.
510
+ * @throws {RequiredError}
511
+ */
512
+ apiV1WebappsGet: function (id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, options) {
513
+ return localVarFp.apiV1WebappsGet(id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, options).then(function (request) { return request(axios, basePath); });
514
+ },
515
+ /**
516
+ *
517
+ * @summary Delete WebApp configuration soft or permanent
518
+ * @param {string} id
519
+ * @param {boolean} [isPermanent]
520
+ * @param {*} [options] Override http request option.
521
+ * @throws {RequiredError}
522
+ */
523
+ apiV1WebappsIdDelete: function (id, isPermanent, options) {
524
+ return localVarFp.apiV1WebappsIdDelete(id, isPermanent, options).then(function (request) { return request(axios, basePath); });
525
+ },
526
+ /**
527
+ *
528
+ * @summary Retrive WebApp configuration
529
+ * @param {string} id
530
+ * @param {string} [languageCode]
531
+ * @param {*} [options] Override http request option.
532
+ * @throws {RequiredError}
533
+ */
534
+ apiV1WebappsIdGet: function (id, languageCode, options) {
535
+ return localVarFp.apiV1WebappsIdGet(id, languageCode, options).then(function (request) { return request(axios, basePath); });
536
+ },
537
+ /**
538
+ *
539
+ * @summary Update WebApp configuration
540
+ * @param {string} id
541
+ * @param {UpdateWebAppCommand} [updateWebAppCommand]
542
+ * @param {*} [options] Override http request option.
543
+ * @throws {RequiredError}
544
+ */
545
+ apiV1WebappsIdPut: function (id, updateWebAppCommand, options) {
546
+ return localVarFp.apiV1WebappsIdPut(id, updateWebAppCommand, options).then(function (request) { return request(axios, basePath); });
547
+ },
548
+ /**
549
+ *
550
+ * @summary Create WebApp configuration
551
+ * @param {CreateWebAppCommand} [createWebAppCommand]
552
+ * @param {*} [options] Override http request option.
553
+ * @throws {RequiredError}
554
+ */
555
+ apiV1WebappsPost: function (createWebAppCommand, options) {
556
+ return localVarFp.apiV1WebappsPost(createWebAppCommand, options).then(function (request) { return request(axios, basePath); });
557
+ },
558
+ };
559
+ };
560
+ exports.WebAppsApiFactory = WebAppsApiFactory;
561
+ /**
562
+ * WebAppsApi - object-oriented interface
563
+ * @export
564
+ * @class WebAppsApi
565
+ * @extends {BaseAPI}
566
+ */
567
+ var WebAppsApi = /** @class */ (function (_super) {
568
+ __extends(WebAppsApi, _super);
569
+ function WebAppsApi() {
570
+ return _super !== null && _super.apply(this, arguments) || this;
571
+ }
572
+ /**
573
+ *
574
+ * @summary Retrive all WebApp configuration
575
+ * @param {WebAppsApiApiV1WebappsGetRequest} requestParameters Request parameters.
576
+ * @param {*} [options] Override http request option.
577
+ * @throws {RequiredError}
578
+ * @memberof WebAppsApi
579
+ */
580
+ WebAppsApi.prototype.apiV1WebappsGet = function (requestParameters, options) {
581
+ var _this = this;
582
+ if (requestParameters === void 0) { requestParameters = {}; }
583
+ return (0, exports.WebAppsApiFp)(this.configuration).apiV1WebappsGet(requestParameters.id, requestParameters.stsClientId, requestParameters.hospitalId, requestParameters.hospitalName, requestParameters.template, requestParameters.domainType, requestParameters.deployStatus, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then(function (request) { return request(_this.axios, _this.basePath); });
584
+ };
585
+ /**
586
+ *
587
+ * @summary Delete WebApp configuration soft or permanent
588
+ * @param {WebAppsApiApiV1WebappsIdDeleteRequest} requestParameters Request parameters.
589
+ * @param {*} [options] Override http request option.
590
+ * @throws {RequiredError}
591
+ * @memberof WebAppsApi
592
+ */
593
+ WebAppsApi.prototype.apiV1WebappsIdDelete = function (requestParameters, options) {
594
+ var _this = this;
595
+ return (0, exports.WebAppsApiFp)(this.configuration).apiV1WebappsIdDelete(requestParameters.id, requestParameters.isPermanent, options).then(function (request) { return request(_this.axios, _this.basePath); });
596
+ };
597
+ /**
598
+ *
599
+ * @summary Retrive WebApp configuration
600
+ * @param {WebAppsApiApiV1WebappsIdGetRequest} requestParameters Request parameters.
601
+ * @param {*} [options] Override http request option.
602
+ * @throws {RequiredError}
603
+ * @memberof WebAppsApi
604
+ */
605
+ WebAppsApi.prototype.apiV1WebappsIdGet = function (requestParameters, options) {
606
+ var _this = this;
607
+ return (0, exports.WebAppsApiFp)(this.configuration).apiV1WebappsIdGet(requestParameters.id, requestParameters.languageCode, options).then(function (request) { return request(_this.axios, _this.basePath); });
608
+ };
609
+ /**
610
+ *
611
+ * @summary Update WebApp configuration
612
+ * @param {WebAppsApiApiV1WebappsIdPutRequest} requestParameters Request parameters.
613
+ * @param {*} [options] Override http request option.
614
+ * @throws {RequiredError}
615
+ * @memberof WebAppsApi
616
+ */
617
+ WebAppsApi.prototype.apiV1WebappsIdPut = function (requestParameters, options) {
618
+ var _this = this;
619
+ return (0, exports.WebAppsApiFp)(this.configuration).apiV1WebappsIdPut(requestParameters.id, requestParameters.updateWebAppCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
620
+ };
621
+ /**
622
+ *
623
+ * @summary Create WebApp configuration
624
+ * @param {WebAppsApiApiV1WebappsPostRequest} requestParameters Request parameters.
625
+ * @param {*} [options] Override http request option.
626
+ * @throws {RequiredError}
627
+ * @memberof WebAppsApi
628
+ */
629
+ WebAppsApi.prototype.apiV1WebappsPost = function (requestParameters, options) {
630
+ var _this = this;
631
+ if (requestParameters === void 0) { requestParameters = {}; }
632
+ return (0, exports.WebAppsApiFp)(this.configuration).apiV1WebappsPost(requestParameters.createWebAppCommand, options).then(function (request) { return request(_this.axios, _this.basePath); });
633
+ };
634
+ return WebAppsApi;
635
+ }(base_1.BaseAPI));
636
+ exports.WebAppsApi = WebAppsApi;
package/lib/api.d.ts CHANGED
@@ -61,4 +61,5 @@ export * from './api/vonage-accounts-api';
61
61
  export * from './api/vonage-applications-api';
62
62
  export * from './api/vonage-numbers-api';
63
63
  export * from './api/vonage-users-api';
64
+ export * from './api/web-apps-api';
64
65
  //# sourceMappingURL=api.d.ts.map
package/lib/api.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../src/api.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAIH,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,sBAAsB,CAAC;AACrC,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc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AACvC,cAAc,oBAAoB,CAAC"}
package/lib/api.js CHANGED
@@ -79,3 +79,4 @@ __exportStar(require("./api/vonage-accounts-api"), exports);
79
79
  __exportStar(require("./api/vonage-applications-api"), exports);
80
80
  __exportStar(require("./api/vonage-numbers-api"), exports);
81
81
  __exportStar(require("./api/vonage-users-api"), exports);
82
+ __exportStar(require("./api/web-apps-api"), exports);