From 76898390bccdfbeacfc62dc80b5227e7eb7020a5 Mon Sep 17 00:00:00 2001 From: gaspard Date: Fri, 13 Sep 2024 10:10:39 +0200 Subject: [PATCH] chore: update oh.yaml from api + generated --- src/generated/apis/UsersApi.ts | 70 +++++++++++++++++++ src/generated/models/AdmissionDTO.ts | 8 +-- src/generated/models/Patient.ts | 4 +- src/generated/models/PatientDTO.ts | 2 +- ...oPhotoAsImageGraphicsClipBoundsBounds2D.ts | 16 ++--- ...ilePhotoPhotoAsImageGraphicsFontMetrics.ts | 10 +-- src/generated/models/PermissionDTO.ts | 1 + src/generated/models/SupplierDTO.ts | 6 -- src/generated/models/TherapyRow.ts | 10 +-- src/generated/models/UserGroupDTO.ts | 10 +++ src/generated/models/WardDTO.ts | 4 +- 11 files changed, 108 insertions(+), 33 deletions(-) diff --git a/src/generated/apis/UsersApi.ts b/src/generated/apis/UsersApi.ts index 0bc6d395a..429f9b73b 100644 --- a/src/generated/apis/UsersApi.ts +++ b/src/generated/apis/UsersApi.ts @@ -21,6 +21,11 @@ import { UserSettingDTO, } from '../models'; +export interface AssignPermissionRequest { + groupCode: string; + id: number; +} + export interface DeleteGroupRequest { groupCode: string; } @@ -41,6 +46,10 @@ export interface GetUserByNameRequest { username: string; } +export interface GetUserGroup1Request { + groupCode: string; +} + export interface GetUserSettingByIdRequest { id: number; } @@ -66,6 +75,11 @@ export interface RetrievePermissionsByUsernameRequest { username: string; } +export interface RevokePermissionRequest { + groupCode: string; + id: number; +} + export interface UpdateUserRequest { userDTO: UserDTO; password?: boolean; @@ -85,6 +99,25 @@ export interface UpdateUserSettingsRequest { */ export class UsersApi extends BaseAPI { + /** + */ + assignPermission({ groupCode, id }: AssignPermissionRequest): Observable + assignPermission({ groupCode, id }: AssignPermissionRequest, opts?: OperationOpts): Observable> + assignPermission({ groupCode, id }: AssignPermissionRequest, opts?: OperationOpts): Observable> { + throwIfNullOrUndefined(groupCode, 'groupCode', 'assignPermission'); + throwIfNullOrUndefined(id, 'id', 'assignPermission'); + + const headers: HttpHeaders = { + ...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined), + }; + + return this.request({ + url: '/users/groups/{group_code}/permissions/{id}'.replace('{group_code}', encodeURI(groupCode)).replace('{id}', encodeURI(id)), + method: 'POST', + headers, + }, opts?.responseOpts); + }; + /** */ deleteGroup({ groupCode }: DeleteGroupRequest): Observable @@ -195,6 +228,24 @@ export class UsersApi extends BaseAPI { }, opts?.responseOpts); }; + /** + */ + getUserGroup1({ groupCode }: GetUserGroup1Request): Observable + getUserGroup1({ groupCode }: GetUserGroup1Request, opts?: OperationOpts): Observable> + getUserGroup1({ groupCode }: GetUserGroup1Request, opts?: OperationOpts): Observable> { + throwIfNullOrUndefined(groupCode, 'groupCode', 'getUserGroup1'); + + const headers: HttpHeaders = { + ...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined), + }; + + return this.request({ + url: '/users/groups/{group_code}'.replace('{group_code}', encodeURI(groupCode)), + method: 'GET', + headers, + }, opts?.responseOpts); + }; + /** */ getUserSettingById({ id }: GetUserSettingByIdRequest): Observable @@ -358,6 +409,25 @@ export class UsersApi extends BaseAPI { }, opts?.responseOpts); }; + /** + */ + revokePermission({ groupCode, id }: RevokePermissionRequest): Observable + revokePermission({ groupCode, id }: RevokePermissionRequest, opts?: OperationOpts): Observable> + revokePermission({ groupCode, id }: RevokePermissionRequest, opts?: OperationOpts): Observable> { + throwIfNullOrUndefined(groupCode, 'groupCode', 'revokePermission'); + throwIfNullOrUndefined(id, 'id', 'revokePermission'); + + const headers: HttpHeaders = { + ...(this.configuration.username != null && this.configuration.password != null ? { Authorization: `Basic ${btoa(this.configuration.username + ':' + this.configuration.password)}` } : undefined), + }; + + return this.request({ + url: '/users/groups/{group_code}/permissions/{id}'.replace('{group_code}', encodeURI(groupCode)).replace('{id}', encodeURI(id)), + method: 'DELETE', + headers, + }, opts?.responseOpts); + }; + /** */ updateUser({ userDTO, password }: UpdateUserRequest): Observable diff --git a/src/generated/models/AdmissionDTO.ts b/src/generated/models/AdmissionDTO.ts index 4b933c05e..df700ba52 100644 --- a/src/generated/models/AdmissionDTO.ts +++ b/src/generated/models/AdmissionDTO.ts @@ -200,13 +200,13 @@ export interface AdmissionDTO { */ deleted: string; /** - * @type {number} + * @type {string} * @memberof AdmissionDTO */ - yprog?: number; + fhu?: string; /** - * @type {string} + * @type {number} * @memberof AdmissionDTO */ - fhu?: string; + yprog?: number; } diff --git a/src/generated/models/Patient.ts b/src/generated/models/Patient.ts index b48c7e07a..3e87778e4 100644 --- a/src/generated/models/Patient.ts +++ b/src/generated/models/Patient.ts @@ -195,10 +195,10 @@ export interface Patient { * @type {string} * @memberof Patient */ - searchString?: string; + informations?: string; /** * @type {string} * @memberof Patient */ - informations?: string; + searchString?: string; } diff --git a/src/generated/models/PatientDTO.ts b/src/generated/models/PatientDTO.ts index cef862532..24d2e9e08 100644 --- a/src/generated/models/PatientDTO.ts +++ b/src/generated/models/PatientDTO.ts @@ -148,7 +148,7 @@ export interface PatientDTO { lock?: number; /** * BlobPhoto - * @type {Array} + * @type {string} * @memberof PatientDTO */ blobPhoto?: string; diff --git a/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts b/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts index dc513a8ec..8887613f4 100644 --- a/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts +++ b/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D.ts @@ -25,22 +25,17 @@ export interface PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D { * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D */ - width?: number; - /** - * @type {number} - * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D - */ - height?: number; + y?: number; /** * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D */ - y?: number; + x?: number; /** * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D */ - x?: number; + width?: number; /** * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D @@ -61,6 +56,11 @@ export interface PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D { * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D */ centerY?: number; + /** + * @type {number} + * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D + */ + height?: number; /** * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsClipBoundsBounds2D diff --git a/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts b/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts index 5d7c0127d..d60c5d564 100644 --- a/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts +++ b/src/generated/models/PatientProfilePhotoPhotoAsImageGraphicsFontMetrics.ts @@ -26,11 +26,6 @@ export interface PatientProfilePhotoPhotoAsImageGraphicsFontMetrics { * @memberof PatientProfilePhotoPhotoAsImageGraphicsFontMetrics */ font?: PatientProfilePhotoPhotoAsImageGraphicsFont; - /** - * @type {number} - * @memberof PatientProfilePhotoPhotoAsImageGraphicsFontMetrics - */ - height?: number; /** * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsFontMetrics @@ -61,6 +56,11 @@ export interface PatientProfilePhotoPhotoAsImageGraphicsFontMetrics { * @memberof PatientProfilePhotoPhotoAsImageGraphicsFontMetrics */ maxAdvance?: number; + /** + * @type {number} + * @memberof PatientProfilePhotoPhotoAsImageGraphicsFontMetrics + */ + height?: number; /** * @type {number} * @memberof PatientProfilePhotoPhotoAsImageGraphicsFontMetrics diff --git a/src/generated/models/PermissionDTO.ts b/src/generated/models/PermissionDTO.ts index 741a8aca3..235214267 100644 --- a/src/generated/models/PermissionDTO.ts +++ b/src/generated/models/PermissionDTO.ts @@ -12,6 +12,7 @@ */ /** + * List of group\'s permissions * @export * @interface PermissionDTO */ diff --git a/src/generated/models/SupplierDTO.ts b/src/generated/models/SupplierDTO.ts index 1f719082f..14bdb0d1f 100644 --- a/src/generated/models/SupplierDTO.ts +++ b/src/generated/models/SupplierDTO.ts @@ -63,10 +63,4 @@ export interface SupplierDTO { * @memberof SupplierDTO */ supNote?: string; - /** - * Flag record deleted, values are \'Y\' OR \'N\' - * @type {string} - * @memberof SupplierDTO - */ - supDeleted: string; } diff --git a/src/generated/models/TherapyRow.ts b/src/generated/models/TherapyRow.ts index 7f96100ce..efbd13c70 100644 --- a/src/generated/models/TherapyRow.ts +++ b/src/generated/models/TherapyRow.ts @@ -106,18 +106,18 @@ export interface TherapyRow { */ smsInt: number; /** - * @type {boolean} + * @type {number} * @memberof TherapyRow */ - sms?: boolean; + medical?: number; /** * @type {boolean} * @memberof TherapyRow */ - notify?: boolean; + sms?: boolean; /** - * @type {number} + * @type {boolean} * @memberof TherapyRow */ - medical?: number; + notify?: boolean; } diff --git a/src/generated/models/UserGroupDTO.ts b/src/generated/models/UserGroupDTO.ts index 83426ccea..a7599a6d7 100644 --- a/src/generated/models/UserGroupDTO.ts +++ b/src/generated/models/UserGroupDTO.ts @@ -11,6 +11,10 @@ * Do not edit the class manually. */ +import { + PermissionDTO, +} from './'; + /** * The user\'s group * @export @@ -29,4 +33,10 @@ export interface UserGroupDTO { * @memberof UserGroupDTO */ desc?: string; + /** + * List of group\'s permissions + * @type {Array} + * @memberof UserGroupDTO + */ + permissions?: Array; } diff --git a/src/generated/models/WardDTO.ts b/src/generated/models/WardDTO.ts index 5625690a3..9e7f85115 100644 --- a/src/generated/models/WardDTO.ts +++ b/src/generated/models/WardDTO.ts @@ -81,12 +81,12 @@ export interface WardDTO { * @type {boolean} * @memberof WardDTO */ - female?: boolean; + male?: boolean; /** * @type {boolean} * @memberof WardDTO */ - male?: boolean; + female?: boolean; /** * @type {boolean} * @memberof WardDTO