ch-api-client-typescript2 5.2.1 → 5.2.4

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 (54) hide show
  1. package/lib/api/hospitals-api.d.ts +111 -0
  2. package/lib/api/hospitals-api.d.ts.map +1 -1
  3. package/lib/api/hospitals-api.js +119 -0
  4. package/lib/api/secure-containers-api.d.ts +347 -0
  5. package/lib/api/secure-containers-api.d.ts.map +1 -0
  6. package/lib/api/secure-containers-api.js +611 -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/hospital-contact-item-model.d.ts +80 -0
  11. package/lib/models/hospital-contact-item-model.d.ts.map +1 -0
  12. package/lib/models/hospital-contact-item-model.js +15 -0
  13. package/lib/models/hospital-contacts-model.d.ts +33 -0
  14. package/lib/models/hospital-contacts-model.d.ts.map +1 -0
  15. package/lib/models/hospital-contacts-model.js +15 -0
  16. package/lib/models/index.d.ts +8 -0
  17. package/lib/models/index.d.ts.map +1 -1
  18. package/lib/models/index.js +8 -0
  19. package/lib/models/secure-container-item-model.d.ts +43 -0
  20. package/lib/models/secure-container-item-model.d.ts.map +1 -0
  21. package/lib/models/secure-container-item-model.js +15 -0
  22. package/lib/models/secure-container-model.d.ts +50 -0
  23. package/lib/models/secure-container-model.d.ts.map +1 -0
  24. package/lib/models/secure-container-model.js +15 -0
  25. package/lib/models/secure-containers-model.d.ts +33 -0
  26. package/lib/models/secure-containers-model.d.ts.map +1 -0
  27. package/lib/models/secure-containers-model.js +15 -0
  28. package/lib/models/secure-file-item-input-model.d.ts +43 -0
  29. package/lib/models/secure-file-item-input-model.d.ts.map +1 -0
  30. package/lib/models/secure-file-item-input-model.js +15 -0
  31. package/lib/models/secure-file-model.d.ts +86 -0
  32. package/lib/models/secure-file-model.d.ts.map +1 -0
  33. package/lib/models/secure-file-model.js +15 -0
  34. package/lib/models/survey-form-element-types.d.ts +1 -0
  35. package/lib/models/survey-form-element-types.d.ts.map +1 -1
  36. package/lib/models/survey-form-element-types.js +2 -1
  37. package/lib/models/update-secure-container-command.d.ts +38 -0
  38. package/lib/models/update-secure-container-command.d.ts.map +1 -0
  39. package/lib/models/update-secure-container-command.js +15 -0
  40. package/package.json +1 -1
  41. package/src/.openapi-generator/FILES +9 -0
  42. package/src/api/hospitals-api.ts +185 -0
  43. package/src/api/secure-containers-api.ts +610 -0
  44. package/src/api.ts +1 -0
  45. package/src/models/hospital-contact-item-model.ts +87 -0
  46. package/src/models/hospital-contacts-model.ts +42 -0
  47. package/src/models/index.ts +8 -0
  48. package/src/models/secure-container-item-model.ts +48 -0
  49. package/src/models/secure-container-model.ts +57 -0
  50. package/src/models/secure-containers-model.ts +42 -0
  51. package/src/models/secure-file-item-input-model.ts +48 -0
  52. package/src/models/secure-file-model.ts +93 -0
  53. package/src/models/survey-form-element-types.ts +2 -1
  54. package/src/models/update-secure-container-command.ts +45 -0
@@ -0,0 +1,38 @@
1
+ /**
2
+ * Swagger UI - Cloud Hospital Api-INT
3
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
4
+ *
5
+ * The version of the OpenAPI document: 2
6
+ * Contact: hyounoosung@icloudhospital.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import { SecureFileItemInputModel } from './secure-file-item-input-model';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface UpdateSecureContainerCommand
17
+ */
18
+ export interface UpdateSecureContainerCommand {
19
+ /**
20
+ *
21
+ * @type {string}
22
+ * @memberof UpdateSecureContainerCommand
23
+ */
24
+ 'languageCode'?: string | null;
25
+ /**
26
+ *
27
+ * @type {Date}
28
+ * @memberof UpdateSecureContainerCommand
29
+ */
30
+ 'expireDate'?: Date | null;
31
+ /**
32
+ *
33
+ * @type {Array<SecureFileItemInputModel>}
34
+ * @memberof UpdateSecureContainerCommand
35
+ */
36
+ 'files'?: Array<SecureFileItemInputModel> | null;
37
+ }
38
+ //# sourceMappingURL=update-secure-container-command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"update-secure-container-command.d.ts","sourceRoot":"","sources":["../../src/models/update-secure-container-command.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,wBAAwB,EAAE,MAAM,gCAAgC,CAAC;AAE1E;;;;GAIG;AACH,MAAM,WAAW,4BAA4B;IACzC;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;;;OAIG;IACH,YAAY,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;IAC3B;;;;OAIG;IACH,OAAO,CAAC,EAAE,KAAK,CAAC,wBAAwB,CAAC,GAAG,IAAI,CAAC;CACpD"}
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Swagger UI - Cloud Hospital Api-INT
6
+ * Cloud Hospital application with Swagger, Swashbuckle, and API versioning.
7
+ *
8
+ * The version of the OpenAPI document: 2
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
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ch-api-client-typescript2",
3
- "version": "5.2.1",
3
+ "version": "5.2.4",
4
4
  "description": "Openapi generated typescript-axios client for CloudHospital",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,6 +32,7 @@ api/origins-api.ts
32
32
  api/patients-api.ts
33
33
  api/plans-api.ts
34
34
  api/profiles-api.ts
35
+ api/secure-containers-api.ts
35
36
  api/service-reviews-api.ts
36
37
  api/services-api.ts
37
38
  api/services-categories-api.ts
@@ -196,7 +197,9 @@ models/hospital-accreditation-model.ts
196
197
  models/hospital-accreditations-model.ts
197
198
  models/hospital-consultation-option-model.ts
198
199
  models/hospital-contact-document-model.ts
200
+ models/hospital-contact-item-model.ts
199
201
  models/hospital-contact-model.ts
202
+ models/hospital-contacts-model.ts
200
203
  models/hospital-document-model.ts
201
204
  models/hospital-equipment-item-model.ts
202
205
  models/hospital-equipment-model.ts
@@ -264,6 +267,11 @@ models/recurring-interval.ts
264
267
  models/refund-policy.ts
265
268
  models/reject-reason.ts
266
269
  models/review-type.ts
270
+ models/secure-container-item-model.ts
271
+ models/secure-container-model.ts
272
+ models/secure-containers-model.ts
273
+ models/secure-file-item-input-model.ts
274
+ models/secure-file-model.ts
267
275
  models/send-bird-group-channel-member.ts
268
276
  models/send-bird-group-channel-model.ts
269
277
  models/send-bird-group-channelr-operator.ts
@@ -316,6 +324,7 @@ models/update-device-command.ts
316
324
  models/update-media-command.ts
317
325
  models/update-patient-command.ts
318
326
  models/update-profile-command.ts
327
+ models/update-secure-container-command.ts
319
328
  models/update-service-review-command.ts
320
329
  models/user-language-document-model.ts
321
330
  models/user-language-model.ts
@@ -23,12 +23,16 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr
23
23
  // @ts-ignore
24
24
  import { AppointmentTimetablesModel } from '../models';
25
25
  // @ts-ignore
26
+ import { ContactScope } from '../models';
27
+ // @ts-ignore
26
28
  import { CreateLandingFormCommand } from '../models';
27
29
  // @ts-ignore
28
30
  import { HospitalAccreditationModel } from '../models';
29
31
  // @ts-ignore
30
32
  import { HospitalAccreditationsModel } from '../models';
31
33
  // @ts-ignore
34
+ import { HospitalContactsModel } from '../models';
35
+ // @ts-ignore
32
36
  import { HospitalEquipmentModel } from '../models';
33
37
  // @ts-ignore
34
38
  import { HospitalEquipmentsModel } from '../models';
@@ -361,6 +365,77 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
361
365
 
362
366
 
363
367
 
368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
370
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
371
+
372
+ return {
373
+ url: toPathString(localVarUrlObj),
374
+ options: localVarRequestOptions,
375
+ };
376
+ },
377
+ /**
378
+ *
379
+ * @summary Get hospital contacts
380
+ * @param {string} hospitalId
381
+ * @param {string} [contactId]
382
+ * @param {ContactScope} [scope]
383
+ * @param {string} [name]
384
+ * @param {string} [languageCode]
385
+ * @param {number} [page]
386
+ * @param {number} [limit]
387
+ * @param {Date} [lastRetrieved]
388
+ * @param {*} [options] Override http request option.
389
+ * @throws {RequiredError}
390
+ */
391
+ apiV2HospitalsHospitalIdContactsGet: async (hospitalId: string, contactId?: string, scope?: ContactScope, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
392
+ // verify required parameter 'hospitalId' is not null or undefined
393
+ assertParamExists('apiV2HospitalsHospitalIdContactsGet', 'hospitalId', hospitalId)
394
+ const localVarPath = `/api/v2/hospitals/{hospitalId}/contacts`
395
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)));
396
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
397
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
398
+ let baseOptions;
399
+ if (configuration) {
400
+ baseOptions = configuration.baseOptions;
401
+ }
402
+
403
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
404
+ const localVarHeaderParameter = {} as any;
405
+ const localVarQueryParameter = {} as any;
406
+
407
+ if (contactId !== undefined) {
408
+ localVarQueryParameter['ContactId'] = contactId;
409
+ }
410
+
411
+ if (scope !== undefined) {
412
+ localVarQueryParameter['Scope'] = scope;
413
+ }
414
+
415
+ if (name !== undefined) {
416
+ localVarQueryParameter['Name'] = name;
417
+ }
418
+
419
+ if (languageCode !== undefined) {
420
+ localVarQueryParameter['LanguageCode'] = languageCode;
421
+ }
422
+
423
+ if (page !== undefined) {
424
+ localVarQueryParameter['page'] = page;
425
+ }
426
+
427
+ if (limit !== undefined) {
428
+ localVarQueryParameter['limit'] = limit;
429
+ }
430
+
431
+ if (lastRetrieved !== undefined) {
432
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
433
+ (lastRetrieved as any).toISOString() :
434
+ lastRetrieved;
435
+ }
436
+
437
+
438
+
364
439
  setSearchParams(localVarUrlObj, localVarQueryParameter);
365
440
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
366
441
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -2398,6 +2473,24 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
2398
2473
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, year, month, timeZone, appointmentIdExcluded, options);
2399
2474
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2400
2475
  },
2476
+ /**
2477
+ *
2478
+ * @summary Get hospital contacts
2479
+ * @param {string} hospitalId
2480
+ * @param {string} [contactId]
2481
+ * @param {ContactScope} [scope]
2482
+ * @param {string} [name]
2483
+ * @param {string} [languageCode]
2484
+ * @param {number} [page]
2485
+ * @param {number} [limit]
2486
+ * @param {Date} [lastRetrieved]
2487
+ * @param {*} [options] Override http request option.
2488
+ * @throws {RequiredError}
2489
+ */
2490
+ async apiV2HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, scope?: ContactScope, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactsModel>> {
2491
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV2HospitalsHospitalIdContactsGet(hospitalId, contactId, scope, name, languageCode, page, limit, lastRetrieved, options);
2492
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
2493
+ },
2401
2494
  /**
2402
2495
  *
2403
2496
  * @summary Get HospitalEquipment.
@@ -2995,6 +3088,23 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
2995
3088
  apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId: string, year?: number, month?: number, timeZone?: string, appointmentIdExcluded?: string, options?: any): AxiosPromise<AppointmentTimetablesModel> {
2996
3089
  return localVarFp.apiV2HospitalsHospitalIdAppointmenttimetablesGet(hospitalId, year, month, timeZone, appointmentIdExcluded, options).then((request) => request(axios, basePath));
2997
3090
  },
3091
+ /**
3092
+ *
3093
+ * @summary Get hospital contacts
3094
+ * @param {string} hospitalId
3095
+ * @param {string} [contactId]
3096
+ * @param {ContactScope} [scope]
3097
+ * @param {string} [name]
3098
+ * @param {string} [languageCode]
3099
+ * @param {number} [page]
3100
+ * @param {number} [limit]
3101
+ * @param {Date} [lastRetrieved]
3102
+ * @param {*} [options] Override http request option.
3103
+ * @throws {RequiredError}
3104
+ */
3105
+ apiV2HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, scope?: ContactScope, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalContactsModel> {
3106
+ return localVarFp.apiV2HospitalsHospitalIdContactsGet(hospitalId, contactId, scope, name, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
3107
+ },
2998
3108
  /**
2999
3109
  *
3000
3110
  * @summary Get HospitalEquipment.
@@ -3737,6 +3847,69 @@ export interface HospitalsApiApiV2HospitalsHospitalIdAppointmenttimetablesGetReq
3737
3847
  readonly appointmentIdExcluded?: string
3738
3848
  }
3739
3849
 
3850
+ /**
3851
+ * Request parameters for apiV2HospitalsHospitalIdContactsGet operation in HospitalsApi.
3852
+ * @export
3853
+ * @interface HospitalsApiApiV2HospitalsHospitalIdContactsGetRequest
3854
+ */
3855
+ export interface HospitalsApiApiV2HospitalsHospitalIdContactsGetRequest {
3856
+ /**
3857
+ *
3858
+ * @type {string}
3859
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3860
+ */
3861
+ readonly hospitalId: string
3862
+
3863
+ /**
3864
+ *
3865
+ * @type {string}
3866
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3867
+ */
3868
+ readonly contactId?: string
3869
+
3870
+ /**
3871
+ *
3872
+ * @type {ContactScope}
3873
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3874
+ */
3875
+ readonly scope?: ContactScope
3876
+
3877
+ /**
3878
+ *
3879
+ * @type {string}
3880
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3881
+ */
3882
+ readonly name?: string
3883
+
3884
+ /**
3885
+ *
3886
+ * @type {string}
3887
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3888
+ */
3889
+ readonly languageCode?: string
3890
+
3891
+ /**
3892
+ *
3893
+ * @type {number}
3894
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3895
+ */
3896
+ readonly page?: number
3897
+
3898
+ /**
3899
+ *
3900
+ * @type {number}
3901
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3902
+ */
3903
+ readonly limit?: number
3904
+
3905
+ /**
3906
+ *
3907
+ * @type {Date}
3908
+ * @memberof HospitalsApiApiV2HospitalsHospitalIdContactsGet
3909
+ */
3910
+ readonly lastRetrieved?: Date
3911
+ }
3912
+
3740
3913
  /**
3741
3914
  * Request parameters for apiV2HospitalsHospitalIdEquipmentsEquipmentIdGet operation in HospitalsApi.
3742
3915
  * @export
@@ -5409,6 +5582,18 @@ export class HospitalsApi extends BaseAPI {
5409
5582
  return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdAppointmenttimetablesGet(requestParameters.hospitalId, requestParameters.year, requestParameters.month, requestParameters.timeZone, requestParameters.appointmentIdExcluded, options).then((request) => request(this.axios, this.basePath));
5410
5583
  }
5411
5584
 
5585
+ /**
5586
+ *
5587
+ * @summary Get hospital contacts
5588
+ * @param {HospitalsApiApiV2HospitalsHospitalIdContactsGetRequest} requestParameters Request parameters.
5589
+ * @param {*} [options] Override http request option.
5590
+ * @throws {RequiredError}
5591
+ * @memberof HospitalsApi
5592
+ */
5593
+ public apiV2HospitalsHospitalIdContactsGet(requestParameters: HospitalsApiApiV2HospitalsHospitalIdContactsGetRequest, options?: AxiosRequestConfig) {
5594
+ return HospitalsApiFp(this.configuration).apiV2HospitalsHospitalIdContactsGet(requestParameters.hospitalId, requestParameters.contactId, requestParameters.scope, requestParameters.name, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
5595
+ }
5596
+
5412
5597
  /**
5413
5598
  *
5414
5599
  * @summary Get HospitalEquipment.