law-common 10.26.1-beta.0 → 10.26.1-beta.10
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/src/api/index.d.ts +0 -11
- package/dist/src/api/index.js +0 -12
- package/dist/src/api/interface/billing.entity.response.d.ts +2 -3
- package/dist/src/api/interface/billing.transaction.create.dto.interface.d.ts +7 -2
- package/dist/src/api/interface/billing.transaction.entity.response.d.ts +25 -4
- package/dist/src/api/interface/billing.transaction.update.dto.interface.d.ts +13 -2
- package/dist/src/api/interface/leave.api.d.ts +1 -3
- package/dist/src/api/interface/reimbursement.entity.response.d.ts +3 -6
- package/dist/src/constants/entity_constants.d.ts +1 -0
- package/dist/src/constants/entity_constants.js +2 -1
- package/dist/src/entities/enums/billing-transaction-action.enum.d.ts +5 -0
- package/dist/src/entities/enums/billing-transaction-action.enum.js +15 -0
- package/dist/src/entities/enums/billing-transaction-status.enum.d.ts +6 -0
- package/dist/src/entities/enums/billing-transaction-status.enum.js +10 -0
- package/dist/src/entities/func/convert-to-common-entity.func.js +8 -2
- package/dist/src/entities/index.d.ts +5 -0
- package/dist/src/entities/index.js +5 -0
- package/dist/src/entities/interface/billing-reimbursement-expense.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/billing-transaction-history.entity.d.ts +7 -0
- package/dist/src/entities/interface/billing.entity.interface.d.ts +1 -0
- package/dist/src/entities/interface/billing_payment.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/billing_transaction.entity.interface.d.ts +9 -2
- package/dist/src/entities/interface/entity.utils.interface.d.ts +19 -9
- package/dist/src/entities/interface/entity.utils.interface.js +2 -1
- package/dist/src/entities/interface/leave.entity.interface.d.ts +3 -11
- package/dist/src/entities/interface/leave.entity.interface.js +1 -1
- package/dist/src/entities/interface/reimbursement.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/reimbursement_expense.entity.interface.d.ts +2 -2
- package/dist/src/entities/model/base.entity.model.d.ts +8 -2
- package/dist/src/entities/model/base.entity.model.js +53 -34
- package/dist/src/entities/model/billing-reimbursement-expense.entity.model.d.ts +5 -5
- package/dist/src/entities/model/billing-reimbursement-expense.entity.model.js +6 -6
- package/dist/src/entities/model/billing-timesheet.entity.model.d.ts +1 -1
- package/dist/src/entities/model/billing-timesheet.entity.model.js +1 -1
- package/dist/src/entities/model/billing-transaction.model.d.ts +38 -0
- package/dist/src/entities/model/billing-transaction.model.js +71 -0
- package/dist/src/entities/model/billing.entity.model.d.ts +5 -2
- package/dist/src/entities/model/billing.entity.model.js +12 -2
- package/dist/src/entities/model/entity.model.interface.d.ts +12 -1
- package/dist/src/entities/model/entity.model.interface.js +49 -5
- package/dist/src/entities/model/holiday.entity.model.d.ts +14 -1
- package/dist/src/entities/model/holiday.entity.model.js +26 -42
- package/dist/src/entities/model/leave.entity.model.d.ts +54 -7
- package/dist/src/entities/model/leave.entity.model.js +171 -23
- package/dist/src/entities/model/leave_count.entity.model.d.ts +19 -0
- package/dist/src/entities/model/leave_count.entity.model.js +60 -0
- package/dist/src/entities/model/reimbursement-expense.entity.model.d.ts +5 -5
- package/dist/src/entities/model/reimbursement-expense.entity.model.js +3 -3
- package/dist/src/entities/model/reimbursement.entity.model.d.ts +5 -5
- package/dist/src/entities/model/reimbursement.entity.model.js +6 -6
- package/dist/src/utils/entity.flow.util.d.ts +32 -0
- package/dist/src/utils/entity.flow.util.js +83 -0
- package/dist/src/utils/helper.fn.util.d.ts +37 -1
- package/dist/src/utils/helper.fn.util.js +53 -0
- package/dist/src/utils/index.d.ts +2 -0
- package/dist/src/utils/index.js +2 -0
- package/dist/src/utils/string.util.d.ts +1 -0
- package/dist/src/utils/string.util.js +14 -0
- package/package.json +1 -1
- package/dist/src/api/interface/bank_history.api.d.ts +0 -3
- package/dist/src/api/interface/billing-reimbursement-expense-history.api.d.ts +0 -4
- package/dist/src/api/interface/billing-reimbursement-expense-history.api.js +0 -2
- package/dist/src/api/interface/billing-reimbursement-expense.api.d.ts +0 -3
- package/dist/src/api/interface/billing-reimbursement-expense.api.js +0 -2
- package/dist/src/api/interface/billing.history.api.d.ts +0 -3
- package/dist/src/api/interface/billing.history.api.js +0 -2
- package/dist/src/api/interface/billing.payment.entity.api.d.ts +0 -3
- package/dist/src/api/interface/billing.payment.entity.api.js +0 -2
- package/dist/src/api/interface/billing_timesheet_history.api.d.ts +0 -3
- package/dist/src/api/interface/billing_timesheet_history.api.js +0 -2
- package/dist/src/api/interface/leave_history.api.d.ts +0 -3
- package/dist/src/api/interface/leave_history.api.js +0 -2
- package/dist/src/api/interface/reimbursement_expense.api.d.ts +0 -3
- package/dist/src/api/interface/reimbursement_expense.api.js +0 -2
- package/dist/src/api/interface/reimbursement_history.api.d.ts +0 -3
- package/dist/src/api/interface/reimbursement_history.api.js +0 -2
- package/dist/src/api/interface/timesheet.history.api.d.ts +0 -3
- package/dist/src/api/interface/timesheet.history.api.js +0 -2
- package/dist/src/api/interface/work_from_home_history.api.d.ts +0 -4
- package/dist/src/api/interface/work_from_home_history.api.js +0 -2
- /package/dist/src/{api/interface/bank_history.api.js → entities/interface/billing-transaction-history.entity.js} +0 -0
package/dist/src/api/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export * from "./interface/bank.create.dto.interface";
|
|
|
25
25
|
export * from "./interface/bank.update.dto.interface";
|
|
26
26
|
export * from "./interface/bank.entity.response";
|
|
27
27
|
export * from "./interface/billing.payment.create.dto.interface";
|
|
28
|
-
export * from "./interface/billing.payment.entity.api";
|
|
29
28
|
export * from "./interface/billing.payment.update.dto.interface";
|
|
30
29
|
export * from "./interface/client.affiliate.create.dto.interface";
|
|
31
30
|
export * from "./interface/client.affiliate.update.dto.interface";
|
|
@@ -41,21 +40,11 @@ export * from "./interface/billing.transaction.create.dto.interface";
|
|
|
41
40
|
export * from "./interface/billing.transaction.update.dto.interface";
|
|
42
41
|
export * from "./interface/billing.transaction.entity.response";
|
|
43
42
|
export * from "./interface/billing.flow.update.dto";
|
|
44
|
-
export * from "./interface/timesheet.history.api";
|
|
45
|
-
export * from "./interface/billing.history.api";
|
|
46
|
-
export * from "./interface/billing_timesheet_history.api";
|
|
47
|
-
export * from "./interface/reimbursement_history.api";
|
|
48
|
-
export * from "./interface/reimbursement_expense.api";
|
|
49
|
-
export * from "./interface/bank_history.api";
|
|
50
43
|
export * from "./interface/leave.create.dto.interface";
|
|
51
44
|
export * from "./interface/leave.update.dto.interface";
|
|
52
45
|
export * from "./interface/leave.api";
|
|
53
|
-
export * from "./interface/leave_history.api";
|
|
54
46
|
export * from "./interface/work.from.home.api";
|
|
55
47
|
export * from "./interface/work.from.home.create.dto.interface";
|
|
56
48
|
export * from "./interface/work.from.home.update.interface";
|
|
57
|
-
export * from "./interface/work_from_home_history.api";
|
|
58
49
|
export * from "./interface/cron-job-manual-trigger.dto.interface";
|
|
59
50
|
export * from "./interface/cron-job.entity.response";
|
|
60
|
-
export * from "./interface/billing-reimbursement-expense.api";
|
|
61
|
-
export * from "./interface/billing-reimbursement-expense-history.api";
|
package/dist/src/api/index.js
CHANGED
|
@@ -41,7 +41,6 @@ __exportStar(require("./interface/bank.create.dto.interface"), exports);
|
|
|
41
41
|
__exportStar(require("./interface/bank.update.dto.interface"), exports);
|
|
42
42
|
__exportStar(require("./interface/bank.entity.response"), exports);
|
|
43
43
|
__exportStar(require("./interface/billing.payment.create.dto.interface"), exports);
|
|
44
|
-
__exportStar(require("./interface/billing.payment.entity.api"), exports);
|
|
45
44
|
__exportStar(require("./interface/billing.payment.update.dto.interface"), exports);
|
|
46
45
|
__exportStar(require("./interface/client.affiliate.create.dto.interface"), exports);
|
|
47
46
|
__exportStar(require("./interface/client.affiliate.update.dto.interface"), exports);
|
|
@@ -57,22 +56,11 @@ __exportStar(require("./interface/billing.transaction.create.dto.interface"), ex
|
|
|
57
56
|
__exportStar(require("./interface/billing.transaction.update.dto.interface"), exports);
|
|
58
57
|
__exportStar(require("./interface/billing.transaction.entity.response"), exports);
|
|
59
58
|
__exportStar(require("./interface/billing.flow.update.dto"), exports);
|
|
60
|
-
__exportStar(require("./interface/timesheet.history.api"), exports);
|
|
61
|
-
__exportStar(require("./interface/billing.history.api"), exports);
|
|
62
|
-
__exportStar(require("./interface/billing_timesheet_history.api"), exports);
|
|
63
|
-
__exportStar(require("./interface/reimbursement_history.api"), exports);
|
|
64
|
-
__exportStar(require("./interface/reimbursement_expense.api"), exports);
|
|
65
|
-
__exportStar(require("./interface/bank_history.api"), exports);
|
|
66
59
|
__exportStar(require("./interface/leave.create.dto.interface"), exports);
|
|
67
60
|
__exportStar(require("./interface/leave.update.dto.interface"), exports);
|
|
68
61
|
__exportStar(require("./interface/leave.api"), exports);
|
|
69
|
-
__exportStar(require("./interface/leave_history.api"), exports);
|
|
70
62
|
__exportStar(require("./interface/work.from.home.api"), exports);
|
|
71
63
|
__exportStar(require("./interface/work.from.home.create.dto.interface"), exports);
|
|
72
64
|
__exportStar(require("./interface/work.from.home.update.interface"), exports);
|
|
73
|
-
__exportStar(require("./interface/work_from_home_history.api"), exports);
|
|
74
65
|
__exportStar(require("./interface/cron-job-manual-trigger.dto.interface"), exports);
|
|
75
66
|
__exportStar(require("./interface/cron-job.entity.response"), exports);
|
|
76
|
-
__exportStar(require("./interface/billing-reimbursement-expense.api"), exports);
|
|
77
|
-
__exportStar(require("./interface/billing-reimbursement-expense-history.api"), exports);
|
|
78
|
-
// export * from "./interface/project-user-mapping.entity.api";
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { BillingActionsEnum, BillingStatusEnum, IBillingEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
|
|
2
|
-
import { IBillingReimbursementExpenseApiEntity } from "./billing-reimbursement-expense.api";
|
|
1
|
+
import { BillingActionsEnum, BillingStatusEnum, IBillingEntity, IBillingReimbursementExpenseEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
|
|
3
2
|
import { IUpdateBillingDto } from "./billing.update.dto.interface";
|
|
4
3
|
export type IBillingEntityResponse = {
|
|
5
4
|
billing: IBillingEntity;
|
|
5
|
+
billingReimbursementExpenses?: IBillingReimbursementExpenseEntity[];
|
|
6
6
|
billingTimesheets?: IBillingTimesheetEntity[];
|
|
7
|
-
billingReimbursementExpenses?: IBillingReimbursementExpenseApiEntity[];
|
|
8
7
|
};
|
|
9
8
|
export interface IUserEntityRelation {
|
|
10
9
|
users?: IUserEntity[];
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
-
import { IBillingTransactionEntity, IEntityCreateDto } from "../../entities";
|
|
2
|
-
export
|
|
1
|
+
import { BillingTransactionStatusEnum, IBillingEntity, IBillingTransactionEntity, IEntityCreateDto } from "../../entities";
|
|
2
|
+
export type IBillingTransactionExclude = "status";
|
|
3
|
+
export interface IBillingTransactionCreateDto extends Omit<IEntityCreateDto<IBillingTransactionEntity>, IBillingTransactionExclude> {
|
|
4
|
+
status?: BillingTransactionStatusEnum;
|
|
5
|
+
}
|
|
6
|
+
export interface IBillingTransactionCreateDtoValidationData {
|
|
7
|
+
billingEntity: IBillingEntity;
|
|
3
8
|
}
|
|
@@ -1,7 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
export type IBillingTransactionApiEntityArray = IBillingTransactionApiEntity[];
|
|
1
|
+
import { BillingTransactionActionEnum, BillingTransactionStatusEnum, IBillingEntity, IBillingTransactionEntity } from "../../entities";
|
|
2
|
+
import { IBillingTransactionUpdateDto } from "./billing.transaction.update.dto.interface";
|
|
4
3
|
export type IBillingTransactionEntityGet = {
|
|
5
|
-
billingTransaction:
|
|
4
|
+
billingTransaction: IBillingTransactionEntity;
|
|
6
5
|
billing: IBillingEntity;
|
|
7
6
|
};
|
|
7
|
+
export interface IBillingTransactionContextFlowData {
|
|
8
|
+
currentBillingTransactionEntity: IBillingTransactionEntity;
|
|
9
|
+
dto: IBillingTransactionUpdateDto;
|
|
10
|
+
}
|
|
11
|
+
export interface IBillingTransactionContextFlowData {
|
|
12
|
+
currentBillingTransactionEntity: IBillingTransactionEntity;
|
|
13
|
+
dto: IBillingTransactionUpdateDto;
|
|
14
|
+
}
|
|
15
|
+
export type IBillingTransactionFlowConfig = {
|
|
16
|
+
[key in BillingTransactionStatusEnum]?: {
|
|
17
|
+
actions: {
|
|
18
|
+
[key in BillingTransactionActionEnum]?: {
|
|
19
|
+
permissions: string[];
|
|
20
|
+
next: (data: IBillingTransactionContextFlowData) => BillingTransactionStatusEnum;
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export interface IBillingTransactionContextFlowData {
|
|
26
|
+
currentBillingTransactionEntity: IBillingTransactionEntity;
|
|
27
|
+
dto: IBillingTransactionUpdateDto;
|
|
28
|
+
}
|
|
@@ -1,3 +1,14 @@
|
|
|
1
|
-
import { IBillingTransactionEntity, IEntityUpdateDto } from "../../entities";
|
|
2
|
-
export interface
|
|
1
|
+
import { BillingTransactionActionEnum, IBillingEntity, IBillingTransactionEntity, IEntityUpdateDto } from "../../entities";
|
|
2
|
+
export interface IBillingTransactionSupportingDocsDetails {
|
|
3
|
+
supportingDocsDetails?: string[];
|
|
4
|
+
}
|
|
5
|
+
export interface IBillingTransactionActionDataDto {
|
|
6
|
+
action: BillingTransactionActionEnum;
|
|
7
|
+
}
|
|
8
|
+
export interface IBillingTransactionUpdateDto extends IEntityUpdateDto<IBillingTransactionEntity>, IBillingTransactionSupportingDocsDetails {
|
|
9
|
+
actionData?: IBillingTransactionActionDataDto;
|
|
10
|
+
}
|
|
11
|
+
export interface IBillingTransactionUpdateDtoValidationResult {
|
|
12
|
+
billingTransactionEntity: IBillingTransactionEntity;
|
|
13
|
+
billingEntity: IBillingEntity;
|
|
3
14
|
}
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ILeaveEntity, LeaveActionEnum, LeaveStatusEnum } from "../../entities";
|
|
2
2
|
import { ILeaveUpdateDto } from "./leave.update.dto.interface";
|
|
3
|
-
export type ILeaveApiEntity = IApiEntity<ILeaveEntity>;
|
|
4
|
-
export type ILeaveApiEntityArray = ILeaveApiEntity[];
|
|
5
3
|
export type ILeaveFlowContextData = {
|
|
6
4
|
currentTimesheet?: ILeaveEntity;
|
|
7
5
|
dto?: ILeaveUpdateDto;
|
|
@@ -1,8 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IReimbursementEntity, IReimbursementExpenseEntity, IUserEntity, ReimbursementActionEnum, ReimbursementExpenseActionEnum, ReimbursementExpenseState, ReimbursementStatusEnum } from "../../entities";
|
|
2
2
|
import { IProjectEntityGet } from "./project.entity.response";
|
|
3
|
-
import { IReimbursementExpenseApiEntityArray } from "./reimbursement_expense.api";
|
|
4
|
-
export type IReimbursementApiEntity = IApiEntity<IReimbursementEntity>;
|
|
5
|
-
export type IReimbursementApiEntityArray = IReimbursementApiEntity[];
|
|
6
3
|
export type IReimbursementEntityGet = {
|
|
7
4
|
reimbursements: IReimbursementResponse[];
|
|
8
5
|
users: {
|
|
@@ -35,6 +32,6 @@ export type IReimbursementFlowConfig = {
|
|
|
35
32
|
export type IReimbursementFlowContextData = {
|
|
36
33
|
expenseDetails: IReimbursementExpenseEntity[];
|
|
37
34
|
};
|
|
38
|
-
export type IReimbursementResponse =
|
|
39
|
-
expenseDetails:
|
|
35
|
+
export type IReimbursementResponse = IReimbursementEntity & {
|
|
36
|
+
expenseDetails: IReimbursementExpenseEntity[];
|
|
40
37
|
};
|
|
@@ -13,3 +13,4 @@ export declare const reimbursementExpenseProjectUserInactiveBuffer: number;
|
|
|
13
13
|
export declare const annualPaidLeaves = 24;
|
|
14
14
|
export declare const designationPriorityOrder: Record<string, number>;
|
|
15
15
|
export declare const allowedProjectUpdateBillingStatuses: BillingStatusEnum[];
|
|
16
|
+
export declare const invalidFileNameCharacter: string[];
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.allowedProjectUpdateBillingStatuses = exports.designationPriorityOrder = exports.annualPaidLeaves = exports.reimbursementExpenseProjectUserInactiveBuffer = exports.systemUsers = exports.usersToExcludeFromSearchResponse = exports.freezeTimesheetAfterBillingStatus = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.toDoListMinimumEstimatedDuration = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
|
|
3
|
+
exports.invalidFileNameCharacter = exports.allowedProjectUpdateBillingStatuses = exports.designationPriorityOrder = exports.annualPaidLeaves = exports.reimbursementExpenseProjectUserInactiveBuffer = exports.systemUsers = exports.usersToExcludeFromSearchResponse = exports.freezeTimesheetAfterBillingStatus = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.toDoListMinimumEstimatedDuration = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
|
|
4
4
|
const entities_1 = require("../entities");
|
|
5
5
|
exports.timesheetViewThreshold = "timesheetViewThreshold";
|
|
6
6
|
exports.timesheetThreshold = "timesheetThreshold";
|
|
@@ -24,3 +24,4 @@ exports.allowedProjectUpdateBillingStatuses = [
|
|
|
24
24
|
entities_1.BillingStatusEnum.SETTLED,
|
|
25
25
|
entities_1.BillingStatusEnum.CANCELLED,
|
|
26
26
|
];
|
|
27
|
+
exports.invalidFileNameCharacter = [","];
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingTransactionActionEnum = void 0;
|
|
4
|
+
var BillingTransactionActionEnum;
|
|
5
|
+
(function (BillingTransactionActionEnum) {
|
|
6
|
+
// UPDATE_PAYMENT = "updatePayment",
|
|
7
|
+
// WRITE_OFF = "writeOff",
|
|
8
|
+
// CREDIT_NOTE = "creditNote",
|
|
9
|
+
// TDS = "tds",
|
|
10
|
+
// WRITE_OFF_APPROVAL = "writeOffApproval",
|
|
11
|
+
// CREDIT_NOTE_APPROVAL = "creditNoteApproval",
|
|
12
|
+
BillingTransactionActionEnum["APPROVE"] = "approve";
|
|
13
|
+
BillingTransactionActionEnum["REJECT"] = "reject";
|
|
14
|
+
BillingTransactionActionEnum["EDIT"] = "edit";
|
|
15
|
+
})(BillingTransactionActionEnum || (exports.BillingTransactionActionEnum = BillingTransactionActionEnum = {}));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingTransactionStatusEnum = void 0;
|
|
4
|
+
var BillingTransactionStatusEnum;
|
|
5
|
+
(function (BillingTransactionStatusEnum) {
|
|
6
|
+
BillingTransactionStatusEnum["APPROVED"] = "approved";
|
|
7
|
+
BillingTransactionStatusEnum["REJECTED"] = "rejected";
|
|
8
|
+
BillingTransactionStatusEnum["WRITEOFF_APPROVAL_PENDING"] = "writeoff_approval_pending";
|
|
9
|
+
BillingTransactionStatusEnum["CREDITNOTE_APPROVAL_PENDING"] = "creditnote_approval_pending";
|
|
10
|
+
})(BillingTransactionStatusEnum || (exports.BillingTransactionStatusEnum = BillingTransactionStatusEnum = {}));
|
|
@@ -14,9 +14,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.ConvertToCommonEntity = ConvertToCommonEntity;
|
|
15
15
|
exports.ConvertApiToEntity = ConvertApiToEntity;
|
|
16
16
|
function ConvertToCommonEntity(obj) {
|
|
17
|
-
var _a, _b;
|
|
18
17
|
const { createdOn: _, updatedOn: __ } = obj, objectToAssign = __rest(obj, ["createdOn", "updatedOn"]);
|
|
19
|
-
|
|
18
|
+
const dateTransformerObj = {};
|
|
19
|
+
if (obj.createdOn) {
|
|
20
|
+
dateTransformerObj["createdOn"] = obj.createdOn.toISOString();
|
|
21
|
+
}
|
|
22
|
+
if (obj.updatedOn) {
|
|
23
|
+
dateTransformerObj["updatedOn"] = obj.updatedOn.toISOString();
|
|
24
|
+
}
|
|
25
|
+
return Object.assign(Object.assign({}, dateTransformerObj), objectToAssign);
|
|
20
26
|
}
|
|
21
27
|
function ConvertApiToEntity(obj) {
|
|
22
28
|
const { createdOn: _, updatedOn: __ } = obj, objectToAssign = __rest(obj, ["createdOn", "updatedOn"]);
|
|
@@ -66,6 +66,7 @@ export * from "./interface/intermediary_bank.entity.interface";
|
|
|
66
66
|
export * from "./interface/holiday-list.entity.interface";
|
|
67
67
|
export * from "./interface/holiday.entity.interface";
|
|
68
68
|
export * from "./model/leave.entity.model";
|
|
69
|
+
export * from "./model/leave_count.entity.model";
|
|
69
70
|
export * from "./model/holiday.entity.model";
|
|
70
71
|
export * from "./enums/cron-jobs-name.enum";
|
|
71
72
|
export * from "./enums/cron-jobs-status.enum";
|
|
@@ -98,3 +99,7 @@ export * from "./model/user.entity.model";
|
|
|
98
99
|
export * from "./model/client-affiliate.entity.model";
|
|
99
100
|
export * from "./model/billing-timesheet.entity.model";
|
|
100
101
|
export * from "./interface/entity-audit-columns.interface";
|
|
102
|
+
export * from "./enums/billing-transaction-action.enum";
|
|
103
|
+
export * from "./enums/billing-transaction-status.enum";
|
|
104
|
+
export * from "./interface/billing-transaction-history.entity";
|
|
105
|
+
export * from "./model/billing-transaction.model";
|
|
@@ -83,6 +83,7 @@ __exportStar(require("./interface/intermediary_bank.entity.interface"), exports)
|
|
|
83
83
|
__exportStar(require("./interface/holiday-list.entity.interface"), exports);
|
|
84
84
|
__exportStar(require("./interface/holiday.entity.interface"), exports);
|
|
85
85
|
__exportStar(require("./model/leave.entity.model"), exports);
|
|
86
|
+
__exportStar(require("./model/leave_count.entity.model"), exports);
|
|
86
87
|
__exportStar(require("./model/holiday.entity.model"), exports);
|
|
87
88
|
__exportStar(require("./enums/cron-jobs-name.enum"), exports);
|
|
88
89
|
__exportStar(require("./enums/cron-jobs-status.enum"), exports);
|
|
@@ -115,3 +116,7 @@ __exportStar(require("./model/user.entity.model"), exports);
|
|
|
115
116
|
__exportStar(require("./model/client-affiliate.entity.model"), exports);
|
|
116
117
|
__exportStar(require("./model/billing-timesheet.entity.model"), exports);
|
|
117
118
|
__exportStar(require("./interface/entity-audit-columns.interface"), exports);
|
|
119
|
+
__exportStar(require("./enums/billing-transaction-action.enum"), exports);
|
|
120
|
+
__exportStar(require("./enums/billing-transaction-status.enum"), exports);
|
|
121
|
+
__exportStar(require("./interface/billing-transaction-history.entity"), exports);
|
|
122
|
+
__exportStar(require("./model/billing-transaction.model"), exports);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BillingReimbursementExpenseImpactEnum } from "../enums/billing-reimburement-expense-impact.enum";
|
|
2
2
|
import { BillingReimbursementExpenseChangedStatusEnum } from "../enums/billing-reimbursement-expense-change-status.enum";
|
|
3
|
-
import {
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
4
4
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
5
|
-
export interface IBillingReimbursementExpenseEntity extends
|
|
5
|
+
export interface IBillingReimbursementExpenseEntity extends IEntityAuditColumn {
|
|
6
6
|
id: number;
|
|
7
7
|
billingId: number;
|
|
8
8
|
userId: number;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IBaseHistoryEntity, IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
2
|
+
export interface IBillingTransactionHistoryEntity extends IBaseHistoryEntity {
|
|
3
|
+
}
|
|
4
|
+
export interface IBillingTransactionHistoryCreateDto extends IEntityCreateDto<IBillingTransactionHistoryEntity> {
|
|
5
|
+
}
|
|
6
|
+
export interface IBillingTransactionHistorySearchDto extends IEntityFilterData<IBillingTransactionHistoryEntity> {
|
|
7
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BillingPaymentType } from "../enums/billing.payment.type.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
3
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
-
export interface IBillingPaymentEntity extends
|
|
4
|
+
export interface IBillingPaymentEntity extends IEntityAuditColumn {
|
|
5
5
|
id: number;
|
|
6
6
|
billingId: number;
|
|
7
7
|
bankId: number;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
|
+
import { BillingTransactionStatusEnum } from "../enums/billing-transaction-status.enum";
|
|
1
2
|
import { BillingTransactionType } from "../enums/billing.transaction.enum";
|
|
2
|
-
import {
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
4
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
-
export interface IBillingTransactionEntity extends
|
|
5
|
+
export interface IBillingTransactionEntity extends IEntityAuditColumn {
|
|
5
6
|
id: number;
|
|
6
7
|
billingId: number;
|
|
7
8
|
type: BillingTransactionType;
|
|
8
9
|
amount: number;
|
|
9
10
|
details: string;
|
|
11
|
+
bankCharges?: number;
|
|
12
|
+
bankId?: number;
|
|
13
|
+
paymentDate?: string;
|
|
14
|
+
referenceNo?: string;
|
|
15
|
+
supportingDocsUrls?: string;
|
|
16
|
+
status: BillingTransactionStatusEnum;
|
|
10
17
|
}
|
|
11
18
|
export type IBillingTransactionEntityFilterData = IEntityFilterData<IBillingTransactionEntity>;
|
|
@@ -6,10 +6,14 @@ import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
|
6
6
|
import { BankEntityModel } from "../model/bank.entity.model";
|
|
7
7
|
import { BillingReimbursementExpneseEntityModel } from "../model/billing-reimbursement-expense.entity.model";
|
|
8
8
|
import { BillingTimesheetEntityModel } from "../model/billing-timesheet.entity.model";
|
|
9
|
+
import { BillingTransactionEntityModel } from "../model/billing-transaction.model";
|
|
9
10
|
import { BillingEntityModel } from "../model/billing.entity.model";
|
|
10
11
|
import { ClientAffiliateEntityModel } from "../model/client-affiliate.entity.model";
|
|
11
12
|
import { ClientEntityModel } from "../model/client.entity.model";
|
|
12
13
|
import { ConfigurationEntityModel } from "../model/configuration.model";
|
|
14
|
+
import { HolidayEntityModel } from "../model/holiday.entity.model";
|
|
15
|
+
import { LeaveEntityModel } from "../model/leave.entity.model";
|
|
16
|
+
import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
|
|
13
17
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
14
18
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
15
19
|
import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
|
|
@@ -21,6 +25,7 @@ import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
|
21
25
|
import { IBankEntity } from "./bank.entity.interface";
|
|
22
26
|
import { IBankHistoryEntity } from "./bank_history.entity.interface";
|
|
23
27
|
import { IBillingReimbursementExpenseEntity } from "./billing-reimbursement-expense.entity.interface";
|
|
28
|
+
import { IBillingTransactionHistoryEntity } from "./billing-transaction-history.entity";
|
|
24
29
|
import { IBillingEntity } from "./billing.entity.interface";
|
|
25
30
|
import { IBillingPaymentEntity } from "./billing_payment.entity.interface";
|
|
26
31
|
import { IBillingTimesheetEntity } from "./billing_timesheet.entity.interface";
|
|
@@ -31,12 +36,13 @@ import { IConfigurationEntity } from "./configuration.entity.interface";
|
|
|
31
36
|
import { ICountryEntity } from "./country.entity.interface";
|
|
32
37
|
import { ICronJobsEntity } from "./cron-job.entity.interface";
|
|
33
38
|
import { IDesignationEntity } from "./designation.entity.interface";
|
|
39
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
34
40
|
import { IExpenseTypeEntity } from "./expense_type.entity.interface";
|
|
35
41
|
import { IHolidayListEntity } from "./holiday-list.entity.interface";
|
|
36
42
|
import { IHolidayEntity } from "./holiday.entity.interface";
|
|
37
43
|
import { IIndustryEntity } from "./industry.entity.interface";
|
|
38
44
|
import { IIntermediaryBankEntity } from "./intermediary_bank.entity.interface";
|
|
39
|
-
import { ILeaveCountVirtualEntity, ILeaveEntity
|
|
45
|
+
import { ILeaveCountVirtualEntity, ILeaveEntity } from "./leave.entity.interface";
|
|
40
46
|
import { ILeaveHistoryEntity } from "./leave_history.entity.interface";
|
|
41
47
|
import { IOfficeLocationEntity } from "./office.location.entity";
|
|
42
48
|
import { IOrganizationEntity } from "./organization.entity.interface";
|
|
@@ -118,6 +124,7 @@ export declare enum EntityEnum {
|
|
|
118
124
|
BANK_HISTORY = "bank_history",
|
|
119
125
|
BILLING_PAYMENT = "billing_payment",
|
|
120
126
|
BILLING_TRANSACTION = "billing_transaction",
|
|
127
|
+
BILLING_TRANSACTION_HISTORY = "billing_transaction_history",
|
|
121
128
|
CONFIGURATION = "configuration",
|
|
122
129
|
COUNTRY = "country",
|
|
123
130
|
EXPENSE_TYPE = "expense_type",
|
|
@@ -152,7 +159,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
152
159
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
153
160
|
};
|
|
154
161
|
};
|
|
155
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends
|
|
162
|
+
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : never) & {
|
|
156
163
|
id: number;
|
|
157
164
|
};
|
|
158
165
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -251,7 +258,7 @@ export type IEntitySearchSinceConstraint = {
|
|
|
251
258
|
columnKey: string;
|
|
252
259
|
value: number;
|
|
253
260
|
};
|
|
254
|
-
export interface IBaseHistoryEntity extends
|
|
261
|
+
export interface IBaseHistoryEntity extends IEntityAuditColumn {
|
|
255
262
|
id: number;
|
|
256
263
|
entityId: number;
|
|
257
264
|
operation: HistoryOperationEnum;
|
|
@@ -267,20 +274,23 @@ export type IHistoryEntityChangedLogs<T> = {
|
|
|
267
274
|
label: string;
|
|
268
275
|
newValue: string | number;
|
|
269
276
|
oldValue: string | number;
|
|
270
|
-
timeStamp:
|
|
277
|
+
timeStamp: number;
|
|
271
278
|
};
|
|
272
279
|
export declare enum VirtualEntityEnum {
|
|
273
|
-
|
|
274
|
-
|
|
280
|
+
LEAVE_COUNT = "leave_count",
|
|
281
|
+
USER_LEAVE = "user_leave"
|
|
275
282
|
}
|
|
276
283
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
277
284
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
278
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : UserEntityModel;
|
|
285
|
+
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : UserEntityModel;
|
|
279
286
|
export type EntityMap = {
|
|
280
|
-
[key in EntityEnum]: EnumToModel<key>[];
|
|
287
|
+
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
281
288
|
};
|
|
282
289
|
export type EntityIndexMap = {
|
|
283
|
-
[key in EntityEnum]: {
|
|
290
|
+
[key in EntityEnum | VirtualEntityEnum]: {
|
|
284
291
|
[id: number]: EnumToModel<key>;
|
|
285
292
|
};
|
|
286
293
|
};
|
|
294
|
+
export type IPremissionFilterConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
295
|
+
[key: string]: () => Promise<IEntityFilterData<EnumEntityType<T>>>;
|
|
296
|
+
};
|
|
@@ -60,6 +60,7 @@ var EntityEnum;
|
|
|
60
60
|
EntityEnum["BANK_HISTORY"] = "bank_history";
|
|
61
61
|
EntityEnum["BILLING_PAYMENT"] = "billing_payment";
|
|
62
62
|
EntityEnum["BILLING_TRANSACTION"] = "billing_transaction";
|
|
63
|
+
EntityEnum["BILLING_TRANSACTION_HISTORY"] = "billing_transaction_history";
|
|
63
64
|
EntityEnum["CONFIGURATION"] = "configuration";
|
|
64
65
|
EntityEnum["COUNTRY"] = "country";
|
|
65
66
|
EntityEnum["EXPENSE_TYPE"] = "expense_type";
|
|
@@ -79,6 +80,6 @@ var EntityEnum;
|
|
|
79
80
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
80
81
|
var VirtualEntityEnum;
|
|
81
82
|
(function (VirtualEntityEnum) {
|
|
82
|
-
VirtualEntityEnum["USER_LEAVE"] = "user_leave";
|
|
83
83
|
VirtualEntityEnum["LEAVE_COUNT"] = "leave_count";
|
|
84
|
+
VirtualEntityEnum["USER_LEAVE"] = "user_leave";
|
|
84
85
|
})(VirtualEntityEnum || (exports.VirtualEntityEnum = VirtualEntityEnum = {}));
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DurationTypeEnum } from "../enums/duration-type.enum";
|
|
2
2
|
import { LeaveTypeEnum } from "../enums/leave-type.enum";
|
|
3
3
|
import { LeaveStatusEnum } from "../enums/leave.status.enum";
|
|
4
|
-
import {
|
|
4
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
5
5
|
import { EnumEntityType, IEntityFilterData, VirtualEntityEnum } from "./entity.utils.interface";
|
|
6
6
|
import { IUserEntity } from "./user.entity.interface";
|
|
7
|
-
export interface ILeaveEntity extends
|
|
7
|
+
export interface ILeaveEntity extends IEntityAuditColumn {
|
|
8
8
|
id: number;
|
|
9
9
|
employeeId: number;
|
|
10
10
|
fromDate: string;
|
|
@@ -30,15 +30,7 @@ export interface ILeaveVirtualEntityColumnKeys {
|
|
|
30
30
|
totalLeavesTaken: number;
|
|
31
31
|
totalLeavesPending: number;
|
|
32
32
|
}
|
|
33
|
-
export interface
|
|
34
|
-
userId: number;
|
|
35
|
-
leavesTaken: number;
|
|
36
|
-
leavesPending: number;
|
|
37
|
-
period: string;
|
|
38
|
-
type: LeaveTypeEnum;
|
|
39
|
-
id: number;
|
|
40
|
-
}
|
|
41
|
-
export interface ILeaveCountVirtualEntity extends IAuditColumnEntity {
|
|
33
|
+
export interface ILeaveCountVirtualEntity extends IEntityAuditColumn {
|
|
42
34
|
id: number;
|
|
43
35
|
period: string;
|
|
44
36
|
leaveId?: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReimbursementActionEnum, ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementExpenseActionEnum, ReimbursementExpenseState, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
3
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
4
4
|
import { IProjectUserMappingEntity } from "./project.entity.interface";
|
|
5
|
-
export interface IReimbursementEntity extends
|
|
5
|
+
export interface IReimbursementEntity extends IEntityAuditColumn {
|
|
6
6
|
id: number;
|
|
7
7
|
billingType: ReimbursementBillingTypeEnum;
|
|
8
8
|
billDate: string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReimbursementExpenseActionEnum, ReimbursementExpenseState } from "../enums/reimbursement.entity.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
3
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
4
4
|
import { IProjectUserMappingEntity } from "./project.entity.interface";
|
|
5
|
-
export interface IReimbursementExpenseEntity extends
|
|
5
|
+
export interface IReimbursementExpenseEntity extends IEntityAuditColumn {
|
|
6
6
|
id: number;
|
|
7
7
|
reimbursementId: number;
|
|
8
8
|
userId: number;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import { EntityEnum, EntityIndexMap } from "../interface/entity.utils.interface";
|
|
2
|
-
export declare
|
|
1
|
+
import { EntityEnum, EntityIndexMap, VirtualEntityEnum } from "../interface/entity.utils.interface";
|
|
2
|
+
export declare enum RelationType {
|
|
3
|
+
ONE = "one",
|
|
4
|
+
MANY = "many"
|
|
5
|
+
}
|
|
6
|
+
export declare abstract class BaseEntityModel<T extends EntityEnum | VirtualEntityEnum> {
|
|
3
7
|
protected entityName: T;
|
|
4
8
|
constructor(entityName: T);
|
|
5
9
|
abstract getRelationConfigs(): any[];
|
|
6
10
|
populateRelationsByIndex(entityIndexMap: EntityIndexMap): void;
|
|
7
11
|
static populateRelationsForEntities(entityIndexMap: EntityIndexMap, entityType: EntityEnum): void;
|
|
12
|
+
populateRelations(entityIndexMap: EntityIndexMap): void;
|
|
13
|
+
overwrite(entityIndexMap: EntityIndexMap, indexKey?: string): this;
|
|
8
14
|
}
|