law-common 2.9.2-beta.4 → 2.9.2-beta.5
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 +1 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/api/interface/bank_history_entity.response.d.ts +12 -0
- package/dist/src/api/interface/bank_history_entity.response.js +2 -0
- package/dist/src/entities/enums/bank_entity_keys.enum.d.ts +17 -0
- package/dist/src/entities/enums/bank_entity_keys.enum.js +51 -0
- package/dist/src/entities/index.d.ts +1 -0
- package/dist/src/entities/index.js +1 -0
- package/dist/src/entities/interface/bank_history.entity.interface.d.ts +23 -0
- package/dist/src/enums/error.key.enum.d.ts +2 -1
- package/dist/src/enums/error.key.enum.js +1 -0
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -65,3 +65,4 @@ export * from "./interface/reimbursement_history.api";
|
|
|
65
65
|
export * from "./interface/reimbursement_expense.api";
|
|
66
66
|
export * from "./interface/timesheet_history_entity.response";
|
|
67
67
|
export * from "./interface/bank_history.api";
|
|
68
|
+
export * from "./interface/bank_history_entity.response";
|
package/dist/src/api/index.js
CHANGED
|
@@ -81,3 +81,4 @@ __exportStar(require("./interface/reimbursement_history.api"), exports);
|
|
|
81
81
|
__exportStar(require("./interface/reimbursement_expense.api"), exports);
|
|
82
82
|
__exportStar(require("./interface/timesheet_history_entity.response"), exports);
|
|
83
83
|
__exportStar(require("./interface/bank_history.api"), exports);
|
|
84
|
+
__exportStar(require("./interface/bank_history_entity.response"), exports);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export type IBankHistoryEntitySearchByConstraintResponse = {
|
|
2
|
+
id: number;
|
|
3
|
+
createdBy: number;
|
|
4
|
+
changedLogs: IBankHistoryEntityChangedLogs[];
|
|
5
|
+
};
|
|
6
|
+
export type IBankHistoryEntityChangedLogs = {
|
|
7
|
+
key: string;
|
|
8
|
+
label: string;
|
|
9
|
+
newValue: string | number;
|
|
10
|
+
oldValue: string | number;
|
|
11
|
+
timeStamp: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare enum BankEntityKeysEnum {
|
|
2
|
+
id = "id",
|
|
3
|
+
accountName = "accountName",
|
|
4
|
+
organizationId = "organizationId",
|
|
5
|
+
name = "name",
|
|
6
|
+
accountNo = "accountNo",
|
|
7
|
+
branchAddress = "branchAddress",
|
|
8
|
+
micrCode = "micrCode",
|
|
9
|
+
ifscCode = "ifscCode",
|
|
10
|
+
emailForPaymentInfoCsv = "emailForPaymentInfoCsv",
|
|
11
|
+
status = "status",
|
|
12
|
+
remark = "remark"
|
|
13
|
+
}
|
|
14
|
+
export declare namespace BankEntityKeysEnum {
|
|
15
|
+
const keyLabelMap: Record<BankEntityKeysEnum, string>;
|
|
16
|
+
function getLabel(key: BankEntityKeysEnum): string;
|
|
17
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankEntityKeysEnum = void 0;
|
|
4
|
+
const error_key_enum_1 = require("../../enums/error.key.enum");
|
|
5
|
+
const exceptions_1 = require("../../exceptions");
|
|
6
|
+
var BankEntityKeysEnum;
|
|
7
|
+
(function (BankEntityKeysEnum) {
|
|
8
|
+
BankEntityKeysEnum["id"] = "id";
|
|
9
|
+
BankEntityKeysEnum["accountName"] = "accountName";
|
|
10
|
+
BankEntityKeysEnum["organizationId"] = "organizationId";
|
|
11
|
+
BankEntityKeysEnum["name"] = "name";
|
|
12
|
+
BankEntityKeysEnum["accountNo"] = "accountNo";
|
|
13
|
+
BankEntityKeysEnum["branchAddress"] = "branchAddress";
|
|
14
|
+
BankEntityKeysEnum["micrCode"] = "micrCode";
|
|
15
|
+
BankEntityKeysEnum["ifscCode"] = "ifscCode";
|
|
16
|
+
BankEntityKeysEnum["emailForPaymentInfoCsv"] = "emailForPaymentInfoCsv";
|
|
17
|
+
BankEntityKeysEnum["status"] = "status";
|
|
18
|
+
BankEntityKeysEnum["remark"] = "remark";
|
|
19
|
+
})(BankEntityKeysEnum || (exports.BankEntityKeysEnum = BankEntityKeysEnum = {}));
|
|
20
|
+
(function (BankEntityKeysEnum) {
|
|
21
|
+
BankEntityKeysEnum.keyLabelMap = {
|
|
22
|
+
[BankEntityKeysEnum.id]: "Bank ID",
|
|
23
|
+
[BankEntityKeysEnum.accountName]: "Account Name",
|
|
24
|
+
[BankEntityKeysEnum.organizationId]: "Organization ID",
|
|
25
|
+
[BankEntityKeysEnum.name]: "Bank Name",
|
|
26
|
+
[BankEntityKeysEnum.accountNo]: "Account Number",
|
|
27
|
+
[BankEntityKeysEnum.branchAddress]: "Branch Address",
|
|
28
|
+
[BankEntityKeysEnum.micrCode]: "MICR Code",
|
|
29
|
+
[BankEntityKeysEnum.ifscCode]: "IFSC Code",
|
|
30
|
+
[BankEntityKeysEnum.emailForPaymentInfoCsv]: "Email for Payment Info CSV",
|
|
31
|
+
[BankEntityKeysEnum.status]: "Status",
|
|
32
|
+
[BankEntityKeysEnum.remark]: "Remark",
|
|
33
|
+
};
|
|
34
|
+
function getLabel(key) {
|
|
35
|
+
if (!Object.values(BankEntityKeysEnum).includes(key)) {
|
|
36
|
+
throw new exceptions_1.AppBadRequestException({
|
|
37
|
+
key: error_key_enum_1.ErrorKeyEnum.BANK_KEY,
|
|
38
|
+
message: ["Invalid key name"],
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
const label = BankEntityKeysEnum.keyLabelMap[key];
|
|
42
|
+
if (!label) {
|
|
43
|
+
throw new exceptions_1.AppBadRequestException({
|
|
44
|
+
key: error_key_enum_1.ErrorKeyEnum.BANK_KEY,
|
|
45
|
+
message: ["Invalid key name"],
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
return label;
|
|
49
|
+
}
|
|
50
|
+
BankEntityKeysEnum.getLabel = getLabel;
|
|
51
|
+
})(BankEntityKeysEnum || (exports.BankEntityKeysEnum = BankEntityKeysEnum = {}));
|
|
@@ -67,3 +67,4 @@ __exportStar(require("./enums/timesheet_entity_keys.enum"), exports);
|
|
|
67
67
|
__exportStar(require("./enums/bank_action.enum"), exports);
|
|
68
68
|
__exportStar(require("./enums/bank_status.enum"), exports);
|
|
69
69
|
__exportStar(require("./interface/bank_history.entity.interface"), exports);
|
|
70
|
+
__exportStar(require("./enums/bank_entity_keys.enum"), exports);
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constraint_type.enum";
|
|
1
2
|
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
3
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
4
|
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
@@ -12,3 +13,25 @@ export interface IBankHistoryCreateDto extends IEntityCreateDto<IBankHistoryEnti
|
|
|
12
13
|
export interface IBankHistorySearchDto extends IEntityFilterData<IBankHistoryEntity> {
|
|
13
14
|
}
|
|
14
15
|
export declare const bankHistoryExcludeKeys: string[];
|
|
16
|
+
export type IBankEntitySearchConstraint = {
|
|
17
|
+
entityId: number[];
|
|
18
|
+
constraint: {
|
|
19
|
+
since: IBankEntitySearchSinceConstraint;
|
|
20
|
+
};
|
|
21
|
+
};
|
|
22
|
+
export type IBankEntitySearchSinceConstraint = {
|
|
23
|
+
type: EntitySearchConstraintTypeEnum;
|
|
24
|
+
columnKey: string;
|
|
25
|
+
value: number;
|
|
26
|
+
};
|
|
27
|
+
export type IBankHistoryParsed = {
|
|
28
|
+
parsedData: any;
|
|
29
|
+
id: number;
|
|
30
|
+
entityId: number;
|
|
31
|
+
operation: HistoryOperationEnum;
|
|
32
|
+
data: string;
|
|
33
|
+
createdOn: Date;
|
|
34
|
+
updatedOn: Date;
|
|
35
|
+
createdBy: number;
|
|
36
|
+
updatedBy: number;
|
|
37
|
+
};
|
|
@@ -6,5 +6,6 @@ export declare enum ErrorKeyEnum {
|
|
|
6
6
|
REIMBURSEMENT_FLOW_ACTION = "REIMBURSEMENT_FLOW_ACTION",
|
|
7
7
|
REIMBURSEMENT_EXPENSE_FLOW_ACTION = "REIMBURSEMENT_EXPENSE_FLOW_ACTION",
|
|
8
8
|
TIMESHEET_KEY = "TIMESHEET_KEY",
|
|
9
|
-
BANK_FLOW_ACTION = "BANK_FLOW_ACTION"
|
|
9
|
+
BANK_FLOW_ACTION = "BANK_FLOW_ACTION",
|
|
10
|
+
BANK_KEY = "BANK_KEY"
|
|
10
11
|
}
|
|
@@ -11,4 +11,5 @@ var ErrorKeyEnum;
|
|
|
11
11
|
ErrorKeyEnum["REIMBURSEMENT_EXPENSE_FLOW_ACTION"] = "REIMBURSEMENT_EXPENSE_FLOW_ACTION";
|
|
12
12
|
ErrorKeyEnum["TIMESHEET_KEY"] = "TIMESHEET_KEY";
|
|
13
13
|
ErrorKeyEnum["BANK_FLOW_ACTION"] = "BANK_FLOW_ACTION";
|
|
14
|
+
ErrorKeyEnum["BANK_KEY"] = "BANK_KEY";
|
|
14
15
|
})(ErrorKeyEnum || (exports.ErrorKeyEnum = ErrorKeyEnum = {}));
|