create consumer domain accounts permissions

This commit is contained in:
2026-04-11 14:46:52 +03:30
parent d154a8402b
commit d4dff4ebfd
33 changed files with 480 additions and 37 deletions
@@ -18,9 +18,6 @@ export const errorInterceptor: HttpInterceptorFn = (req, next) => {
return next(req).pipe(
catchError((error: HttpErrorResponse) => {
console.log('error');
console.log(error);
let errorMessage = 'خطای نامشخص رخ داده است';
if (error.error instanceof ErrorEvent) {
@@ -133,13 +130,9 @@ export enum ErrorType {
* Helper function to determine error type
*/
export function getErrorType(error: HttpErrorResponse): ErrorType {
console.log('getErrorType');
console.log(error);
if (error.error instanceof ErrorEvent) {
return ErrorType.NETWORK;
}
console.log(error.status);
switch (error.status) {
case 400:
+1
View File
@@ -47,6 +47,7 @@ export interface IAuthAccountResponse {
provider_id?: string;
pos_id?: string;
user: IAuthAccountUser;
role: string;
}
interface IAuthAccountUser {
id: string;