ch-admin-api-client-typescript 5.19.50 → 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 (62) 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 +109 -36
  5. package/lib/api/hospitals-api.d.ts.map +1 -1
  6. package/lib/api/hospitals-api.js +141 -38
  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/create-service-review-command.d.ts +6 -0
  18. package/lib/models/create-service-review-command.d.ts.map +1 -1
  19. package/lib/models/hospital-contact-item-model.d.ts +7 -0
  20. package/lib/models/hospital-contact-item-model.d.ts.map +1 -1
  21. package/lib/models/hospital-contact-model.d.ts +7 -0
  22. package/lib/models/hospital-contact-model.d.ts.map +1 -1
  23. package/lib/models/index.d.ts +1 -0
  24. package/lib/models/index.d.ts.map +1 -1
  25. package/lib/models/index.js +1 -0
  26. package/lib/models/privacy-settings.d.ts +25 -0
  27. package/lib/models/privacy-settings.d.ts.map +1 -0
  28. package/lib/models/privacy-settings.js +15 -0
  29. package/lib/models/service-review-item-model.d.ts +9 -3
  30. package/lib/models/service-review-item-model.d.ts.map +1 -1
  31. package/lib/models/service-review-model.d.ts +9 -3
  32. package/lib/models/service-review-model.d.ts.map +1 -1
  33. package/lib/models/update-hospital-working-day-command.d.ts +6 -0
  34. package/lib/models/update-hospital-working-day-command.d.ts.map +1 -1
  35. package/lib/models/update-service-review-command.d.ts +6 -0
  36. package/lib/models/update-service-review-command.d.ts.map +1 -1
  37. package/lib/models/voice.d.ts +18 -0
  38. package/lib/models/voice.d.ts.map +1 -1
  39. package/lib/models/working-day-item-model.d.ts +6 -0
  40. package/lib/models/working-day-item-model.d.ts.map +1 -1
  41. package/lib/models/working-day-model.d.ts +6 -0
  42. package/lib/models/working-day-model.d.ts.map +1 -1
  43. package/package.json +1 -1
  44. package/src/.openapi-generator/FILES +1 -0
  45. package/src/api/appointments-api.ts +85 -0
  46. package/src/api/hospitals-api.ts +187 -61
  47. package/src/api/web-apps-api.ts +85 -0
  48. package/src/models/application.ts +9 -0
  49. package/src/models/appointment-status.ts +2 -1
  50. package/src/models/create-hospital-working-day-command.ts +6 -0
  51. package/src/models/create-service-review-command.ts +6 -0
  52. package/src/models/hospital-contact-item-model.ts +9 -0
  53. package/src/models/hospital-contact-model.ts +9 -0
  54. package/src/models/index.ts +1 -0
  55. package/src/models/privacy-settings.ts +30 -0
  56. package/src/models/service-review-item-model.ts +9 -3
  57. package/src/models/service-review-model.ts +9 -3
  58. package/src/models/update-hospital-working-day-command.ts +6 -0
  59. package/src/models/update-service-review-command.ts +6 -0
  60. package/src/models/voice.ts +18 -0
  61. package/src/models/working-day-item-model.ts +6 -0
  62. package/src/models/working-day-model.ts +6 -0
@@ -1052,10 +1052,11 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1052
1052
  * @summary Delete hospital contact
1053
1053
  * @param {string} hospitalId
1054
1054
  * @param {string} contactId
1055
+ * @param {boolean} [isPermanent]
1055
1056
  * @param {*} [options] Override http request option.
1056
1057
  * @throws {RequiredError}
1057
1058
  */
1058
- apiV1HospitalsHospitalIdContactsContactIdDelete: async (hospitalId: string, contactId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1059
+ apiV1HospitalsHospitalIdContactsContactIdDelete: async (hospitalId: string, contactId: string, isPermanent?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1059
1060
  // verify required parameter 'hospitalId' is not null or undefined
1060
1061
  assertParamExists('apiV1HospitalsHospitalIdContactsContactIdDelete', 'hospitalId', hospitalId)
1061
1062
  // verify required parameter 'contactId' is not null or undefined
@@ -1078,6 +1079,10 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1078
1079
  // oauth required
1079
1080
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1080
1081
 
1082
+ if (isPermanent !== undefined) {
1083
+ localVarQueryParameter['isPermanent'] = isPermanent;
1084
+ }
1085
+
1081
1086
 
1082
1087
 
1083
1088
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -1177,6 +1182,48 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1177
1182
  options: localVarRequestOptions,
1178
1183
  };
1179
1184
  },
1185
+ /**
1186
+ *
1187
+ * @summary Reactivate hospital contact
1188
+ * @param {string} hospitalId
1189
+ * @param {string} contactId
1190
+ * @param {*} [options] Override http request option.
1191
+ * @throws {RequiredError}
1192
+ */
1193
+ apiV1HospitalsHospitalIdContactsContactIdReactivatePut: async (hospitalId: string, contactId: string, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1194
+ // verify required parameter 'hospitalId' is not null or undefined
1195
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdReactivatePut', 'hospitalId', hospitalId)
1196
+ // verify required parameter 'contactId' is not null or undefined
1197
+ assertParamExists('apiV1HospitalsHospitalIdContactsContactIdReactivatePut', 'contactId', contactId)
1198
+ const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts/{contactId}/reactivate`
1199
+ .replace(`{${"hospitalId"}}`, encodeURIComponent(String(hospitalId)))
1200
+ .replace(`{${"contactId"}}`, encodeURIComponent(String(contactId)));
1201
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1202
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1203
+ let baseOptions;
1204
+ if (configuration) {
1205
+ baseOptions = configuration.baseOptions;
1206
+ }
1207
+
1208
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
1209
+ const localVarHeaderParameter = {} as any;
1210
+ const localVarQueryParameter = {} as any;
1211
+
1212
+ // authentication oauth2 required
1213
+ // oauth required
1214
+ await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
1215
+
1216
+
1217
+
1218
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1219
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1220
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
1221
+
1222
+ return {
1223
+ url: toPathString(localVarUrlObj),
1224
+ options: localVarRequestOptions,
1225
+ };
1226
+ },
1180
1227
  /**
1181
1228
  *
1182
1229
  * @summary Get hospital contacts
@@ -1185,13 +1232,14 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1185
1232
  * @param {ContactType} [contactType]
1186
1233
  * @param {string} [name]
1187
1234
  * @param {string} [languageCode]
1235
+ * @param {boolean} [showHidden]
1188
1236
  * @param {number} [page]
1189
1237
  * @param {number} [limit]
1190
1238
  * @param {Date} [lastRetrieved]
1191
1239
  * @param {*} [options] Override http request option.
1192
1240
  * @throws {RequiredError}
1193
1241
  */
1194
- apiV1HospitalsHospitalIdContactsGet: async (hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1242
+ apiV1HospitalsHospitalIdContactsGet: async (hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
1195
1243
  // verify required parameter 'hospitalId' is not null or undefined
1196
1244
  assertParamExists('apiV1HospitalsHospitalIdContactsGet', 'hospitalId', hospitalId)
1197
1245
  const localVarPath = `/api/v1/hospitals/{hospitalId}/contacts`
@@ -1227,6 +1275,10 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
1227
1275
  localVarQueryParameter['LanguageCode'] = languageCode;
1228
1276
  }
1229
1277
 
1278
+ if (showHidden !== undefined) {
1279
+ localVarQueryParameter['ShowHidden'] = showHidden;
1280
+ }
1281
+
1230
1282
  if (page !== undefined) {
1231
1283
  localVarQueryParameter['page'] = page;
1232
1284
  }
@@ -3296,9 +3348,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
3296
3348
  *
3297
3349
  * @summary Get managers
3298
3350
  * @param {string} hospitalId
3299
- * @param {number} [page]
3300
- * @param {number} [limit]
3301
- * @param {Date} [lastRetrieved]
3302
3351
  * @param {string} [id]
3303
3352
  * @param {string} [fullname]
3304
3353
  * @param {string} [email]
@@ -3306,10 +3355,13 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
3306
3355
  * @param {Date} [dateOfBirth]
3307
3356
  * @param {Date} [created]
3308
3357
  * @param {boolean} [showHidden]
3358
+ * @param {number} [page]
3359
+ * @param {number} [limit]
3360
+ * @param {Date} [lastRetrieved]
3309
3361
  * @param {*} [options] Override http request option.
3310
3362
  * @throws {RequiredError}
3311
3363
  */
3312
- apiV1HospitalsHospitalIdManagersGet: async (hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3364
+ apiV1HospitalsHospitalIdManagersGet: async (hospitalId: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options: AxiosRequestConfig = {}): Promise<RequestArgs> => {
3313
3365
  // verify required parameter 'hospitalId' is not null or undefined
3314
3366
  assertParamExists('apiV1HospitalsHospitalIdManagersGet', 'hospitalId', hospitalId)
3315
3367
  const localVarPath = `/api/v1/hospitals/{hospitalId}/managers`
@@ -3329,20 +3381,6 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
3329
3381
  // oauth required
3330
3382
  await setOAuthToObject(localVarHeaderParameter, "oauth2", ["CloudHospital_admin_api", "IdentityServerApi"], configuration)
3331
3383
 
3332
- if (page !== undefined) {
3333
- localVarQueryParameter['page'] = page;
3334
- }
3335
-
3336
- if (limit !== undefined) {
3337
- localVarQueryParameter['limit'] = limit;
3338
- }
3339
-
3340
- if (lastRetrieved !== undefined) {
3341
- localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
3342
- (lastRetrieved as any).toISOString() :
3343
- lastRetrieved;
3344
- }
3345
-
3346
3384
  if (id !== undefined) {
3347
3385
  localVarQueryParameter['Id'] = id;
3348
3386
  }
@@ -3375,6 +3413,20 @@ export const HospitalsApiAxiosParamCreator = function (configuration?: Configura
3375
3413
  localVarQueryParameter['ShowHidden'] = showHidden;
3376
3414
  }
3377
3415
 
3416
+ if (page !== undefined) {
3417
+ localVarQueryParameter['page'] = page;
3418
+ }
3419
+
3420
+ if (limit !== undefined) {
3421
+ localVarQueryParameter['limit'] = limit;
3422
+ }
3423
+
3424
+ if (lastRetrieved !== undefined) {
3425
+ localVarQueryParameter['lastRetrieved'] = (lastRetrieved as any instanceof Date) ?
3426
+ (lastRetrieved as any).toISOString() :
3427
+ lastRetrieved;
3428
+ }
3429
+
3378
3430
 
3379
3431
 
3380
3432
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -8373,11 +8425,12 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
8373
8425
  * @summary Delete hospital contact
8374
8426
  * @param {string} hospitalId
8375
8427
  * @param {string} contactId
8428
+ * @param {boolean} [isPermanent]
8376
8429
  * @param {*} [options] Override http request option.
8377
8430
  * @throws {RequiredError}
8378
8431
  */
8379
- async apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId: string, contactId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
8380
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId, contactId, options);
8432
+ async apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId: string, contactId: string, isPermanent?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
8433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId, contactId, isPermanent, options);
8381
8434
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8382
8435
  },
8383
8436
  /**
@@ -8405,6 +8458,18 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
8405
8458
  const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId, contactId, updateHospitalContactCommand, options);
8406
8459
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8407
8460
  },
8461
+ /**
8462
+ *
8463
+ * @summary Reactivate hospital contact
8464
+ * @param {string} hospitalId
8465
+ * @param {string} contactId
8466
+ * @param {*} [options] Override http request option.
8467
+ * @throws {RequiredError}
8468
+ */
8469
+ async apiV1HospitalsHospitalIdContactsContactIdReactivatePut(hospitalId: string, contactId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<boolean>> {
8470
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsContactIdReactivatePut(hospitalId, contactId, options);
8471
+ return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8472
+ },
8408
8473
  /**
8409
8474
  *
8410
8475
  * @summary Get hospital contacts
@@ -8413,14 +8478,15 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
8413
8478
  * @param {ContactType} [contactType]
8414
8479
  * @param {string} [name]
8415
8480
  * @param {string} [languageCode]
8481
+ * @param {boolean} [showHidden]
8416
8482
  * @param {number} [page]
8417
8483
  * @param {number} [limit]
8418
8484
  * @param {Date} [lastRetrieved]
8419
8485
  * @param {*} [options] Override http request option.
8420
8486
  * @throws {RequiredError}
8421
8487
  */
8422
- async apiV1HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactsModel>> {
8423
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsGet(hospitalId, contactId, contactType, name, languageCode, page, limit, lastRetrieved, options);
8488
+ async apiV1HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<HospitalContactsModel>> {
8489
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdContactsGet(hospitalId, contactId, contactType, name, languageCode, showHidden, page, limit, lastRetrieved, options);
8424
8490
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
8425
8491
  },
8426
8492
  /**
@@ -8985,9 +9051,6 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
8985
9051
  *
8986
9052
  * @summary Get managers
8987
9053
  * @param {string} hospitalId
8988
- * @param {number} [page]
8989
- * @param {number} [limit]
8990
- * @param {Date} [lastRetrieved]
8991
9054
  * @param {string} [id]
8992
9055
  * @param {string} [fullname]
8993
9056
  * @param {string} [email]
@@ -8995,11 +9058,14 @@ export const HospitalsApiFp = function(configuration?: Configuration) {
8995
9058
  * @param {Date} [dateOfBirth]
8996
9059
  * @param {Date} [created]
8997
9060
  * @param {boolean} [showHidden]
9061
+ * @param {number} [page]
9062
+ * @param {number} [limit]
9063
+ * @param {Date} [lastRetrieved]
8998
9064
  * @param {*} [options] Override http request option.
8999
9065
  * @throws {RequiredError}
9000
9066
  */
9001
- async apiV1HospitalsHospitalIdManagersGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
9002
- const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdManagersGet(hospitalId, page, limit, lastRetrieved, id, fullname, email, gender, dateOfBirth, created, showHidden, options);
9067
+ async apiV1HospitalsHospitalIdManagersGet(hospitalId: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ManagersModel>> {
9068
+ const localVarAxiosArgs = await localVarAxiosParamCreator.apiV1HospitalsHospitalIdManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options);
9003
9069
  return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration);
9004
9070
  },
9005
9071
  /**
@@ -10489,11 +10555,12 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
10489
10555
  * @summary Delete hospital contact
10490
10556
  * @param {string} hospitalId
10491
10557
  * @param {string} contactId
10558
+ * @param {boolean} [isPermanent]
10492
10559
  * @param {*} [options] Override http request option.
10493
10560
  * @throws {RequiredError}
10494
10561
  */
10495
- apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId: string, contactId: string, options?: any): AxiosPromise<boolean> {
10496
- return localVarFp.apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId, contactId, options).then((request) => request(axios, basePath));
10562
+ apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId: string, contactId: string, isPermanent?: boolean, options?: any): AxiosPromise<boolean> {
10563
+ return localVarFp.apiV1HospitalsHospitalIdContactsContactIdDelete(hospitalId, contactId, isPermanent, options).then((request) => request(axios, basePath));
10497
10564
  },
10498
10565
  /**
10499
10566
  *
@@ -10518,6 +10585,17 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
10518
10585
  apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId: string, contactId: string, updateHospitalContactCommand?: UpdateHospitalContactCommand, options?: any): AxiosPromise<HospitalContactModel> {
10519
10586
  return localVarFp.apiV1HospitalsHospitalIdContactsContactIdPut(hospitalId, contactId, updateHospitalContactCommand, options).then((request) => request(axios, basePath));
10520
10587
  },
10588
+ /**
10589
+ *
10590
+ * @summary Reactivate hospital contact
10591
+ * @param {string} hospitalId
10592
+ * @param {string} contactId
10593
+ * @param {*} [options] Override http request option.
10594
+ * @throws {RequiredError}
10595
+ */
10596
+ apiV1HospitalsHospitalIdContactsContactIdReactivatePut(hospitalId: string, contactId: string, options?: any): AxiosPromise<boolean> {
10597
+ return localVarFp.apiV1HospitalsHospitalIdContactsContactIdReactivatePut(hospitalId, contactId, options).then((request) => request(axios, basePath));
10598
+ },
10521
10599
  /**
10522
10600
  *
10523
10601
  * @summary Get hospital contacts
@@ -10526,14 +10604,15 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
10526
10604
  * @param {ContactType} [contactType]
10527
10605
  * @param {string} [name]
10528
10606
  * @param {string} [languageCode]
10607
+ * @param {boolean} [showHidden]
10529
10608
  * @param {number} [page]
10530
10609
  * @param {number} [limit]
10531
10610
  * @param {Date} [lastRetrieved]
10532
10611
  * @param {*} [options] Override http request option.
10533
10612
  * @throws {RequiredError}
10534
10613
  */
10535
- apiV1HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalContactsModel> {
10536
- return localVarFp.apiV1HospitalsHospitalIdContactsGet(hospitalId, contactId, contactType, name, languageCode, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
10614
+ apiV1HospitalsHospitalIdContactsGet(hospitalId: string, contactId?: string, contactType?: ContactType, name?: string, languageCode?: string, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<HospitalContactsModel> {
10615
+ return localVarFp.apiV1HospitalsHospitalIdContactsGet(hospitalId, contactId, contactType, name, languageCode, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
10537
10616
  },
10538
10617
  /**
10539
10618
  *
@@ -11055,9 +11134,6 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
11055
11134
  *
11056
11135
  * @summary Get managers
11057
11136
  * @param {string} hospitalId
11058
- * @param {number} [page]
11059
- * @param {number} [limit]
11060
- * @param {Date} [lastRetrieved]
11061
11137
  * @param {string} [id]
11062
11138
  * @param {string} [fullname]
11063
11139
  * @param {string} [email]
@@ -11065,11 +11141,14 @@ export const HospitalsApiFactory = function (configuration?: Configuration, base
11065
11141
  * @param {Date} [dateOfBirth]
11066
11142
  * @param {Date} [created]
11067
11143
  * @param {boolean} [showHidden]
11144
+ * @param {number} [page]
11145
+ * @param {number} [limit]
11146
+ * @param {Date} [lastRetrieved]
11068
11147
  * @param {*} [options] Override http request option.
11069
11148
  * @throws {RequiredError}
11070
11149
  */
11071
- apiV1HospitalsHospitalIdManagersGet(hospitalId: string, page?: number, limit?: number, lastRetrieved?: Date, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, options?: any): AxiosPromise<ManagersModel> {
11072
- return localVarFp.apiV1HospitalsHospitalIdManagersGet(hospitalId, page, limit, lastRetrieved, id, fullname, email, gender, dateOfBirth, created, showHidden, options).then((request) => request(axios, basePath));
11150
+ apiV1HospitalsHospitalIdManagersGet(hospitalId: string, id?: string, fullname?: string, email?: string, gender?: Gender, dateOfBirth?: Date, created?: Date, showHidden?: boolean, page?: number, limit?: number, lastRetrieved?: Date, options?: any): AxiosPromise<ManagersModel> {
11151
+ return localVarFp.apiV1HospitalsHospitalIdManagersGet(hospitalId, id, fullname, email, gender, dateOfBirth, created, showHidden, page, limit, lastRetrieved, options).then((request) => request(axios, basePath));
11073
11152
  },
11074
11153
  /**
11075
11154
  *
@@ -12816,6 +12895,13 @@ export interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDeleteRequ
12816
12895
  * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDelete
12817
12896
  */
12818
12897
  readonly contactId: string
12898
+
12899
+ /**
12900
+ *
12901
+ * @type {boolean}
12902
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDelete
12903
+ */
12904
+ readonly isPermanent?: boolean
12819
12905
  }
12820
12906
 
12821
12907
  /**
@@ -12867,6 +12953,27 @@ export interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdPutRequest
12867
12953
  readonly updateHospitalContactCommand?: UpdateHospitalContactCommand
12868
12954
  }
12869
12955
 
12956
+ /**
12957
+ * Request parameters for apiV1HospitalsHospitalIdContactsContactIdReactivatePut operation in HospitalsApi.
12958
+ * @export
12959
+ * @interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdReactivatePutRequest
12960
+ */
12961
+ export interface HospitalsApiApiV1HospitalsHospitalIdContactsContactIdReactivatePutRequest {
12962
+ /**
12963
+ *
12964
+ * @type {string}
12965
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdReactivatePut
12966
+ */
12967
+ readonly hospitalId: string
12968
+
12969
+ /**
12970
+ *
12971
+ * @type {string}
12972
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsContactIdReactivatePut
12973
+ */
12974
+ readonly contactId: string
12975
+ }
12976
+
12870
12977
  /**
12871
12978
  * Request parameters for apiV1HospitalsHospitalIdContactsGet operation in HospitalsApi.
12872
12979
  * @export
@@ -12908,6 +13015,13 @@ export interface HospitalsApiApiV1HospitalsHospitalIdContactsGetRequest {
12908
13015
  */
12909
13016
  readonly languageCode?: string
12910
13017
 
13018
+ /**
13019
+ *
13020
+ * @type {boolean}
13021
+ * @memberof HospitalsApiApiV1HospitalsHospitalIdContactsGet
13022
+ */
13023
+ readonly showHidden?: boolean
13024
+
12911
13025
  /**
12912
13026
  *
12913
13027
  * @type {number}
@@ -14205,73 +14319,73 @@ export interface HospitalsApiApiV1HospitalsHospitalIdManagersGetRequest {
14205
14319
 
14206
14320
  /**
14207
14321
  *
14208
- * @type {number}
14322
+ * @type {string}
14209
14323
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14210
14324
  */
14211
- readonly page?: number
14325
+ readonly id?: string
14212
14326
 
14213
14327
  /**
14214
14328
  *
14215
- * @type {number}
14329
+ * @type {string}
14216
14330
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14217
14331
  */
14218
- readonly limit?: number
14332
+ readonly fullname?: string
14219
14333
 
14220
14334
  /**
14221
14335
  *
14222
- * @type {Date}
14336
+ * @type {string}
14223
14337
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14224
14338
  */
14225
- readonly lastRetrieved?: Date
14339
+ readonly email?: string
14226
14340
 
14227
14341
  /**
14228
14342
  *
14229
- * @type {string}
14343
+ * @type {Gender}
14230
14344
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14231
14345
  */
14232
- readonly id?: string
14346
+ readonly gender?: Gender
14233
14347
 
14234
14348
  /**
14235
14349
  *
14236
- * @type {string}
14350
+ * @type {Date}
14237
14351
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14238
14352
  */
14239
- readonly fullname?: string
14353
+ readonly dateOfBirth?: Date
14240
14354
 
14241
14355
  /**
14242
14356
  *
14243
- * @type {string}
14357
+ * @type {Date}
14244
14358
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14245
14359
  */
14246
- readonly email?: string
14360
+ readonly created?: Date
14247
14361
 
14248
14362
  /**
14249
14363
  *
14250
- * @type {Gender}
14364
+ * @type {boolean}
14251
14365
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14252
14366
  */
14253
- readonly gender?: Gender
14367
+ readonly showHidden?: boolean
14254
14368
 
14255
14369
  /**
14256
14370
  *
14257
- * @type {Date}
14371
+ * @type {number}
14258
14372
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14259
14373
  */
14260
- readonly dateOfBirth?: Date
14374
+ readonly page?: number
14261
14375
 
14262
14376
  /**
14263
14377
  *
14264
- * @type {Date}
14378
+ * @type {number}
14265
14379
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14266
14380
  */
14267
- readonly created?: Date
14381
+ readonly limit?: number
14268
14382
 
14269
14383
  /**
14270
14384
  *
14271
- * @type {boolean}
14385
+ * @type {Date}
14272
14386
  * @memberof HospitalsApiApiV1HospitalsHospitalIdManagersGet
14273
14387
  */
14274
- readonly showHidden?: boolean
14388
+ readonly lastRetrieved?: Date
14275
14389
  }
14276
14390
 
14277
14391
  /**
@@ -17662,7 +17776,7 @@ export class HospitalsApi extends BaseAPI {
17662
17776
  * @memberof HospitalsApi
17663
17777
  */
17664
17778
  public apiV1HospitalsHospitalIdContactsContactIdDelete(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsContactIdDeleteRequest, options?: AxiosRequestConfig) {
17665
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdDelete(requestParameters.hospitalId, requestParameters.contactId, options).then((request) => request(this.axios, this.basePath));
17779
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdDelete(requestParameters.hospitalId, requestParameters.contactId, requestParameters.isPermanent, options).then((request) => request(this.axios, this.basePath));
17666
17780
  }
17667
17781
 
17668
17782
  /**
@@ -17689,6 +17803,18 @@ export class HospitalsApi extends BaseAPI {
17689
17803
  return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdPut(requestParameters.hospitalId, requestParameters.contactId, requestParameters.updateHospitalContactCommand, options).then((request) => request(this.axios, this.basePath));
17690
17804
  }
17691
17805
 
17806
+ /**
17807
+ *
17808
+ * @summary Reactivate hospital contact
17809
+ * @param {HospitalsApiApiV1HospitalsHospitalIdContactsContactIdReactivatePutRequest} requestParameters Request parameters.
17810
+ * @param {*} [options] Override http request option.
17811
+ * @throws {RequiredError}
17812
+ * @memberof HospitalsApi
17813
+ */
17814
+ public apiV1HospitalsHospitalIdContactsContactIdReactivatePut(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsContactIdReactivatePutRequest, options?: AxiosRequestConfig) {
17815
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsContactIdReactivatePut(requestParameters.hospitalId, requestParameters.contactId, options).then((request) => request(this.axios, this.basePath));
17816
+ }
17817
+
17692
17818
  /**
17693
17819
  *
17694
17820
  * @summary Get hospital contacts
@@ -17698,7 +17824,7 @@ export class HospitalsApi extends BaseAPI {
17698
17824
  * @memberof HospitalsApi
17699
17825
  */
17700
17826
  public apiV1HospitalsHospitalIdContactsGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdContactsGetRequest, options?: AxiosRequestConfig) {
17701
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsGet(requestParameters.hospitalId, requestParameters.contactId, requestParameters.contactType, requestParameters.name, requestParameters.languageCode, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
17827
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdContactsGet(requestParameters.hospitalId, requestParameters.contactId, requestParameters.contactType, requestParameters.name, requestParameters.languageCode, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
17702
17828
  }
17703
17829
 
17704
17830
  /**
@@ -18214,7 +18340,7 @@ export class HospitalsApi extends BaseAPI {
18214
18340
  * @memberof HospitalsApi
18215
18341
  */
18216
18342
  public apiV1HospitalsHospitalIdManagersGet(requestParameters: HospitalsApiApiV1HospitalsHospitalIdManagersGetRequest, options?: AxiosRequestConfig) {
18217
- return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdManagersGet(requestParameters.hospitalId, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, requestParameters.id, requestParameters.fullname, requestParameters.email, requestParameters.gender, requestParameters.dateOfBirth, requestParameters.created, requestParameters.showHidden, options).then((request) => request(this.axios, this.basePath));
18343
+ return HospitalsApiFp(this.configuration).apiV1HospitalsHospitalIdManagersGet(requestParameters.hospitalId, requestParameters.id, requestParameters.fullname, requestParameters.email, requestParameters.gender, requestParameters.dateOfBirth, requestParameters.created, requestParameters.showHidden, requestParameters.page, requestParameters.limit, requestParameters.lastRetrieved, options).then((request) => request(this.axios, this.basePath));
18218
18344
  }
18219
18345
 
18220
18346
  /**
@@ -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];