proflores-db-model 0.1.13 → 0.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entities/ExpenseDetail.d.ts +10 -0
- package/dist/entities/ExpenseTransaction.d.ts +16 -0
- package/dist/entities/ExpenseType.d.ts +6 -0
- package/dist/entities/ProjectOrder.d.ts +11 -0
- package/dist/entities/Transaction.d.ts +0 -0
- package/dist/entities/User.d.ts +15 -0
- package/dist/index.d.ts +6 -0
- package/dist/types/ExpenseDetailType.d.ts +9 -0
- package/dist/types/ExpenseTransactionType.d.ts +15 -0
- package/dist/types/ExpenseTypeType.d.ts +5 -0
- package/dist/types/ProjectOrderType.d.ts +10 -0
- package/dist/types/index.d.ts +4 -0
- package/package.json +1 -1
- package/tsconfig.json +2 -1
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ObjectLiteral } from "typeorm";
|
|
2
|
+
import { ExpenseTransaction } from "./ExpenseTransaction";
|
|
3
|
+
export declare class ExpenseDetail implements ObjectLiteral {
|
|
4
|
+
expenseDetailId: number;
|
|
5
|
+
expenseTransaction: ExpenseTransaction;
|
|
6
|
+
concept: string;
|
|
7
|
+
quantity: number;
|
|
8
|
+
unitPrice: number;
|
|
9
|
+
purchaseDate: Date;
|
|
10
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ObjectLiteral } from "typeorm";
|
|
2
|
+
import { ProjectOrder } from "./ProjectOrder";
|
|
3
|
+
import { ExpenseType } from "./ExpenseType";
|
|
4
|
+
import { ExpenseDetail } from "./ExpenseDetail";
|
|
5
|
+
export declare class ExpenseTransaction implements ObjectLiteral {
|
|
6
|
+
expenseTransactionId: number;
|
|
7
|
+
bankId: string;
|
|
8
|
+
amount: number;
|
|
9
|
+
transactionDate: Date;
|
|
10
|
+
paymentMethod: string;
|
|
11
|
+
description: string;
|
|
12
|
+
mediaFile: string;
|
|
13
|
+
projectOrder: ProjectOrder;
|
|
14
|
+
expenseType: ExpenseType;
|
|
15
|
+
expenseDetails: ExpenseDetail[];
|
|
16
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ObjectLiteral } from "typeorm";
|
|
2
|
+
export declare class ProjectOrder implements ObjectLiteral {
|
|
3
|
+
projectId: number;
|
|
4
|
+
name: string;
|
|
5
|
+
description: string;
|
|
6
|
+
location: string;
|
|
7
|
+
startDate: Date;
|
|
8
|
+
endDate: Date;
|
|
9
|
+
isActive: boolean;
|
|
10
|
+
estimatedAmount: number;
|
|
11
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ObjectLiteral } from 'typeorm';
|
|
2
|
+
export declare class User implements ObjectLiteral {
|
|
3
|
+
userId: number;
|
|
4
|
+
email: string | null;
|
|
5
|
+
firstName: string | null;
|
|
6
|
+
lastName: string | null;
|
|
7
|
+
googleId: string | null;
|
|
8
|
+
facebookId: string | null;
|
|
9
|
+
appleId: string | null;
|
|
10
|
+
password: string | null;
|
|
11
|
+
picture: string | null;
|
|
12
|
+
isActive: boolean;
|
|
13
|
+
createdAt: Date;
|
|
14
|
+
updatedAt: Date;
|
|
15
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ExpenseDetail } from "./entities/ExpenseDetail";
|
|
2
|
+
export { ExpenseType } from "./entities/ExpenseType";
|
|
3
|
+
export { ProjectOrder } from "./entities/ProjectOrder";
|
|
4
|
+
export { User } from "./entities/User";
|
|
5
|
+
export { ExpenseTransaction } from "./entities/ExpenseTransaction";
|
|
6
|
+
export * from "./types";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ExpenseTransactionType } from "./ExpenseTransactionType";
|
|
2
|
+
export interface ExpenseDetailType {
|
|
3
|
+
expenseDetailId: number;
|
|
4
|
+
expenseTransaction?: ExpenseTransactionType;
|
|
5
|
+
concept: string;
|
|
6
|
+
quantity: number;
|
|
7
|
+
unitPrice: number;
|
|
8
|
+
purchaseDate: Date;
|
|
9
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ProjectOrderType } from "./ProjectOrderType";
|
|
2
|
+
import { ExpenseTypeType } from "./ExpenseTypeType";
|
|
3
|
+
import { ExpenseDetailType } from "./ExpenseDetailType";
|
|
4
|
+
export interface ExpenseTransactionType {
|
|
5
|
+
expenseTransactionId: number;
|
|
6
|
+
bankId: string;
|
|
7
|
+
amount: number;
|
|
8
|
+
transactionDate: Date;
|
|
9
|
+
paymentMethod: string;
|
|
10
|
+
description: string;
|
|
11
|
+
mediaFile?: string;
|
|
12
|
+
projectOrder?: ProjectOrderType;
|
|
13
|
+
expenseType?: ExpenseTypeType;
|
|
14
|
+
expenseDetails?: ExpenseDetailType[];
|
|
15
|
+
}
|
package/package.json
CHANGED