import type { ICreateUserRequest } from '../models/ICreateUserRequest' ; import type { IUpdateUserRequest } from '../models/IUpdateUserRequest' ; import type { IUser } from '../models/IUser' ; import { request as __request } from '../core/request' ; export class UsersService { returns throws public static async getUsers ( { pageNumber = 1 , pageSize = 20 , } ) { const result = await __request ( { method : 'GET' , path : `/users` , query : { 'page_number' : pageNumber , 'page_size' : pageSize , } , } ) ; return result . body ; } returns throws public static async createUser ( { requestBody , } ) { const result = await __request ( { method : 'POST' , path : `/users` , body : requestBody , } ) ; return result . body ; } returns throws public static async getUserById ( { userId , } ) { const result = await __request ( { method : 'GET' , path : `/users/${ userId }` , } ) ; return result . body ; } returns throws public static async updateUser ( { userId , requestBody , } ) { const result = await __request ( { method : 'PATCH' , path : `/users/${ userId }` , body : requestBody , } ) ; return result . body ; } returns throws public static async deleteUser ( { userId , } ) { const result = await __request ( { method : 'DELETE' , path : `/users/${ userId }` , } ) ; return result . body ; } }