update entity
This commit is contained in:
@ -5,7 +5,7 @@ import { OrmHelper } from "../helpers/orm";
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import { ILogObj, Logger } from "tslog";
|
import { ILogObj, Logger } from "tslog";
|
||||||
import { Language } from "../langs/lang";
|
import { Language } from "../langs/lang";
|
||||||
import { Paging } from "../types/paging";
|
import { Paging } from "entity";
|
||||||
import CommonHelper from "../helpers/common";
|
import CommonHelper from "../helpers/common";
|
||||||
import * as fastcsv from 'fast-csv';
|
import * as fastcsv from 'fast-csv';
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|||||||
@ -5,7 +5,7 @@ import { OrmHelper } from "../helpers/orm";
|
|||||||
import Joi from "joi";
|
import Joi from "joi";
|
||||||
import { ILogObj, Logger } from "tslog";
|
import { ILogObj, Logger } from "tslog";
|
||||||
import { Language } from "../langs/lang";
|
import { Language } from "../langs/lang";
|
||||||
import { Paging } from "../types/paging";
|
import { Paging } from "entity";
|
||||||
import CommonHelper from "../helpers/common";
|
import CommonHelper from "../helpers/common";
|
||||||
import * as fastcsv from 'fast-csv';
|
import * as fastcsv from 'fast-csv';
|
||||||
import dayjs from "dayjs";
|
import dayjs from "dayjs";
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
import { Response } from 'express';
|
import { Response } from 'express';
|
||||||
import { ErrorType, ErrorValidation } from '../../types/error';
|
import { ErrorType, ErrorValidation } from 'entity';
|
||||||
|
|
||||||
export class ReturnHelper {
|
export class ReturnHelper {
|
||||||
static successResponseAny(
|
static successResponseAny(
|
||||||
|
|||||||
@ -1,3 +0,0 @@
|
|||||||
export type ErrorType = 'General' | 'Raw' | 'Validation' | 'Unauthorized';
|
|
||||||
|
|
||||||
export type ErrorValidation = { [key: string]: string };
|
|
||||||
@ -1,8 +0,0 @@
|
|||||||
export interface Paging {
|
|
||||||
page: number,
|
|
||||||
limit: number,
|
|
||||||
filter: any,
|
|
||||||
with_deleted: boolean,
|
|
||||||
order_field: string,
|
|
||||||
order_direction: 'ASC' | 'DESC'
|
|
||||||
}
|
|
||||||
@ -1 +0,0 @@
|
|||||||
export type Role = 'ADMINISTRATOR' | 'HR' | 'STAFF';
|
|
||||||
@ -1,4 +0,0 @@
|
|||||||
export enum Status {
|
|
||||||
"Active" = "Y",
|
|
||||||
"Not Active" = "N"
|
|
||||||
};
|
|
||||||
Reference in New Issue
Block a user