fix: EmployeeHistory type
This commit is contained in:
parent
410582948b
commit
186edd93fe
1 changed files with 5 additions and 4 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
import { District, Province, SubDistrict } from '../address';
|
import { District, Province, SubDistrict } from '../address';
|
||||||
import { Status } from '../types';
|
import { Status } from '../types';
|
||||||
|
import { User } from '../user/types';
|
||||||
|
|
||||||
export type Employee = {
|
export type Employee = {
|
||||||
id: string;
|
id: string;
|
||||||
|
|
@ -217,9 +218,9 @@ export type EmployeeOtherCreate = {
|
||||||
|
|
||||||
export type EmployeeHistory = {
|
export type EmployeeHistory = {
|
||||||
masterId: string;
|
masterId: string;
|
||||||
updatedBy: string;
|
// updatedBy: string;
|
||||||
|
updatedBy: User;
|
||||||
updatedByUserId: string;
|
updatedByUserId: string;
|
||||||
timestamp: Date;
|
|
||||||
valueAfter: string;
|
valueAfter: string;
|
||||||
valueBefore: string;
|
valueBefore: string;
|
||||||
field: string;
|
field: string;
|
||||||
|
|
@ -231,9 +232,9 @@ export type NewEmployeeHistory = {
|
||||||
date: string;
|
date: string;
|
||||||
data: {
|
data: {
|
||||||
masterId: string;
|
masterId: string;
|
||||||
updatedBy: string;
|
// updatedBy: string;
|
||||||
|
updatedBy: User;
|
||||||
updatedByUserId: string;
|
updatedByUserId: string;
|
||||||
timestamp: Date;
|
|
||||||
updatedAt: Date;
|
updatedAt: Date;
|
||||||
id: string;
|
id: string;
|
||||||
history: { valueAfter: string; valueBefore: string; field: string }[];
|
history: { valueAfter: string; valueBefore: string; field: string }[];
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue