ch-admin-api-client-typescript 5.19.53 → 5.19.58

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 (44) hide show
  1. package/lib/api/appointments-api.d.ts +46 -0
  2. package/lib/api/appointments-api.d.ts.map +1 -1
  3. package/lib/api/appointments-api.js +85 -0
  4. package/lib/api/hospitals-api.d.ts +85 -30
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +117 -26
  7. package/lib/api/web-apps-api.d.ts +46 -0
  8. package/lib/api/web-apps-api.d.ts.map +1 -1
  9. package/lib/api/web-apps-api.js +85 -0
  10. package/lib/models/application.d.ts +7 -0
  11. package/lib/models/application.d.ts.map +1 -1
  12. package/lib/models/appointment-status.d.ts +1 -0
  13. package/lib/models/appointment-status.d.ts.map +1 -1
  14. package/lib/models/appointment-status.js +2 -1
  15. package/lib/models/create-hospital-working-day-command.d.ts +6 -0
  16. package/lib/models/create-hospital-working-day-command.d.ts.map +1 -1
  17. package/lib/models/index.d.ts +1 -0
  18. package/lib/models/index.d.ts.map +1 -1
  19. package/lib/models/index.js +1 -0
  20. package/lib/models/privacy-settings.d.ts +25 -0
  21. package/lib/models/privacy-settings.d.ts.map +1 -0
  22. package/lib/models/privacy-settings.js +15 -0
  23. package/lib/models/update-hospital-working-day-command.d.ts +6 -0
  24. package/lib/models/update-hospital-working-day-command.d.ts.map +1 -1
  25. package/lib/models/voice.d.ts +18 -0
  26. package/lib/models/voice.d.ts.map +1 -1
  27. package/lib/models/working-day-item-model.d.ts +6 -0
  28. package/lib/models/working-day-item-model.d.ts.map +1 -1
  29. package/lib/models/working-day-model.d.ts +6 -0
  30. package/lib/models/working-day-model.d.ts.map +1 -1
  31. package/package.json +1 -1
  32. package/src/.openapi-generator/FILES +1 -0
  33. package/src/api/appointments-api.ts +85 -0
  34. package/src/api/hospitals-api.ts +147 -49
  35. package/src/api/web-apps-api.ts +85 -0
  36. package/src/models/application.ts +9 -0
  37. package/src/models/appointment-status.ts +2 -1
  38. package/src/models/create-hospital-working-day-command.ts +6 -0
  39. package/src/models/index.ts +1 -0
  40. package/src/models/privacy-settings.ts +30 -0
  41. package/src/models/update-hospital-working-day-command.ts +6 -0
  42. package/src/models/voice.ts +18 -0
  43. package/src/models/working-day-item-model.ts +6 -0
  44. package/src/models/working-day-model.ts +6 -0
@@ -305,6 +305,44 @@ export const WebAppsApiAxiosParamCreator = function (configuration?: Configurati
305
305
  options: localVarRequestOptions,
306
306
  };
307
307
  },
308
+ /**
309
+ *
310
+ * @summary Reactivate WebApp
311
+ * @param {string} id
312
+ * @param {*} [options] Override http request option.
313
+ * @throws {RequiredError}
314
+ */
315
+ apiV1WebappsIdReactivatePut: async (id: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
316
+ // verify required parameter 'id' is not null or undefined
317
+ assertParamExists('apiV1WebappsIdReactivatePut', 'id', id)
318
+ const localVarPath = `/api/v1/webapps/{id}/reactivate`
319
+ .replace(`{${"id"}}`, encodeURIComponent(String(id)));
320
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
321
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
322
+ let baseOptions;
323
+ if (configuration) {
324
+ baseOptions = configuration.baseOptions;
325
+ }
326
+
327
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
328
+ const localVarHeaderParameter = {} as any;
329
+ const localVarQueryParameter = {} as any;
330
+
331
+ // authentication oauth2 required
332
+ // oauth required
333
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
334
+
335
+
336
+
337
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
338
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
339
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
340
+
341
+ return {
342
+ url: toPathString(localVarUrlObj),
343
+ options: localVarRequestOptions,
344
+ };
345
+ },
308
346
  /**
309
347
  *
310
348
  * @summary Create WebApp configuration
@@ -422,6 +460,17 @@ export const WebAppsApiFp = function(configuration?: Configuration) {
422
460
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsIdPut(id, updateWebAppCommand, options);
423
461
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
424
462
  },
463
+ /**
464
+ *
465
+ * @summary Reactivate WebApp
466
+ * @param {string} id
467
+ * @param {*} [options] Override http request option.
468
+ * @throws {RequiredError}
469
+ */
470
+ async apiV1WebappsIdReactivatePut(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
471
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1WebappsIdReactivatePut(id, options);
472
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
473
+ },
425
474
  /**
426
475
  *
427
476
  * @summary Create WebApp configuration
@@ -507,6 +556,16 @@ export const WebAppsApiFactory = function (configuration?: Configuration, basePa
507
556
  apiV1WebappsIdPut(id: string, updateWebAppCommand?: UpdateWebAppCommand, options?: any): AxiosPromise<WebAppModel> {
508
557
  return localVarFp.apiV1WebappsIdPut(id, updateWebAppCommand, options).then((request) => request(axios, basePath));
509
558
  },
559
+ /**
560
+ *
561
+ * @summary Reactivate WebApp
562
+ * @param {string} id
563
+ * @param {*} [options] Override http request option.
564
+ * @throws {RequiredError}
565
+ */
566
+ apiV1WebappsIdReactivatePut(id: string, options?: any): AxiosPromise<boolean> {
567
+ return localVarFp.apiV1WebappsIdReactivatePut(id, options).then((request) => request(axios, basePath));
568
+ },
510
569
  /**
511
570
  *
512
571
  * @summary Create WebApp configuration
@@ -688,6 +747,20 @@ export interface WebAppsApiApiV1WebappsIdPutRequest {
688
747
  readonly updateWebAppCommand?: UpdateWebAppCommand
689
748
  }
690
749
 
750
+ /**
751
+ * Request parameters for apiV1WebappsIdReactivatePut operation in WebAppsApi.
752
+ * @export
753
+ * @interface WebAppsApiApiV1WebappsIdReactivatePutRequest
754
+ */
755
+ export interface WebAppsApiApiV1WebappsIdReactivatePutRequest {
756
+ /**
757
+ *
758
+ * @type {string}
759
+ * @memberof WebAppsApiApiV1WebappsIdReactivatePut
760
+ */
761
+ readonly id: string
762
+ }
763
+
691
764
  /**
692
765
  * Request parameters for apiV1WebappsPost operation in WebAppsApi.
693
766
  * @export
@@ -769,6 +842,18 @@ export class WebAppsApi extends BaseAPI {
769
842
  return WebAppsApiFp(this.configuration).apiV1WebappsIdPut(requestParameters.id, requestParameters.updateWebAppCommand, options).then((request) => request(this.axios, this.basePath));
770
843
  }
771
844
 
845
+ /**
846
+ *
847
+ * @summary Reactivate WebApp
848
+ * @param {WebAppsApiApiV1WebappsIdReactivatePutRequest} requestParameters Request parameters.
849
+ * @param {*} [options] Override http request option.
850
+ * @throws {RequiredError}
851
+ * @memberof WebAppsApi
852
+ */
853
+ public apiV1WebappsIdReactivatePut(requestParameters: WebAppsApiApiV1WebappsIdReactivatePutRequest, options?: AxiosRequestConfig) {
854
+ return WebAppsApiFp(this.configuration).apiV1WebappsIdReactivatePut(requestParameters.id, options).then((request) => request(this.axios, this.basePath));
855
+ }
856
+
772
857
  /**
773
858
  *
774
859
  * @summary Create WebApp configuration
@@ -19,6 +19,9 @@ import { ApplicationCapabilities } from './application-capabilities';
19
19
  // May contain unused imports in some cases
20
20
  // @ts-ignore
21
21
  import { Keys } from './keys';
22
+ // May contain unused imports in some cases
23
+ // @ts-ignore
24
+ import { PrivacySettings } from './privacy-settings';
22
25
 
23
26
  /**
24
27
  *
@@ -50,5 +53,11 @@ export interface Application {
50
53
  * @memberof Application
51
54
  */
52
55
  'name'?: string | null;
56
+ /**
57
+ *
58
+ * @type {PrivacySettings}
59
+ * @memberof Application
60
+ */
61
+ 'privacy'?: PrivacySettings;
53
62
  }
54
63
 
@@ -28,7 +28,8 @@ export const AppointmentStatus = {
28
28
  Paid: 'Paid',
29
29
  Canceled: 'Canceled',
30
30
  RefundRequested: 'RefundRequested',
31
- Refunded: 'Refunded'
31
+ Refunded: 'Refunded',
32
+ Completed: 'Completed'
32
33
  } as const;
33
34
 
34
35
  export type AppointmentStatus = typeof AppointmentStatus[keyof typeof AppointmentStatus];
@@ -44,5 +44,11 @@ export interface CreateHospitalWorkingDayCommand {
44
44
  * @memberof CreateHospitalWorkingDayCommand
45
45
  */
46
46
  'checkHoliday'?: boolean;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof CreateHospitalWorkingDayCommand
51
+ */
52
+ 'order'?: number;
47
53
  }
48
54
 
@@ -340,6 +340,7 @@ export * from './policies-model';
340
340
  export * from './policy-item-model';
341
341
  export * from './policy-model';
342
342
  export * from './primary-account';
343
+ export * from './privacy-settings';
343
344
  export * from './problem-details';
344
345
  export * from './procedure';
345
346
  export * from './recurring-interval';
@@ -0,0 +1,30 @@
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
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PrivacySettings
21
+ */
22
+ export interface PrivacySettings {
23
+ /**
24
+ *
25
+ * @type {boolean}
26
+ * @memberof PrivacySettings
27
+ */
28
+ 'improveAi'?: boolean;
29
+ }
30
+
@@ -44,5 +44,11 @@ export interface UpdateHospitalWorkingDayCommand {
44
44
  * @memberof UpdateHospitalWorkingDayCommand
45
45
  */
46
46
  'checkHoliday'?: boolean;
47
+ /**
48
+ *
49
+ * @type {number}
50
+ * @memberof UpdateHospitalWorkingDayCommand
51
+ */
52
+ 'order'?: number;
47
53
  }
48
54
 
@@ -29,5 +29,23 @@ export interface Voice {
29
29
  * @memberof Voice
30
30
  */
31
31
  'webhooks'?: { [key: string]: Webhook; } | null;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof Voice
36
+ */
37
+ 'conversationsTimeToLive'?: number;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof Voice
42
+ */
43
+ 'region'?: string | null;
44
+ /**
45
+ *
46
+ * @type {boolean}
47
+ * @memberof Voice
48
+ */
49
+ 'signedCallbacks'?: boolean;
32
50
  }
33
51
 
@@ -50,5 +50,11 @@ export interface WorkingDayItemModel {
50
50
  * @memberof WorkingDayItemModel
51
51
  */
52
52
  'checkHoliday'?: boolean;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof WorkingDayItemModel
57
+ */
58
+ 'order'?: number;
53
59
  }
54
60
 
@@ -50,5 +50,11 @@ export interface WorkingDayModel {
50
50
  * @memberof WorkingDayModel
51
51
  */
52
52
  'checkHoliday'?: boolean;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof WorkingDayModel
57
+ */
58
+ 'order'?: number;
53
59
  }
54
60