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

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 (46) 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 +112 -0
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +181 -0
  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/appointment-status.d.ts +1 -0
  11. package/lib/models/appointment-status.d.ts.map +1 -1
  12. package/lib/models/appointment-status.js +2 -1
  13. package/lib/models/batch-hospital-working-days-command.d.ts +26 -0
  14. package/lib/models/batch-hospital-working-days-command.d.ts.map +1 -0
  15. package/lib/models/batch-hospital-working-days-command.js +15 -0
  16. package/lib/models/create-hospital-working-day-command.d.ts +6 -0
  17. package/lib/models/create-hospital-working-day-command.d.ts.map +1 -1
  18. package/lib/models/hospital-working-days-batch-result-model.d.ts +50 -0
  19. package/lib/models/hospital-working-days-batch-result-model.d.ts.map +1 -0
  20. package/lib/models/hospital-working-days-batch-result-model.js +15 -0
  21. package/lib/models/index.d.ts +3 -0
  22. package/lib/models/index.d.ts.map +1 -1
  23. package/lib/models/index.js +3 -0
  24. package/lib/models/update-hospital-working-day-command.d.ts +6 -0
  25. package/lib/models/update-hospital-working-day-command.d.ts.map +1 -1
  26. package/lib/models/working-day-input-model.d.ts +55 -0
  27. package/lib/models/working-day-input-model.d.ts.map +1 -0
  28. package/lib/models/working-day-input-model.js +15 -0
  29. package/lib/models/working-day-item-model.d.ts +6 -0
  30. package/lib/models/working-day-item-model.d.ts.map +1 -1
  31. package/lib/models/working-day-model.d.ts +6 -0
  32. package/lib/models/working-day-model.d.ts.map +1 -1
  33. package/package.json +1 -1
  34. package/src/.openapi-generator/FILES +3 -0
  35. package/src/api/appointments-api.ts +85 -0
  36. package/src/api/hospitals-api.ts +200 -0
  37. package/src/api/web-apps-api.ts +85 -0
  38. package/src/models/appointment-status.ts +2 -1
  39. package/src/models/batch-hospital-working-days-command.ts +33 -0
  40. package/src/models/create-hospital-working-day-command.ts +6 -0
  41. package/src/models/hospital-working-days-batch-result-model.ts +57 -0
  42. package/src/models/index.ts +3 -0
  43. package/src/models/update-hospital-working-day-command.ts +6 -0
  44. package/src/models/working-day-input-model.ts +60 -0
  45. package/src/models/working-day-item-model.ts +6 -0
  46. 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
@@ -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];
@@ -0,0 +1,33 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { WorkingDayInputModel } from './working-day-input-model';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface BatchHospitalWorkingDaysCommand
24
+ */
25
+ export interface BatchHospitalWorkingDaysCommand {
26
+ /**
27
+ *
28
+ * @type {Array<WorkingDayInputModel>}
29
+ * @memberof BatchHospitalWorkingDaysCommand
30
+ */
31
+ 'items'?: Array<WorkingDayInputModel> | null;
32
+ }
33
+
@@ -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
 
@@ -0,0 +1,57 @@
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
+ // May contain unused imports in some cases
17
+ // @ts-ignore
18
+ import { WorkingDayItemModel } from './working-day-item-model';
19
+
20
+ /**
21
+ *
22
+ * @export
23
+ * @interface HospitalWorkingDaysBatchResultModel
24
+ */
25
+ export interface HospitalWorkingDaysBatchResultModel {
26
+ /**
27
+ *
28
+ * @type {Array<WorkingDayItemModel>}
29
+ * @memberof HospitalWorkingDaysBatchResultModel
30
+ */
31
+ 'items'?: Array<WorkingDayItemModel> | null;
32
+ /**
33
+ *
34
+ * @type {number}
35
+ * @memberof HospitalWorkingDaysBatchResultModel
36
+ */
37
+ 'inserted'?: number;
38
+ /**
39
+ *
40
+ * @type {number}
41
+ * @memberof HospitalWorkingDaysBatchResultModel
42
+ */
43
+ 'updated'?: number;
44
+ /**
45
+ *
46
+ * @type {number}
47
+ * @memberof HospitalWorkingDaysBatchResultModel
48
+ */
49
+ 'deleted'?: number;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof HospitalWorkingDaysBatchResultModel
54
+ */
55
+ 'isSucceed'?: boolean;
56
+ }
57
+
@@ -56,6 +56,7 @@ export * from './batch-deal-package-appointment-timetables-command';
56
56
  export * from './batch-doctor-affiliation-appointment-timetables-command';
57
57
  export * from './batch-hospital-appointment-timetables-command';
58
58
  export * from './batch-hospital-specialty-appointment-timetables-command';
59
+ export * from './batch-hospital-working-days-command';
59
60
  export * from './batch-service-appointment-timetables-command';
60
61
  export * from './batch-update-appointment-timetable-model';
61
62
  export * from './buy-number-command';
@@ -270,6 +271,7 @@ export * from './hospital-specialty-simple-item-model';
270
271
  export * from './hospital-tag-item-model';
271
272
  export * from './hospital-tag-model';
272
273
  export * from './hospital-tags-model';
274
+ export * from './hospital-working-days-batch-result-model';
273
275
  export * from './hospitals-model';
274
276
  export * from './hospitals-simple-model';
275
277
  export * from './http-status-code';
@@ -531,6 +533,7 @@ export * from './web-app-item-model';
531
533
  export * from './web-app-model';
532
534
  export * from './web-apps-model';
533
535
  export * from './webhook';
536
+ export * from './working-day-input-model';
534
537
  export * from './working-day-item-model';
535
538
  export * from './working-day-model';
536
539
  export * from './working-days-model';
@@ -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
 
@@ -0,0 +1,60 @@
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 WorkingDayInputModel
21
+ */
22
+ export interface WorkingDayInputModel {
23
+ /**
24
+ *
25
+ * @type {string}
26
+ * @memberof WorkingDayInputModel
27
+ */
28
+ 'id'?: string | null;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof WorkingDayInputModel
33
+ */
34
+ 'dayOfWeek'?: string | null;
35
+ /**
36
+ *
37
+ * @type {Date}
38
+ * @memberof WorkingDayInputModel
39
+ */
40
+ 'timeFrom'?: Date;
41
+ /**
42
+ *
43
+ * @type {Date}
44
+ * @memberof WorkingDayInputModel
45
+ */
46
+ 'timeTo'?: Date;
47
+ /**
48
+ *
49
+ * @type {boolean}
50
+ * @memberof WorkingDayInputModel
51
+ */
52
+ 'checkHoliday'?: boolean;
53
+ /**
54
+ *
55
+ * @type {number}
56
+ * @memberof WorkingDayInputModel
57
+ */
58
+ 'order'?: number;
59
+ }
60
+
@@ -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