ch-admin-api-client-typescript 5.5.5 → 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 (77) hide show
  1. package/lib/api/hospitals-api.d.ts +629 -0
  2. package/lib/api/hospitals-api.d.ts.map +1 -1
  3. package/lib/api/hospitals-api.js +949 -41
  4. package/lib/api/web-apps-api.d.ts +394 -0
  5. package/lib/api/web-apps-api.d.ts.map +1 -0
  6. package/lib/api/web-apps-api.js +636 -0
  7. package/lib/api.d.ts +1 -0
  8. package/lib/api.d.ts.map +1 -1
  9. package/lib/api.js +1 -0
  10. package/lib/models/create-hospital-command.d.ts +7 -0
  11. package/lib/models/create-hospital-command.d.ts.map +1 -1
  12. package/lib/models/create-hospital-tag-command.d.ts +31 -0
  13. package/lib/models/create-hospital-tag-command.d.ts.map +1 -0
  14. package/lib/models/create-hospital-tag-command.js +15 -0
  15. package/lib/models/create-web-app-command.d.ts +104 -0
  16. package/lib/models/create-web-app-command.d.ts.map +1 -0
  17. package/lib/models/create-web-app-command.js +15 -0
  18. package/lib/models/deploy-status.d.ts +28 -0
  19. package/lib/models/deploy-status.d.ts.map +1 -0
  20. package/lib/models/deploy-status.js +31 -0
  21. package/lib/models/domain-type.d.ts +22 -0
  22. package/lib/models/domain-type.d.ts.map +1 -0
  23. package/lib/models/domain-type.js +25 -0
  24. package/lib/models/hospital-model.d.ts +26 -0
  25. package/lib/models/hospital-model.d.ts.map +1 -1
  26. package/lib/models/hospital-tag-item-model.d.ts +31 -0
  27. package/lib/models/hospital-tag-item-model.d.ts.map +1 -0
  28. package/lib/models/hospital-tag-item-model.js +15 -0
  29. package/lib/models/hospital-tag-model.d.ts +37 -0
  30. package/lib/models/hospital-tag-model.d.ts.map +1 -0
  31. package/lib/models/hospital-tag-model.js +15 -0
  32. package/lib/models/hospital-tags-model.d.ts +33 -0
  33. package/lib/models/hospital-tags-model.d.ts.map +1 -0
  34. package/lib/models/hospital-tags-model.js +15 -0
  35. package/lib/models/index.d.ts +11 -0
  36. package/lib/models/index.d.ts.map +1 -1
  37. package/lib/models/index.js +11 -0
  38. package/lib/models/search-curation-item-input-model.d.ts +6 -0
  39. package/lib/models/search-curation-item-input-model.d.ts.map +1 -1
  40. package/lib/models/search-curation-item-model.d.ts +6 -0
  41. package/lib/models/search-curation-item-model.d.ts.map +1 -1
  42. package/lib/models/update-hospital-command.d.ts +7 -0
  43. package/lib/models/update-hospital-command.d.ts.map +1 -1
  44. package/lib/models/update-web-app-command.d.ts +105 -0
  45. package/lib/models/update-web-app-command.d.ts.map +1 -0
  46. package/lib/models/update-web-app-command.js +15 -0
  47. package/lib/models/web-app-item-model.d.ts +148 -0
  48. package/lib/models/web-app-item-model.d.ts.map +1 -0
  49. package/lib/models/web-app-item-model.js +15 -0
  50. package/lib/models/web-app-model.d.ts +148 -0
  51. package/lib/models/web-app-model.d.ts.map +1 -0
  52. package/lib/models/web-app-model.js +15 -0
  53. package/lib/models/web-apps-model.d.ts +33 -0
  54. package/lib/models/web-apps-model.d.ts.map +1 -0
  55. package/lib/models/web-apps-model.js +15 -0
  56. package/package.json +1 -1
  57. package/src/.openapi-generator/FILES +12 -0
  58. package/src/api/hospitals-api.ts +1194 -91
  59. package/src/api/web-apps-api.ts +681 -0
  60. package/src/api.ts +1 -0
  61. package/src/models/create-hospital-command.ts +9 -0
  62. package/src/models/create-hospital-tag-command.ts +36 -0
  63. package/src/models/create-web-app-command.ts +111 -0
  64. package/src/models/deploy-status.ts +37 -0
  65. package/src/models/domain-type.ts +31 -0
  66. package/src/models/hospital-model.ts +30 -0
  67. package/src/models/hospital-tag-item-model.ts +36 -0
  68. package/src/models/hospital-tag-model.ts +42 -0
  69. package/src/models/hospital-tags-model.ts +42 -0
  70. package/src/models/index.ts +11 -0
  71. package/src/models/search-curation-item-input-model.ts +6 -0
  72. package/src/models/search-curation-item-model.ts +6 -0
  73. package/src/models/update-hospital-command.ts +9 -0
  74. package/src/models/update-web-app-command.ts +114 -0
  75. package/src/models/web-app-item-model.ts +159 -0
  76. package/src/models/web-app-model.ts +159 -0
  77. package/src/models/web-apps-model.ts +42 -0
@@ -0,0 +1,681 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Swagger UI - Cloud Hospital Admin Api-INT
5
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
6
+ *
7
+ * The version of the OpenAPI document: 1
8
+ * Contact: hyounoosung@icloudhospital.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+ import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios';
17
+ import { Configuration } from '../configuration';
18
+ // Some imports not used depending on template conditions
19
+ // @ts-ignore
20
+ import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
21
+ // @ts-ignore
22
+ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from '../base';
23
+ // @ts-ignore
24
+ import { CreateWebAppCommand } from '../models';
25
+ // @ts-ignore
26
+ import { DeployStatus } from '../models';
27
+ // @ts-ignore
28
+ import { DomainType } from '../models';
29
+ // @ts-ignore
30
+ import { ProblemDetails } from '../models';
31
+ // @ts-ignore
32
+ import { UpdateWebAppCommand } from '../models';
33
+ // @ts-ignore
34
+ import { WebAppModel } from '../models';
35
+ // @ts-ignore
36
+ import { WebAppsModel } from '../models';
37
+ /**
38
+ * WebAppsApi - axios parameter creator
39
+ * @export
40
+ */
41
+ export const WebAppsApiAxiosParamCreator = function (configuration?: Configuration) {
42
+ return {
43
+ /**
44
+ *
45
+ * @summary Retrive all WebApp configuration
46
+ * @param {string} [id]
47
+ * @param {string} [stsClientId]
48
+ * @param {string} [hospitalId]
49
+ * @param {string} [hospitalName]
50
+ * @param {string} [template]
51
+ * @param {DomainType} [domainType]
52
+ * @param {DeployStatus} [deployStatus]
53
+ * @param {string} [languageCode]
54
+ * @param {number} [page]
55
+ * @param {number} [limit]
56
+ * @param {Date} [lastRetrieved]
57
+ * @param {*} [options] Override http request option.
58
+ * @throws {RequiredError}
59
+ */
60
+ apiV1WebappsGet: async (id?: string, stsClientId?: string, hospitalId?: string, hospitalName?: string, template?: string, domainType?: DomainType, deployStatus?: DeployStatus, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
61
+ const localVarPath = `/api/v1/webapps`;
62
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
63
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
64
+ let baseOptions;
65
+ if (configuration) {
66
+ baseOptions = configuration.baseOptions;
67
+ }
68
+
69
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
70
+ const localVarHeaderParameter = {} as any;
71
+ const localVarQueryParameter = {} as any;
72
+
73
+ // authentication oauth2 required
74
+ // oauth required
75
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
76
+
77
+ if (id !== undefined) {
78
+ localVarQueryParameter['Id'] = id;
79
+ }
80
+
81
+ if (stsClientId !== undefined) {
82
+ localVarQueryParameter['StsClientId'] = stsClientId;
83
+ }
84
+
85
+ if (hospitalId !== undefined) {
86
+ localVarQueryParameter['HospitalId'] = hospitalId;
87
+ }
88
+
89
+ if (hospitalName !== undefined) {
90
+ localVarQueryParameter['HospitalName'] = hospitalName;
91
+ }
92
+
93
+ if (template !== undefined) {
94
+ localVarQueryParameter['Template'] = template;
95
+ }
96
+
97
+ if (domainType !== undefined) {
98
+ localVarQueryParameter['DomainType'] = domainType;
99
+ }
100
+
101
+ if (deployStatus !== undefined) {
102
+ localVarQueryParameter['DeployStatus'] = deployStatus;
103
+ }
104
+
105
+ if (languageCode !== undefined) {
106
+ localVarQueryParameter['LanguageCode'] = languageCode;
107
+ }
108
+
109
+ if (page !== undefined) {
110
+ localVarQueryParameter['page'] = page;
111
+ }
112
+
113
+ if (limit !== undefined) {
114
+ localVarQueryParameter['limit'] = limit;
115
+ }
116
+
117
+ if (lastRetrieved !== undefined) {
118
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
119
+ (lastRetrieved as any).toISOString() :
120
+ lastRetrieved;
121
+ }
122
+
123
+
124
+
125
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
126
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
127
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+
129
+ return {
130
+ url: toPathString(localVarUrlObj),
131
+ options: localVarRequestOptions,
132
+ };
133
+ },
134
+ /**
135
+ *
136
+ * @summary Delete WebApp configuration soft or permanent
137
+ * @param {string} id
138
+ * @param {boolean} [isPermanent]
139
+ * @param {*} [options] Override http request option.
140
+ * @throws {RequiredError}
141
+ */
142
+ apiV1WebappsIdDelete: async (id: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
143
+ // verify required parameter 'id' is not null or undefined
144
+ assertParamExists('apiV1WebappsIdDelete', 'id', id)
145
+ const localVarPath = `/api/v1/webapps/{id}`
146
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
147
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
148
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
149
+ let baseOptions;
150
+ if (configuration) {
151
+ baseOptions = configuration.baseOptions;
152
+ }
153
+
154
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
155
+ const localVarHeaderParameter = {} as any;
156
+ const localVarQueryParameter = {} as any;
157
+
158
+ // authentication oauth2 required
159
+ // oauth required
160
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
161
+
162
+ if (isPermanent !== undefined) {
163
+ localVarQueryParameter['isPermanent'] = isPermanent;
164
+ }
165
+
166
+
167
+
168
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
169
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
170
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
171
+
172
+ return {
173
+ url: toPathString(localVarUrlObj),
174
+ options: localVarRequestOptions,
175
+ };
176
+ },
177
+ /**
178
+ *
179
+ * @summary Retrive WebApp configuration
180
+ * @param {string} id
181
+ * @param {string} [languageCode]
182
+ * @param {*} [options] Override http request option.
183
+ * @throws {RequiredError}
184
+ */
185
+ apiV1WebappsIdGet: async (id: string, languageCode?: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
186
+ // verify required parameter 'id' is not null or undefined
187
+ assertParamExists('apiV1WebappsIdGet', 'id', id)
188
+ const localVarPath = `/api/v1/webapps/{id}`
189
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
190
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
191
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
192
+ let baseOptions;
193
+ if (configuration) {
194
+ baseOptions = configuration.baseOptions;
195
+ }
196
+
197
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
198
+ const localVarHeaderParameter = {} as any;
199
+ const localVarQueryParameter = {} as any;
200
+
201
+ // authentication oauth2 required
202
+ // oauth required
203
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
204
+
205
+ if (languageCode !== undefined) {
206
+ localVarQueryParameter['languageCode'] = languageCode;
207
+ }
208
+
209
+
210
+
211
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
212
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
213
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
214
+
215
+ return {
216
+ url: toPathString(localVarUrlObj),
217
+ options: localVarRequestOptions,
218
+ };
219
+ },
220
+ /**
221
+ *
222
+ * @summary Update WebApp configuration
223
+ * @param {string} id
224
+ * @param {UpdateWebAppCommand} [updateWebAppCommand]
225
+ * @param {*} [options] Override http request option.
226
+ * @throws {RequiredError}
227
+ */
228
+ apiV1WebappsIdPut: async (id: string, updateWebAppCommand?: UpdateWebAppCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
229
+ // verify required parameter 'id' is not null or undefined
230
+ assertParamExists('apiV1WebappsIdPut', 'id', id)
231
+ const localVarPath = `/api/v1/webapps/{id}`
232
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
233
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
234
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
235
+ let baseOptions;
236
+ if (configuration) {
237
+ baseOptions = configuration.baseOptions;
238
+ }
239
+
240
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
241
+ const localVarHeaderParameter = {} as any;
242
+ const localVarQueryParameter = {} as any;
243
+
244
+ // authentication oauth2 required
245
+ // oauth required
246
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
247
+
248
+
249
+
250
+ localVarHeaderParameter['Content-Type'] = 'application/json';
251
+
252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
255
+ localVarRequestOptions.data = serializeDataIfNeeded(updateWebAppCommand, localVarRequestOptions, configuration)
256
+
257
+ return {
258
+ url: toPathString(localVarUrlObj),
259
+ options: localVarRequestOptions,
260
+ };
261
+ },
262
+ /**
263
+ *
264
+ * @summary Create WebApp configuration
265
+ * @param {CreateWebAppCommand} [createWebAppCommand]
266
+ * @param {*} [options] Override http request option.
267
+ * @throws {RequiredError}
268
+ */
269
+ apiV1WebappsPost: async (createWebAppCommand?: CreateWebAppCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
270
+ const localVarPath = `/api/v1/webapps`;
271
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
272
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
273
+ let baseOptions;
274
+ if (configuration) {
275
+ baseOptions = configuration.baseOptions;
276
+ }
277
+
278
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
279
+ const localVarHeaderParameter = {} as any;
280
+ const localVarQueryParameter = {} as any;
281
+
282
+ // authentication oauth2 required
283
+ // oauth required
284
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
285
+
286
+
287
+
288
+ localVarHeaderParameter['Content-Type'] = 'application/json';
289
+
290
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
291
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
292
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
293
+ localVarRequestOptions.data = serializeDataIfNeeded(createWebAppCommand, localVarRequestOptions, configuration)
294
+
295
+ return {
296
+ url: toPathString(localVarUrlObj),
297
+ options: localVarRequestOptions,
298
+ };
299
+ },
300
+ }
301
+ };
302
+
303
+ /**
304
+ * WebAppsApi - functional programming interface
305
+ * @export
306
+ */
307
+ export const WebAppsApiFp = function(configuration?: Configuration) {
308
+ const localVarAxiosParamCreator = WebAppsApiAxiosParamCreator(configuration)
309
+ return {
310
+ /**
311
+ *
312
+ * @summary Retrive all WebApp configuration
313
+ * @param {string} [id]
314
+ * @param {string} [stsClientId]
315
+ * @param {string} [hospitalId]
316
+ * @param {string} [hospitalName]
317
+ * @param {string} [template]
318
+ * @param {DomainType} [domainType]
319
+ * @param {DeployStatus} [deployStatus]
320
+ * @param {string} [languageCode]
321
+ * @param {number} [page]
322
+ * @param {number} [limit]
323
+ * @param {Date} [lastRetrieved]
324
+ * @param {*} [options] Override http request option.
325
+ * @throws {RequiredError}
326
+ */
327
+ async apiV1WebappsGet(id?: string, stsClientId?: string, hospitalId?: string, hospitalName?: string, template?: string, domainType?: DomainType, deployStatus?: DeployStatus, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppsModel>> {
328
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsGet(id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, options);
329
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
330
+ },
331
+ /**
332
+ *
333
+ * @summary Delete WebApp configuration soft or permanent
334
+ * @param {string} id
335
+ * @param {boolean} [isPermanent]
336
+ * @param {*} [options] Override http request option.
337
+ * @throws {RequiredError}
338
+ */
339
+ async apiV1WebappsIdDelete(id: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
340
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsIdDelete(id, isPermanent, options);
341
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
342
+ },
343
+ /**
344
+ *
345
+ * @summary Retrive WebApp configuration
346
+ * @param {string} id
347
+ * @param {string} [languageCode]
348
+ * @param {*} [options] Override http request option.
349
+ * @throws {RequiredError}
350
+ */
351
+ async apiV1WebappsIdGet(id: string, languageCode?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppModel>> {
352
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsIdGet(id, languageCode, options);
353
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
354
+ },
355
+ /**
356
+ *
357
+ * @summary Update WebApp configuration
358
+ * @param {string} id
359
+ * @param {UpdateWebAppCommand} [updateWebAppCommand]
360
+ * @param {*} [options] Override http request option.
361
+ * @throws {RequiredError}
362
+ */
363
+ async apiV1WebappsIdPut(id: string, updateWebAppCommand?: UpdateWebAppCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppModel>> {
364
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsIdPut(id, updateWebAppCommand, options);
365
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
366
+ },
367
+ /**
368
+ *
369
+ * @summary Create WebApp configuration
370
+ * @param {CreateWebAppCommand} [createWebAppCommand]
371
+ * @param {*} [options] Override http request option.
372
+ * @throws {RequiredError}
373
+ */
374
+ async apiV1WebappsPost(createWebAppCommand?: CreateWebAppCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<WebAppModel>> {
375
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsPost(createWebAppCommand, options);
376
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
377
+ },
378
+ }
379
+ };
380
+
381
+ /**
382
+ * WebAppsApi - factory interface
383
+ * @export
384
+ */
385
+ export const WebAppsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
386
+ const localVarFp = WebAppsApiFp(configuration)
387
+ return {
388
+ /**
389
+ *
390
+ * @summary Retrive all WebApp configuration
391
+ * @param {string} [id]
392
+ * @param {string} [stsClientId]
393
+ * @param {string} [hospitalId]
394
+ * @param {string} [hospitalName]
395
+ * @param {string} [template]
396
+ * @param {DomainType} [domainType]
397
+ * @param {DeployStatus} [deployStatus]
398
+ * @param {string} [languageCode]
399
+ * @param {number} [page]
400
+ * @param {number} [limit]
401
+ * @param {Date} [lastRetrieved]
402
+ * @param {*} [options] Override http request option.
403
+ * @throws {RequiredError}
404
+ */
405
+ apiV1WebappsGet(id?: string, stsClientId?: string, hospitalId?: string, hospitalName?: string, template?: string, domainType?: DomainType, deployStatus?: DeployStatus, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<WebAppsModel> {
406
+ return localVarFp.apiV1WebappsGet(id, stsClientId, hospitalId, hospitalName, template, domainType, deployStatus, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
407
+ },
408
+ /**
409
+ *
410
+ * @summary Delete WebApp configuration soft or permanent
411
+ * @param {string} id
412
+ * @param {boolean} [isPermanent]
413
+ * @param {*} [options] Override http request option.
414
+ * @throws {RequiredError}
415
+ */
416
+ apiV1WebappsIdDelete(id: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
417
+ return localVarFp.apiV1WebappsIdDelete(id, isPermanent, options).then((request) => request(axios, basePath));
418
+ },
419
+ /**
420
+ *
421
+ * @summary Retrive WebApp configuration
422
+ * @param {string} id
423
+ * @param {string} [languageCode]
424
+ * @param {*} [options] Override http request option.
425
+ * @throws {RequiredError}
426
+ */
427
+ apiV1WebappsIdGet(id: string, languageCode?: string, options?: any): AxiosPromise<WebAppModel> {
428
+ return localVarFp.apiV1WebappsIdGet(id, languageCode, options).then((request) => request(axios, basePath));
429
+ },
430
+ /**
431
+ *
432
+ * @summary Update WebApp configuration
433
+ * @param {string} id
434
+ * @param {UpdateWebAppCommand} [updateWebAppCommand]
435
+ * @param {*} [options] Override http request option.
436
+ * @throws {RequiredError}
437
+ */
438
+ apiV1WebappsIdPut(id: string, updateWebAppCommand?: UpdateWebAppCommand, options?: any): AxiosPromise<WebAppModel> {
439
+ return localVarFp.apiV1WebappsIdPut(id, updateWebAppCommand, options).then((request) => request(axios, basePath));
440
+ },
441
+ /**
442
+ *
443
+ * @summary Create WebApp configuration
444
+ * @param {CreateWebAppCommand} [createWebAppCommand]
445
+ * @param {*} [options] Override http request option.
446
+ * @throws {RequiredError}
447
+ */
448
+ apiV1WebappsPost(createWebAppCommand?: CreateWebAppCommand, options?: any): AxiosPromise<WebAppModel> {
449
+ return localVarFp.apiV1WebappsPost(createWebAppCommand, options).then((request) => request(axios, basePath));
450
+ },
451
+ };
452
+ };
453
+
454
+ /**
455
+ * Request parameters for apiV1WebappsGet operation in WebAppsApi.
456
+ * @export
457
+ * @interface WebAppsApiApiV1WebappsGetRequest
458
+ */
459
+ export interface WebAppsApiApiV1WebappsGetRequest {
460
+ /**
461
+ *
462
+ * @type {string}
463
+ * @memberof WebAppsApiApiV1WebappsGet
464
+ */
465
+ readonly id?: string
466
+
467
+ /**
468
+ *
469
+ * @type {string}
470
+ * @memberof WebAppsApiApiV1WebappsGet
471
+ */
472
+ readonly stsClientId?: string
473
+
474
+ /**
475
+ *
476
+ * @type {string}
477
+ * @memberof WebAppsApiApiV1WebappsGet
478
+ */
479
+ readonly hospitalId?: string
480
+
481
+ /**
482
+ *
483
+ * @type {string}
484
+ * @memberof WebAppsApiApiV1WebappsGet
485
+ */
486
+ readonly hospitalName?: string
487
+
488
+ /**
489
+ *
490
+ * @type {string}
491
+ * @memberof WebAppsApiApiV1WebappsGet
492
+ */
493
+ readonly template?: string
494
+
495
+ /**
496
+ *
497
+ * @type {DomainType}
498
+ * @memberof WebAppsApiApiV1WebappsGet
499
+ */
500
+ readonly domainType?: DomainType
501
+
502
+ /**
503
+ *
504
+ * @type {DeployStatus}
505
+ * @memberof WebAppsApiApiV1WebappsGet
506
+ */
507
+ readonly deployStatus?: DeployStatus
508
+
509
+ /**
510
+ *
511
+ * @type {string}
512
+ * @memberof WebAppsApiApiV1WebappsGet
513
+ */
514
+ readonly languageCode?: string
515
+
516
+ /**
517
+ *
518
+ * @type {number}
519
+ * @memberof WebAppsApiApiV1WebappsGet
520
+ */
521
+ readonly page?: number
522
+
523
+ /**
524
+ *
525
+ * @type {number}
526
+ * @memberof WebAppsApiApiV1WebappsGet
527
+ */
528
+ readonly limit?: number
529
+
530
+ /**
531
+ *
532
+ * @type {Date}
533
+ * @memberof WebAppsApiApiV1WebappsGet
534
+ */
535
+ readonly lastRetrieved?: Date
536
+ }
537
+
538
+ /**
539
+ * Request parameters for apiV1WebappsIdDelete operation in WebAppsApi.
540
+ * @export
541
+ * @interface WebAppsApiApiV1WebappsIdDeleteRequest
542
+ */
543
+ export interface WebAppsApiApiV1WebappsIdDeleteRequest {
544
+ /**
545
+ *
546
+ * @type {string}
547
+ * @memberof WebAppsApiApiV1WebappsIdDelete
548
+ */
549
+ readonly id: string
550
+
551
+ /**
552
+ *
553
+ * @type {boolean}
554
+ * @memberof WebAppsApiApiV1WebappsIdDelete
555
+ */
556
+ readonly isPermanent?: boolean
557
+ }
558
+
559
+ /**
560
+ * Request parameters for apiV1WebappsIdGet operation in WebAppsApi.
561
+ * @export
562
+ * @interface WebAppsApiApiV1WebappsIdGetRequest
563
+ */
564
+ export interface WebAppsApiApiV1WebappsIdGetRequest {
565
+ /**
566
+ *
567
+ * @type {string}
568
+ * @memberof WebAppsApiApiV1WebappsIdGet
569
+ */
570
+ readonly id: string
571
+
572
+ /**
573
+ *
574
+ * @type {string}
575
+ * @memberof WebAppsApiApiV1WebappsIdGet
576
+ */
577
+ readonly languageCode?: string
578
+ }
579
+
580
+ /**
581
+ * Request parameters for apiV1WebappsIdPut operation in WebAppsApi.
582
+ * @export
583
+ * @interface WebAppsApiApiV1WebappsIdPutRequest
584
+ */
585
+ export interface WebAppsApiApiV1WebappsIdPutRequest {
586
+ /**
587
+ *
588
+ * @type {string}
589
+ * @memberof WebAppsApiApiV1WebappsIdPut
590
+ */
591
+ readonly id: string
592
+
593
+ /**
594
+ *
595
+ * @type {UpdateWebAppCommand}
596
+ * @memberof WebAppsApiApiV1WebappsIdPut
597
+ */
598
+ readonly updateWebAppCommand?: UpdateWebAppCommand
599
+ }
600
+
601
+ /**
602
+ * Request parameters for apiV1WebappsPost operation in WebAppsApi.
603
+ * @export
604
+ * @interface WebAppsApiApiV1WebappsPostRequest
605
+ */
606
+ export interface WebAppsApiApiV1WebappsPostRequest {
607
+ /**
608
+ *
609
+ * @type {CreateWebAppCommand}
610
+ * @memberof WebAppsApiApiV1WebappsPost
611
+ */
612
+ readonly createWebAppCommand?: CreateWebAppCommand
613
+ }
614
+
615
+ /**
616
+ * WebAppsApi - object-oriented interface
617
+ * @export
618
+ * @class WebAppsApi
619
+ * @extends {BaseAPI}
620
+ */
621
+ export class WebAppsApi extends BaseAPI {
622
+ /**
623
+ *
624
+ * @summary Retrive all WebApp configuration
625
+ * @param {WebAppsApiApiV1WebappsGetRequest} requestParameters Request parameters.
626
+ * @param {*} [options] Override http request option.
627
+ * @throws {RequiredError}
628
+ * @memberof WebAppsApi
629
+ */
630
+ public apiV1WebappsGet(requestParameters: WebAppsApiApiV1WebappsGetRequest = {}, options?: AxiosRequestConfig) {
631
+ return 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((request) => request(this.axios, this.basePath));
632
+ }
633
+
634
+ /**
635
+ *
636
+ * @summary Delete WebApp configuration soft or permanent
637
+ * @param {WebAppsApiApiV1WebappsIdDeleteRequest} requestParameters Request parameters.
638
+ * @param {*} [options] Override http request option.
639
+ * @throws {RequiredError}
640
+ * @memberof WebAppsApi
641
+ */
642
+ public apiV1WebappsIdDelete(requestParameters: WebAppsApiApiV1WebappsIdDeleteRequest, options?: AxiosRequestConfig) {
643
+ return WebAppsApiFp(this.configuration).apiV1WebappsIdDelete(requestParameters.id, requestParameters.isPermanent, options).then((request) => request(this.axios, this.basePath));
644
+ }
645
+
646
+ /**
647
+ *
648
+ * @summary Retrive WebApp configuration
649
+ * @param {WebAppsApiApiV1WebappsIdGetRequest} requestParameters Request parameters.
650
+ * @param {*} [options] Override http request option.
651
+ * @throws {RequiredError}
652
+ * @memberof WebAppsApi
653
+ */
654
+ public apiV1WebappsIdGet(requestParameters: WebAppsApiApiV1WebappsIdGetRequest, options?: AxiosRequestConfig) {
655
+ return WebAppsApiFp(this.configuration).apiV1WebappsIdGet(requestParameters.id, requestParameters.languageCode, options).then((request) => request(this.axios, this.basePath));
656
+ }
657
+
658
+ /**
659
+ *
660
+ * @summary Update WebApp configuration
661
+ * @param {WebAppsApiApiV1WebappsIdPutRequest} requestParameters Request parameters.
662
+ * @param {*} [options] Override http request option.
663
+ * @throws {RequiredError}
664
+ * @memberof WebAppsApi
665
+ */
666
+ public apiV1WebappsIdPut(requestParameters: WebAppsApiApiV1WebappsIdPutRequest, options?: AxiosRequestConfig) {
667
+ return WebAppsApiFp(this.configuration).apiV1WebappsIdPut(requestParameters.id, requestParameters.updateWebAppCommand, options).then((request) => request(this.axios, this.basePath));
668
+ }
669
+
670
+ /**
671
+ *
672
+ * @summary Create WebApp configuration
673
+ * @param {WebAppsApiApiV1WebappsPostRequest} requestParameters Request parameters.
674
+ * @param {*} [options] Override http request option.
675
+ * @throws {RequiredError}
676
+ * @memberof WebAppsApi
677
+ */
678
+ public apiV1WebappsPost(requestParameters: WebAppsApiApiV1WebappsPostRequest = {}, options?: AxiosRequestConfig) {
679
+ return WebAppsApiFp(this.configuration).apiV1WebappsPost(requestParameters.createWebAppCommand, options).then((request) => request(this.axios, this.basePath));
680
+ }
681
+ }
package/src/api.ts CHANGED
@@ -66,4 +66,5 @@ export * from './api/vonage-accounts-api';
66
66
  export * from './api/vonage-applications-api';
67
67
  export * from './api/vonage-numbers-api';
68
68
  export * from './api/vonage-users-api';
69
+ export * from './api/web-apps-api';
69
70