ch-admin-api-client-typescript 5.30.26 → 5.30.38

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 +69 -3
  2. package/lib/api/appointments-api.d.ts.map +1 -1
  3. package/lib/api/appointments-api.js +101 -6
  4. package/lib/api/hospitals-api.d.ts +313 -0
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +478 -0
  7. package/lib/api/search-api.d.ts +55 -0
  8. package/lib/api/search-api.d.ts.map +1 -1
  9. package/lib/api/search-api.js +93 -0
  10. package/lib/api.d.ts +0 -1
  11. package/lib/api.d.ts.map +1 -1
  12. package/lib/api.js +0 -1
  13. package/lib/models/appointment-status.d.ts +1 -0
  14. package/lib/models/appointment-status.d.ts.map +1 -1
  15. package/lib/models/appointment-status.js +1 -0
  16. package/lib/models/cancel-appointment-command.d.ts +33 -0
  17. package/lib/models/cancel-appointment-command.d.ts.map +1 -0
  18. package/lib/models/cancel-appointment-command.js +15 -0
  19. package/lib/models/header-navigation-item-model.d.ts +20 -8
  20. package/lib/models/header-navigation-item-model.d.ts.map +1 -1
  21. package/lib/models/index.d.ts +2 -0
  22. package/lib/models/index.d.ts.map +1 -1
  23. package/lib/models/index.js +2 -0
  24. package/lib/models/reschedule-appointment-command.d.ts +37 -0
  25. package/lib/models/reschedule-appointment-command.d.ts.map +1 -0
  26. package/lib/models/reschedule-appointment-command.js +15 -0
  27. package/lib/models/save-header-navigation-item-model.d.ts +15 -3
  28. package/lib/models/save-header-navigation-item-model.d.ts.map +1 -1
  29. package/package.json +1 -1
  30. package/src/.openapi-generator/FILES +2 -1
  31. package/src/api/appointments-api.ts +121 -6
  32. package/src/api/hospitals-api.ts +546 -0
  33. package/src/api/search-api.ts +104 -0
  34. package/src/api.ts +0 -1
  35. package/src/models/appointment-status.ts +1 -0
  36. package/src/models/cancel-appointment-command.ts +42 -0
  37. package/src/models/header-navigation-item-model.ts +20 -8
  38. package/src/models/index.ts +2 -0
  39. package/src/models/reschedule-appointment-command.ts +42 -0
  40. package/src/models/save-header-navigation-item-model.ts +15 -3
  41. package/lib/api/header-navigations-api.d.ts +0 -309
  42. package/lib/api/header-navigations-api.d.ts.map +0 -1
  43. package/lib/api/header-navigations-api.js +0 -579
  44. package/src/api/header-navigations-api.ts +0 -539
@@ -31,12 +31,16 @@ import { AppointmentsModel } from '../models';
31
31
  // @ts-ignore
32
32
  import { ApproveAppointmentCommand } from '../models';
33
33
  // @ts-ignore
34
+ import { CancelAppointmentCommand } from '../models';
35
+ // @ts-ignore
34
36
  import { CreateWalkInAppointmentCommand } from '../models';
35
37
  // @ts-ignore
36
38
  import { ProblemDetails } from '../models';
37
39
  // @ts-ignore
38
40
  import { RejectAppointmentCommand } from '../models';
39
41
  // @ts-ignore
42
+ import { RescheduleAppointmentCommand } from '../models';
43
+ // @ts-ignore
40
44
  import { SortingOrder } from '../models';
41
45
  /**
42
46
  * AppointmentsApi - axios parameter creator
@@ -90,10 +94,11 @@ export const AppointmentsApiAxiosParamCreator = function (configuration?: Config
90
94
  *
91
95
  * @summary Cancel appointment
92
96
  * @param {string} appointmentId
97
+ * @param {CancelAppointmentCommand} [cancelAppointmentCommand]
93
98
  * @param {*} [options] Override http request option.
94
99
  * @throws {RequiredError}
95
100
  */
96
- apiV1AppointmentsAppointmentIdCancelPut: async (appointmentId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
101
+ apiV1AppointmentsAppointmentIdCancelPut: async (appointmentId: string, cancelAppointmentCommand?: CancelAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
97
102
  // verify required parameter 'appointmentId' is not null or undefined
98
103
  assertParamExists('apiV1AppointmentsAppointmentIdCancelPut', 'appointmentId', appointmentId)
99
104
  const localVarPath = `/api/v1/appointments/{appointmentId}/cancel`
@@ -115,9 +120,12 @@ export const AppointmentsApiAxiosParamCreator = function (configuration?: Config
115
120
 
116
121
 
117
122
 
123
+ localVarHeaderParameter['Content-Type'] = 'application/json';
124
+
118
125
  setSearchParams(localVarUrlObj, localVarQueryParameter);
119
126
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
120
127
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
128
+ localVarRequestOptions.data = serializeDataIfNeeded(cancelAppointmentCommand, localVarRequestOptions, configuration)
121
129
 
122
130
  return {
123
131
  url: toPathString(localVarUrlObj),
@@ -452,6 +460,48 @@ export const AppointmentsApiAxiosParamCreator = function (configuration?: Config
452
460
  options: localVarRequestOptions,
453
461
  };
454
462
  },
463
+ /**
464
+ *
465
+ * @summary Reschedule appointment
466
+ * @param {string} appointmentId
467
+ * @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
468
+ * @param {*} [options] Override http request option.
469
+ * @throws {RequiredError}
470
+ */
471
+ apiV1AppointmentsAppointmentIdReschedulePut: async (appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
472
+ // verify required parameter 'appointmentId' is not null or undefined
473
+ assertParamExists('apiV1AppointmentsAppointmentIdReschedulePut', 'appointmentId', appointmentId)
474
+ const localVarPath = `/api/v1/appointments/{appointmentId}/reschedule`
475
+ .replace(`{${"appointmentId"}}`, encodeURIComponent(String(appointmentId)));
476
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
477
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
478
+ let baseOptions;
479
+ if (configuration) {
480
+ baseOptions = configuration.baseOptions;
481
+ }
482
+
483
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
484
+ const localVarHeaderParameter = {} as any;
485
+ const localVarQueryParameter = {} as any;
486
+
487
+ // authentication oauth2 required
488
+ // oauth required
489
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["cloudhospital_admin_api"], configuration)
490
+
491
+
492
+
493
+ localVarHeaderParameter['Content-Type'] = 'application/json';
494
+
495
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
496
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
497
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
498
+ localVarRequestOptions.data = serializeDataIfNeeded(rescheduleAppointmentCommand, localVarRequestOptions, configuration)
499
+
500
+ return {
501
+ url: toPathString(localVarUrlObj),
502
+ options: localVarRequestOptions,
503
+ };
504
+ },
455
505
  /**
456
506
  *
457
507
  * @summary Get appointments
@@ -716,11 +766,12 @@ export const AppointmentsApiFp = function(configuration?: Configuration) {
716
766
  *
717
767
  * @summary Cancel appointment
718
768
  * @param {string} appointmentId
769
+ * @param {CancelAppointmentCommand} [cancelAppointmentCommand]
719
770
  * @param {*} [options] Override http request option.
720
771
  * @throws {RequiredError}
721
772
  */
722
- async apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
723
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdCancelPut(appointmentId, options);
773
+ async apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, cancelAppointmentCommand?: CancelAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
774
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdCancelPut(appointmentId, cancelAppointmentCommand, options);
724
775
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
725
776
  },
726
777
  /**
@@ -816,6 +867,18 @@ export const AppointmentsApiFp = function(configuration?: Configuration) {
816
867
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdRejectPut(appointmentId, rejectAppointmentCommand, options);
817
868
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
818
869
  },
870
+ /**
871
+ *
872
+ * @summary Reschedule appointment
873
+ * @param {string} appointmentId
874
+ * @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
875
+ * @param {*} [options] Override http request option.
876
+ * @throws {RequiredError}
877
+ */
878
+ async apiV1AppointmentsAppointmentIdReschedulePut(appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AppointmentModel>> {
879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1AppointmentsAppointmentIdReschedulePut(appointmentId, rescheduleAppointmentCommand, options);
880
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
881
+ },
819
882
  /**
820
883
  *
821
884
  * @summary Get appointments
@@ -894,11 +957,12 @@ export const AppointmentsApiFactory = function (configuration?: Configuration, b
894
957
  *
895
958
  * @summary Cancel appointment
896
959
  * @param {string} appointmentId
960
+ * @param {CancelAppointmentCommand} [cancelAppointmentCommand]
897
961
  * @param {*} [options] Override http request option.
898
962
  * @throws {RequiredError}
899
963
  */
900
- apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, options?: any): AxiosPromise<boolean> {
901
- return localVarFp.apiV1AppointmentsAppointmentIdCancelPut(appointmentId, options).then((request) => request(axios, basePath));
964
+ apiV1AppointmentsAppointmentIdCancelPut(appointmentId: string, cancelAppointmentCommand?: CancelAppointmentCommand, options?: any): AxiosPromise<boolean> {
965
+ return localVarFp.apiV1AppointmentsAppointmentIdCancelPut(appointmentId, cancelAppointmentCommand, options).then((request) => request(axios, basePath));
902
966
  },
903
967
  /**
904
968
  *
@@ -985,6 +1049,17 @@ export const AppointmentsApiFactory = function (configuration?: Configuration, b
985
1049
  apiV1AppointmentsAppointmentIdRejectPut(appointmentId: string, rejectAppointmentCommand?: RejectAppointmentCommand, options?: any): AxiosPromise<boolean> {
986
1050
  return localVarFp.apiV1AppointmentsAppointmentIdRejectPut(appointmentId, rejectAppointmentCommand, options).then((request) => request(axios, basePath));
987
1051
  },
1052
+ /**
1053
+ *
1054
+ * @summary Reschedule appointment
1055
+ * @param {string} appointmentId
1056
+ * @param {RescheduleAppointmentCommand} [rescheduleAppointmentCommand]
1057
+ * @param {*} [options] Override http request option.
1058
+ * @throws {RequiredError}
1059
+ */
1060
+ apiV1AppointmentsAppointmentIdReschedulePut(appointmentId: string, rescheduleAppointmentCommand?: RescheduleAppointmentCommand, options?: any): AxiosPromise<AppointmentModel> {
1061
+ return localVarFp.apiV1AppointmentsAppointmentIdReschedulePut(appointmentId, rescheduleAppointmentCommand, options).then((request) => request(axios, basePath));
1062
+ },
988
1063
  /**
989
1064
  *
990
1065
  * @summary Get appointments
@@ -1072,6 +1147,13 @@ export interface AppointmentsApiApiV1AppointmentsAppointmentIdCancelPutRequest {
1072
1147
  * @memberof AppointmentsApiApiV1AppointmentsAppointmentIdCancelPut
1073
1148
  */
1074
1149
  readonly appointmentId: string
1150
+
1151
+ /**
1152
+ *
1153
+ * @type {CancelAppointmentCommand}
1154
+ * @memberof AppointmentsApiApiV1AppointmentsAppointmentIdCancelPut
1155
+ */
1156
+ readonly cancelAppointmentCommand?: CancelAppointmentCommand
1075
1157
  }
1076
1158
 
1077
1159
  /**
@@ -1221,6 +1303,27 @@ export interface AppointmentsApiApiV1AppointmentsAppointmentIdRejectPutRequest {
1221
1303
  readonly rejectAppointmentCommand?: RejectAppointmentCommand
1222
1304
  }
1223
1305
 
1306
+ /**
1307
+ * Request parameters for apiV1AppointmentsAppointmentIdReschedulePut operation in AppointmentsApi.
1308
+ * @export
1309
+ * @interface AppointmentsApiApiV1AppointmentsAppointmentIdReschedulePutRequest
1310
+ */
1311
+ export interface AppointmentsApiApiV1AppointmentsAppointmentIdReschedulePutRequest {
1312
+ /**
1313
+ *
1314
+ * @type {string}
1315
+ * @memberof AppointmentsApiApiV1AppointmentsAppointmentIdReschedulePut
1316
+ */
1317
+ readonly appointmentId: string
1318
+
1319
+ /**
1320
+ *
1321
+ * @type {RescheduleAppointmentCommand}
1322
+ * @memberof AppointmentsApiApiV1AppointmentsAppointmentIdReschedulePut
1323
+ */
1324
+ readonly rescheduleAppointmentCommand?: RescheduleAppointmentCommand
1325
+ }
1326
+
1224
1327
  /**
1225
1328
  * Request parameters for apiV1AppointmentsGet operation in AppointmentsApi.
1226
1329
  * @export
@@ -1494,7 +1597,7 @@ export class AppointmentsApi extends BaseAPI {
1494
1597
  * @memberof AppointmentsApi
1495
1598
  */
1496
1599
  public apiV1AppointmentsAppointmentIdCancelPut(requestParameters: AppointmentsApiApiV1AppointmentsAppointmentIdCancelPutRequest, options?: AxiosRequestConfig) {
1497
- return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdCancelPut(requestParameters.appointmentId, options).then((request) => request(this.axios, this.basePath));
1600
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdCancelPut(requestParameters.appointmentId, requestParameters.cancelAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
1498
1601
  }
1499
1602
 
1500
1603
  /**
@@ -1593,6 +1696,18 @@ export class AppointmentsApi extends BaseAPI {
1593
1696
  return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdRejectPut(requestParameters.appointmentId, requestParameters.rejectAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
1594
1697
  }
1595
1698
 
1699
+ /**
1700
+ *
1701
+ * @summary Reschedule appointment
1702
+ * @param {AppointmentsApiApiV1AppointmentsAppointmentIdReschedulePutRequest} requestParameters Request parameters.
1703
+ * @param {*} [options] Override http request option.
1704
+ * @throws {RequiredError}
1705
+ * @memberof AppointmentsApi
1706
+ */
1707
+ public apiV1AppointmentsAppointmentIdReschedulePut(requestParameters: AppointmentsApiApiV1AppointmentsAppointmentIdReschedulePutRequest, options?: AxiosRequestConfig) {
1708
+ return AppointmentsApiFp(this.configuration).apiV1AppointmentsAppointmentIdReschedulePut(requestParameters.appointmentId, requestParameters.rescheduleAppointmentCommand, options).then((request) => request(this.axios, this.basePath));
1709
+ }
1710
+
1596
1711
  /**
1597
1712
  *
1598
1713
  * @summary Get appointments