Customer Detail Page and Enhance dynamic breadcrumbs
This commit is contained in:
@@ -1,17 +1,21 @@
|
||||
export interface PhoneNumber {
|
||||
export interface CustomerPhoneNumber {
|
||||
number: string;
|
||||
note: string;
|
||||
createdBy: string;
|
||||
creator: string;
|
||||
createdBy: number;
|
||||
lastModifier: string;
|
||||
updatedBy: number;
|
||||
createdAt: string;
|
||||
updatedBy: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
export interface Note {
|
||||
export interface CustomerNote {
|
||||
text: string;
|
||||
createdBy: string;
|
||||
creator: string;
|
||||
createdBy: number;
|
||||
lastModifier: string;
|
||||
updatedBy: number;
|
||||
createdAt: string;
|
||||
updatedBy: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
|
||||
@@ -20,13 +24,13 @@ export interface Customer {
|
||||
email: string;
|
||||
name: string;
|
||||
companyName: string;
|
||||
phoneNumbers: PhoneNumber[];
|
||||
phoneNumbers: CustomerPhoneNumber[];
|
||||
street: string;
|
||||
zip: string;
|
||||
city: string;
|
||||
notes: Note[];
|
||||
createdBy: string;
|
||||
notes: CustomerNote[];
|
||||
createdBy: number;
|
||||
updatedBy: number;
|
||||
createdAt: string;
|
||||
updatedBy: string;
|
||||
updatedAt: string;
|
||||
}
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
"use server";
|
||||
|
||||
import {callApi} from "@/lib/api/callApi";
|
||||
import {Customer} from "@/app/customers/page";
|
||||
import {customerRoutes} from "@/app/api/customers/customerRoutes";
|
||||
import {Customer} from "@/services/customers/entities/customer";
|
||||
|
||||
export async function validateCustomer(input: {
|
||||
email: string;
|
||||
|
||||
Reference in New Issue
Block a user