feat: add Master Admin application functionality
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
export interface ApiResponse<T> {
|
||||
data: T;
|
||||
message?: string;
|
||||
success: boolean;
|
||||
}
|
||||
|
||||
export interface ProblemDetails {
|
||||
title?: string;
|
||||
status?: number;
|
||||
detail?: string;
|
||||
errors?: Record<string, string[]>;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
export interface LoginRequest {
|
||||
email: string;
|
||||
password: string;
|
||||
}
|
||||
|
||||
export interface LoginResponse {
|
||||
accessToken: string;
|
||||
refreshToken?: string;
|
||||
accessTokenExpiresOn?: string;
|
||||
refreshTokenExpiresOn?: string;
|
||||
expiresIn?: number;
|
||||
user?: UserProfile;
|
||||
userId?: string;
|
||||
email?: string;
|
||||
roles?: string[];
|
||||
}
|
||||
|
||||
export interface UserProfile {
|
||||
id: string;
|
||||
email: string;
|
||||
displayName?: string;
|
||||
roles?: string[];
|
||||
tenantId?: string;
|
||||
}
|
||||
@@ -0,0 +1,33 @@
|
||||
import { UserProfile } from './auth.model';
|
||||
import { Menu } from '../../shared/services/nav.service';
|
||||
|
||||
export interface CurrentUserContext extends UserProfile {
|
||||
fullName?: string;
|
||||
defaultLandingPage?: string;
|
||||
}
|
||||
|
||||
export interface TenantContext {
|
||||
tenantId?: string;
|
||||
companyId?: string;
|
||||
companyName?: string;
|
||||
tenantName?: string;
|
||||
defaultLandingPage?: string;
|
||||
}
|
||||
|
||||
export interface PermissionContext {
|
||||
roles: string[];
|
||||
permissions: string[];
|
||||
defaultLandingPage?: string;
|
||||
}
|
||||
|
||||
export interface MenuContext {
|
||||
items: Menu[];
|
||||
defaultLandingPage?: string;
|
||||
}
|
||||
|
||||
export interface AppContextState {
|
||||
user: CurrentUserContext;
|
||||
tenant: TenantContext;
|
||||
permissions: PermissionContext;
|
||||
menu: MenuContext;
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
export interface CountryDto {
|
||||
id: string;
|
||||
iso2: string;
|
||||
iso3: string;
|
||||
name: string;
|
||||
phoneCode: string | null;
|
||||
defaultCurrencyId: string | null;
|
||||
isActive?: boolean;
|
||||
}
|
||||
|
||||
export type CountryModalMode = 'create' | 'edit';
|
||||
Reference in New Issue
Block a user