@steffesgroup/steffes-auth
Advanced tools
Comparing version 2.1.3 to 2.1.4
@@ -48,2 +48,7 @@ import { AxiosInstance, AxiosRequestConfig, AxiosResponse, CancelToken } from 'axios'; | ||
/** | ||
* Gets the current logged in user's role | ||
* @param tenantId The ID of the tenant to associate the entity with. | ||
*/ | ||
getUserRole(tenantId: string): Promise<UserRole>; | ||
/** | ||
* Gets the current logged in user's industries | ||
@@ -149,2 +154,8 @@ * @param tenantId The ID of the tenant to associate the entity with. | ||
/** | ||
* Gets the current logged in user's role | ||
* @param tenantId The ID of the tenant to associate the entity with. | ||
*/ | ||
getUserRole(tenantId: string, cancelToken?: CancelToken): Promise<UserRole>; | ||
protected processGetUserRole(response: AxiosResponse): Promise<UserRole>; | ||
/** | ||
* Gets the current logged in user's industries | ||
@@ -607,2 +618,39 @@ * @param tenantId The ID of the tenant to associate the entity with. | ||
} | ||
export declare class UserRole extends Collection implements IUserRole { | ||
assignmentRoles?: AssignmentRole[]; | ||
roles?: RelationEntity[]; | ||
user?: RelationEntity; | ||
constructor(data?: IUserRole); | ||
init(_data?: any): void; | ||
static fromJS(data: any): UserRole; | ||
toJSON(data?: any): any; | ||
} | ||
export interface IUserRole extends ICollection { | ||
assignmentRoles?: AssignmentRole[]; | ||
roles?: RelationEntity[]; | ||
user?: RelationEntity; | ||
} | ||
export declare class AssignmentRole implements IAssignmentRole { | ||
active?: boolean; | ||
id?: number; | ||
name?: string; | ||
parent?: string; | ||
roleTypes?: AssignmentRoleType[]; | ||
constructor(data?: IAssignmentRole); | ||
init(_data?: any): void; | ||
static fromJS(data: any): AssignmentRole; | ||
toJSON(data?: any): any; | ||
} | ||
export interface IAssignmentRole { | ||
active?: boolean; | ||
id?: number; | ||
name?: string; | ||
parent?: string; | ||
roleTypes?: AssignmentRoleType[]; | ||
} | ||
export declare enum AssignmentRoleType { | ||
Auction = "Auction", | ||
Contract = "Contract", | ||
LiveAuction = "Live Auction" | ||
} | ||
export declare class UserNotificationPreferenceDTO implements IUserNotificationPreferenceDTO { | ||
@@ -609,0 +657,0 @@ emailNotifications?: GroupUserNotificationPreferenceDTO[]; |
{ | ||
"name": "@steffesgroup/steffes-auth", | ||
"version": "2.1.3", | ||
"version": "2.1.4", | ||
"description": "Steffes Auth", | ||
@@ -5,0 +5,0 @@ "main": "dist/api.js", |
Sorry, the diff of this file is too big to display
169563
4382