/** * Cloud API * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import { AxiosPromise, AxiosInstance } from 'axios'; import { Configuration } from '../configuration'; import { RequestArgs, BaseAPI } from '../base'; import { CreateRoleDto } from '../models'; import { RoleDto } from '../models'; import { RolePageDto } from '../models'; import { RoleSearchResultPageDto } from '../models'; import { SearchRequestDto } from '../models'; /** * PermissionsApi - axios parameter creator * @export */ export declare const PermissionsApiAxiosParamCreator: (axiosClientConfiguration?: Configuration) => { /** * * @param {CreateRoleDto} createRole * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRole: (createRole: CreateRoleDto, translate?: string, options?: any) => Promise; /** * * @param {Array} ids * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManyRoles: (ids: Array, translate?: string, options?: any) => Promise; /** * * @param {string} id * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRole: (id: string, translate?: string, options?: any) => Promise; /** * * @param {string} id * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRole: (id: string, translate?: string, options?: any) => Promise; /** * * @param {number} [page] * @param {number} [size] * @param {string} [translate] * @param {boolean} [withReplacements] * @param {string} [sort] * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRoles: (page?: number, size?: number, translate?: string, withReplacements?: boolean, sort?: string, search?: string, options?: any) => Promise; /** * * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {string} [search] * @param {boolean} [withReplacements] * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRolesCount: (page?: number, size?: number, sort?: string, search?: string, withReplacements?: boolean, translate?: string, options?: any) => Promise; /** * * @param {string} id * @param {any} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchRole: (id: string, role: any, translate?: string, options?: any) => Promise; /** * * @param {SearchRequestDto} searchRequest * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ performRoleSearch: (searchRequest: SearchRequestDto, translate?: string, options?: any) => Promise; /** * * @param {string} id * @param {RoleDto} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ putRole: (id: string, role: RoleDto, translate?: string, options?: any) => Promise; /** * * @param {string} id * @param {RoleDto} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ putRoleForced: (id: string, role: RoleDto, translate?: string, options?: any) => Promise; /** * This is a very performant method for checking if a Role exists. * @summary Check if Role exists * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ roleExists: (id: string, options?: any) => Promise; }; /** * PermissionsApi - functional programming interface * @export */ export declare const PermissionsApiFp: (axiosClientConfiguration?: Configuration) => { /** * * @param {CreateRoleDto} createRole * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRole(createRole: CreateRoleDto, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {Array} ids * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManyRoles(ids: Array, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {string} id * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRole(id: string, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {string} id * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRole(id: string, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {number} [page] * @param {number} [size] * @param {string} [translate] * @param {boolean} [withReplacements] * @param {string} [sort] * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRoles(page?: number, size?: number, translate?: string, withReplacements?: boolean, sort?: string, search?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {string} [search] * @param {boolean} [withReplacements] * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRolesCount(page?: number, size?: number, sort?: string, search?: string, withReplacements?: boolean, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {string} id * @param {any} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchRole(id: string, role: any, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {SearchRequestDto} searchRequest * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ performRoleSearch(searchRequest: SearchRequestDto, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {string} id * @param {RoleDto} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ putRole(id: string, role: RoleDto, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * * @param {string} id * @param {RoleDto} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ putRoleForced(id: string, role: RoleDto, translate?: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; /** * This is a very performant method for checking if a Role exists. * @summary Check if Role exists * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ roleExists(id: string, options?: any): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>; }; /** * PermissionsApi - factory interface * @export */ export declare const PermissionsApiFactory: (axiosClientConfiguration?: Configuration, basePath?: string, axios?: AxiosInstance) => { /** * * @param {CreateRoleDto} createRole * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ createRole(createRole: CreateRoleDto, translate?: string, options?: any): AxiosPromise; /** * * @param {Array} ids * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteManyRoles(ids: Array, translate?: string, options?: any): AxiosPromise; /** * * @param {string} id * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ deleteRole(id: string, translate?: string, options?: any): AxiosPromise; /** * * @param {string} id * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRole(id: string, translate?: string, options?: any): AxiosPromise; /** * * @param {number} [page] * @param {number} [size] * @param {string} [translate] * @param {boolean} [withReplacements] * @param {string} [sort] * @param {string} [search] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRoles(page?: number, size?: number, translate?: string, withReplacements?: boolean, sort?: string, search?: string, options?: any): AxiosPromise; /** * * @param {number} [page] * @param {number} [size] * @param {string} [sort] * @param {string} [search] * @param {boolean} [withReplacements] * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ getRolesCount(page?: number, size?: number, sort?: string, search?: string, withReplacements?: boolean, translate?: string, options?: any): AxiosPromise; /** * * @param {string} id * @param {any} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ patchRole(id: string, role: any, translate?: string, options?: any): AxiosPromise; /** * * @param {SearchRequestDto} searchRequest * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ performRoleSearch(searchRequest: SearchRequestDto, translate?: string, options?: any): AxiosPromise; /** * * @param {string} id * @param {RoleDto} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ putRole(id: string, role: RoleDto, translate?: string, options?: any): AxiosPromise; /** * * @param {string} id * @param {RoleDto} role * @param {string} [translate] * @param {*} [options] Override http request option. * @throws {RequiredError} */ putRoleForced(id: string, role: RoleDto, translate?: string, options?: any): AxiosPromise; /** * This is a very performant method for checking if a Role exists. * @summary Check if Role exists * @param {string} id * @param {*} [options] Override http request option. * @throws {RequiredError} */ roleExists(id: string, options?: any): AxiosPromise; }; /** * Request parameters for createRole operation in PermissionsApi. * @export * @interface PermissionsApiCreateRoleRequest */ export interface PermissionsApiCreateRoleRequest { /** * * @type {CreateRoleDto} * @memberof PermissionsApiCreateRole */ readonly createRole: CreateRoleDto; /** * * @type {string} * @memberof PermissionsApiCreateRole */ readonly translate?: string; } /** * Request parameters for deleteManyRoles operation in PermissionsApi. * @export * @interface PermissionsApiDeleteManyRolesRequest */ export interface PermissionsApiDeleteManyRolesRequest { /** * * @type {Array} * @memberof PermissionsApiDeleteManyRoles */ readonly ids: Array; /** * * @type {string} * @memberof PermissionsApiDeleteManyRoles */ readonly translate?: string; } /** * Request parameters for deleteRole operation in PermissionsApi. * @export * @interface PermissionsApiDeleteRoleRequest */ export interface PermissionsApiDeleteRoleRequest { /** * * @type {string} * @memberof PermissionsApiDeleteRole */ readonly id: string; /** * * @type {string} * @memberof PermissionsApiDeleteRole */ readonly translate?: string; } /** * Request parameters for getRole operation in PermissionsApi. * @export * @interface PermissionsApiGetRoleRequest */ export interface PermissionsApiGetRoleRequest { /** * * @type {string} * @memberof PermissionsApiGetRole */ readonly id: string; /** * * @type {string} * @memberof PermissionsApiGetRole */ readonly translate?: string; } /** * Request parameters for getRoles operation in PermissionsApi. * @export * @interface PermissionsApiGetRolesRequest */ export interface PermissionsApiGetRolesRequest { /** * * @type {number} * @memberof PermissionsApiGetRoles */ readonly page?: number; /** * * @type {number} * @memberof PermissionsApiGetRoles */ readonly size?: number; /** * * @type {string} * @memberof PermissionsApiGetRoles */ readonly translate?: string; /** * * @type {boolean} * @memberof PermissionsApiGetRoles */ readonly withReplacements?: boolean; /** * * @type {string} * @memberof PermissionsApiGetRoles */ readonly sort?: string; /** * * @type {string} * @memberof PermissionsApiGetRoles */ readonly search?: string; } /** * Request parameters for getRolesCount operation in PermissionsApi. * @export * @interface PermissionsApiGetRolesCountRequest */ export interface PermissionsApiGetRolesCountRequest { /** * * @type {number} * @memberof PermissionsApiGetRolesCount */ readonly page?: number; /** * * @type {number} * @memberof PermissionsApiGetRolesCount */ readonly size?: number; /** * * @type {string} * @memberof PermissionsApiGetRolesCount */ readonly sort?: string; /** * * @type {string} * @memberof PermissionsApiGetRolesCount */ readonly search?: string; /** * * @type {boolean} * @memberof PermissionsApiGetRolesCount */ readonly withReplacements?: boolean; /** * * @type {string} * @memberof PermissionsApiGetRolesCount */ readonly translate?: string; } /** * Request parameters for patchRole operation in PermissionsApi. * @export * @interface PermissionsApiPatchRoleRequest */ export interface PermissionsApiPatchRoleRequest { /** * * @type {string} * @memberof PermissionsApiPatchRole */ readonly id: string; /** * * @type {any} * @memberof PermissionsApiPatchRole */ readonly role: any; /** * * @type {string} * @memberof PermissionsApiPatchRole */ readonly translate?: string; } /** * Request parameters for performRoleSearch operation in PermissionsApi. * @export * @interface PermissionsApiPerformRoleSearchRequest */ export interface PermissionsApiPerformRoleSearchRequest { /** * * @type {SearchRequestDto} * @memberof PermissionsApiPerformRoleSearch */ readonly searchRequest: SearchRequestDto; /** * * @type {string} * @memberof PermissionsApiPerformRoleSearch */ readonly translate?: string; } /** * Request parameters for putRole operation in PermissionsApi. * @export * @interface PermissionsApiPutRoleRequest */ export interface PermissionsApiPutRoleRequest { /** * * @type {string} * @memberof PermissionsApiPutRole */ readonly id: string; /** * * @type {RoleDto} * @memberof PermissionsApiPutRole */ readonly role: RoleDto; /** * * @type {string} * @memberof PermissionsApiPutRole */ readonly translate?: string; } /** * Request parameters for putRoleForced operation in PermissionsApi. * @export * @interface PermissionsApiPutRoleForcedRequest */ export interface PermissionsApiPutRoleForcedRequest { /** * * @type {string} * @memberof PermissionsApiPutRoleForced */ readonly id: string; /** * * @type {RoleDto} * @memberof PermissionsApiPutRoleForced */ readonly role: RoleDto; /** * * @type {string} * @memberof PermissionsApiPutRoleForced */ readonly translate?: string; } /** * Request parameters for roleExists operation in PermissionsApi. * @export * @interface PermissionsApiRoleExistsRequest */ export interface PermissionsApiRoleExistsRequest { /** * * @type {string} * @memberof PermissionsApiRoleExists */ readonly id: string; } /** * PermissionsApi - object-oriented interface * @export * @class PermissionsApi * @extends {BaseAPI} */ export declare class PermissionsApi extends BaseAPI { /** * * @param {PermissionsApiCreateRoleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ createRole(requestParameters: PermissionsApiCreateRoleRequest, options?: any): Promise>; /** * * @param {PermissionsApiDeleteManyRolesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ deleteManyRoles(requestParameters: PermissionsApiDeleteManyRolesRequest, options?: any): Promise>; /** * * @param {PermissionsApiDeleteRoleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ deleteRole(requestParameters: PermissionsApiDeleteRoleRequest, options?: any): Promise>; /** * * @param {PermissionsApiGetRoleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ getRole(requestParameters: PermissionsApiGetRoleRequest, options?: any): Promise>; /** * * @param {PermissionsApiGetRolesRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ getRoles(requestParameters?: PermissionsApiGetRolesRequest, options?: any): Promise>; /** * * @param {PermissionsApiGetRolesCountRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ getRolesCount(requestParameters?: PermissionsApiGetRolesCountRequest, options?: any): Promise>; /** * * @param {PermissionsApiPatchRoleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ patchRole(requestParameters: PermissionsApiPatchRoleRequest, options?: any): Promise>; /** * * @param {PermissionsApiPerformRoleSearchRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ performRoleSearch(requestParameters: PermissionsApiPerformRoleSearchRequest, options?: any): Promise>; /** * * @param {PermissionsApiPutRoleRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ putRole(requestParameters: PermissionsApiPutRoleRequest, options?: any): Promise>; /** * * @param {PermissionsApiPutRoleForcedRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ putRoleForced(requestParameters: PermissionsApiPutRoleForcedRequest, options?: any): Promise>; /** * This is a very performant method for checking if a Role exists. * @summary Check if Role exists * @param {PermissionsApiRoleExistsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof PermissionsApi */ roleExists(requestParameters: PermissionsApiRoleExistsRequest, options?: any): Promise>; }