law-common 1.2.58-beta.6 → 1.2.58-beta.8
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 +9 -0
- package/dist/src/api/index.js +9 -0
- package/dist/src/api/interface/billing.entity.response.d.ts +1 -3
- package/dist/src/api/interface/billing.update.dto.interface.d.ts +1 -3
- package/dist/src/api/interface/permission.create.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/permission.create.dto.interface.js +2 -0
- package/dist/src/api/interface/permission.entity.api.d.ts +3 -0
- package/dist/src/api/interface/permission.entity.api.js +2 -0
- package/dist/src/api/interface/permission.update.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/permission.update.dto.interface.js +2 -0
- package/dist/src/api/interface/role.create.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/role.create.dto.interface.js +2 -0
- package/dist/src/api/interface/role.entity.response.d.ts +3 -0
- package/dist/src/api/interface/role.entity.response.js +2 -0
- package/dist/src/api/interface/role.permission.mapping.create.dto.interface.d.ts +5 -0
- package/dist/src/api/interface/role.permission.mapping.create.dto.interface.js +2 -0
- package/dist/src/api/interface/role.permission.mapping.entity.api.d.ts +4 -0
- package/dist/src/api/interface/role.permission.mapping.entity.api.js +2 -0
- package/dist/src/api/interface/role.permission.mapping.update.dto.interface.d.ts +4 -0
- package/dist/src/api/interface/role.permission.mapping.update.dto.interface.js +2 -0
- package/dist/src/api/interface/role.update.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/role.update.dto.interface.js +2 -0
- package/dist/src/entities/index.d.ts +3 -0
- package/dist/src/entities/index.js +3 -0
- package/dist/src/entities/interface/bank.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/billing.entity.interface.d.ts +5 -1
- package/dist/src/entities/interface/billing_payment.entity.interface.d.ts +3 -0
- package/dist/src/entities/interface/permission.entity.interface.d.ts +9 -0
- package/dist/src/entities/interface/permission.entity.interface.js +2 -0
- package/dist/src/entities/interface/role.entity.interface.d.ts +9 -0
- package/dist/src/entities/interface/role.entity.interface.js +2 -0
- package/dist/src/entities/interface/role.permission.mapping.entity.interface.d.ts +6 -0
- package/dist/src/entities/interface/role.permission.mapping.entity.interface.js +4 -0
- package/package.json +34 -34
package/dist/src/api/index.d.ts
CHANGED
|
@@ -43,3 +43,12 @@ export * from "./interface/billing.payment.update.dto.interface";
|
|
|
43
43
|
export * from "./interface/client.affiliate.create.dto.interface";
|
|
44
44
|
export * from "./interface/client.affiliate.update.dto.interface";
|
|
45
45
|
export * from "./interface/client.affiliate.entity.api";
|
|
46
|
+
export * from "./interface/role.create.dto.interface";
|
|
47
|
+
export * from "./interface/role.update.dto.interface";
|
|
48
|
+
export * from "./interface/role.entity.response";
|
|
49
|
+
export * from "./interface/permission.create.dto.interface";
|
|
50
|
+
export * from "./interface/permission.update.dto.interface";
|
|
51
|
+
export * from "./interface/permission.entity.api";
|
|
52
|
+
export * from "./interface/role.permission.mapping.create.dto.interface";
|
|
53
|
+
export * from "./interface/role.permission.mapping.entity.api";
|
|
54
|
+
export * from "./interface/role.permission.mapping.update.dto.interface";
|
package/dist/src/api/index.js
CHANGED
|
@@ -59,3 +59,12 @@ __exportStar(require("./interface/billing.payment.update.dto.interface"), export
|
|
|
59
59
|
__exportStar(require("./interface/client.affiliate.create.dto.interface"), exports);
|
|
60
60
|
__exportStar(require("./interface/client.affiliate.update.dto.interface"), exports);
|
|
61
61
|
__exportStar(require("./interface/client.affiliate.entity.api"), exports);
|
|
62
|
+
__exportStar(require("./interface/role.create.dto.interface"), exports);
|
|
63
|
+
__exportStar(require("./interface/role.update.dto.interface"), exports);
|
|
64
|
+
__exportStar(require("./interface/role.entity.response"), exports);
|
|
65
|
+
__exportStar(require("./interface/permission.create.dto.interface"), exports);
|
|
66
|
+
__exportStar(require("./interface/permission.update.dto.interface"), exports);
|
|
67
|
+
__exportStar(require("./interface/permission.entity.api"), exports);
|
|
68
|
+
__exportStar(require("./interface/role.permission.mapping.create.dto.interface"), exports);
|
|
69
|
+
__exportStar(require("./interface/role.permission.mapping.entity.api"), exports);
|
|
70
|
+
__exportStar(require("./interface/role.permission.mapping.update.dto.interface"), exports);
|
|
@@ -19,8 +19,6 @@ export type IBillingEntityGet = {
|
|
|
19
19
|
billingTimesheets: IBillingTimesheetApiEntity[];
|
|
20
20
|
};
|
|
21
21
|
export type IBillingEntityUpdateGet = {
|
|
22
|
-
|
|
23
|
-
updatedTimesheets: IBillingTimesheetApiEntity[];
|
|
24
|
-
deletedTimesheets: IBillingTimesheetApiEntity[];
|
|
22
|
+
timesheets: IBillingTimesheetApiEntity[];
|
|
25
23
|
};
|
|
26
24
|
export type IBillingEntityGetArray = IBillingEntityGet[];
|
|
@@ -16,7 +16,5 @@ export interface IBillingTimesheetDeleteDto extends Partial<IBillingTimesheetEnt
|
|
|
16
16
|
changedStatus: BillingTimesheetStatusEnum;
|
|
17
17
|
}
|
|
18
18
|
export interface IUpdateBillingDto {
|
|
19
|
-
|
|
20
|
-
updatedTimesheets?: IBillingTimesheetUpdateDto[];
|
|
21
|
-
deletedTimesheets?: IBillingTimesheetDeleteDto[];
|
|
19
|
+
timesheets?: [IBillingTimesheetUpdateDto];
|
|
22
20
|
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IApiEntity } from "../../entities";
|
|
2
|
+
import { IRolePermissionMappingEntity } from "../../entities/interface/role.permission.mapping.entity.interface";
|
|
3
|
+
export type IRolePermissionMappingApiEntity = IApiEntity<IRolePermissionMappingEntity>;
|
|
4
|
+
export type IRolePermissionMappingApiEntityArray = IRolePermissionMappingApiEntity[];
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IEntityUpdateDto } from "../../entities";
|
|
2
|
+
import { IRolePermissionMappingEntity } from "../../entities/interface/role.permission.mapping.entity.interface";
|
|
3
|
+
export interface IRolePermissionMappingUpdateDto extends IEntityUpdateDto<IRolePermissionMappingEntity> {
|
|
4
|
+
}
|
|
@@ -29,3 +29,6 @@ export * from "./interface/bank.entity.interface";
|
|
|
29
29
|
export * from "./enums/billing.payment.type.enum";
|
|
30
30
|
export * from "./interface/billing_payment.entity.interface";
|
|
31
31
|
export * from "./interface/client_affiliate_entity.interface";
|
|
32
|
+
export * from "./interface/role.entity.interface";
|
|
33
|
+
export * from "./interface/permission.entity.interface";
|
|
34
|
+
export * from "./interface/role.permission.mapping.entity.interface";
|
|
@@ -45,3 +45,6 @@ __exportStar(require("./interface/bank.entity.interface"), exports);
|
|
|
45
45
|
__exportStar(require("./enums/billing.payment.type.enum"), exports);
|
|
46
46
|
__exportStar(require("./interface/billing_payment.entity.interface"), exports);
|
|
47
47
|
__exportStar(require("./interface/client_affiliate_entity.interface"), exports);
|
|
48
|
+
__exportStar(require("./interface/role.entity.interface"), exports);
|
|
49
|
+
__exportStar(require("./interface/permission.entity.interface"), exports);
|
|
50
|
+
__exportStar(require("./interface/role.permission.mapping.entity.interface"), exports);
|
|
@@ -5,9 +5,9 @@ export interface IBankEntity extends IAuditColumnEntity {
|
|
|
5
5
|
accountName: string;
|
|
6
6
|
organizationId: number;
|
|
7
7
|
name: string;
|
|
8
|
-
accountNo:
|
|
8
|
+
accountNo: string;
|
|
9
9
|
branchAddress: string;
|
|
10
|
-
micrCode:
|
|
10
|
+
micrCode: string;
|
|
11
11
|
ifscCode: string;
|
|
12
12
|
emailForPaymentInfo: string;
|
|
13
13
|
}
|
|
@@ -3,7 +3,7 @@ import { StatusEnum } from "../enums/billing.status.enum";
|
|
|
3
3
|
import { BillingTimesheetStatusEnum } from "../enums/billing.timesheet.change.status.enum";
|
|
4
4
|
import { PaymentStatusEnum } from "../enums/payment_status.enum";
|
|
5
5
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
6
|
-
import { IEntityCreateDto } from "./entity.utils.interface";
|
|
6
|
+
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
7
7
|
export interface IBillingEntity extends IAuditColumnEntity {
|
|
8
8
|
id: number;
|
|
9
9
|
startDate: string;
|
|
@@ -49,3 +49,7 @@ export interface IBillingTimesheetDetail extends IAuditColumnEntity {
|
|
|
49
49
|
}
|
|
50
50
|
export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
|
|
51
51
|
}
|
|
52
|
+
export interface IBillingEntityFilterDto extends IEntityFilterData<IBillingEntity> {
|
|
53
|
+
}
|
|
54
|
+
export interface IBillingTimesheetEntityFilterDto extends IEntityFilterData<IBillingTimesheetEntity> {
|
|
55
|
+
}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { BillingPaymentType } from "../enums/billing.payment.type.enum";
|
|
2
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
|
+
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
4
|
export interface IBillingPaymentEntity extends IAuditColumnEntity {
|
|
4
5
|
id: number;
|
|
6
|
+
billingId: number;
|
|
5
7
|
bankId: number;
|
|
6
8
|
type: BillingPaymentType;
|
|
7
9
|
transactionId: string;
|
|
@@ -10,3 +12,4 @@ export interface IBillingPaymentEntity extends IAuditColumnEntity {
|
|
|
10
12
|
tds: number;
|
|
11
13
|
discount: number;
|
|
12
14
|
}
|
|
15
|
+
export type IBillingPaymentEntityFilterData = IEntityFilterData<IBillingPaymentEntity>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
2
|
+
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
+
export interface IPermissionEntity extends IAuditColumnEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
organizationId: number;
|
|
8
|
+
}
|
|
9
|
+
export type IPermissionEntityFilterData = IEntityFilterData<IPermissionEntity>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
2
|
+
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
+
export interface IRoleEntity extends IAuditColumnEntity {
|
|
4
|
+
id: number;
|
|
5
|
+
name: string;
|
|
6
|
+
description?: string;
|
|
7
|
+
organizationId: number;
|
|
8
|
+
}
|
|
9
|
+
export type IRoleEntityFilterData = IEntityFilterData<IRoleEntity>;
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "1.2.58-beta.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist/**/*"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"clean": "rm -rf dist",
|
|
11
|
-
"build": "npm run clean && tsc",
|
|
12
|
-
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
13
|
-
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
-
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
-
"link": "npm run build && npm link",
|
|
16
|
-
"test": "jest"
|
|
17
|
-
},
|
|
18
|
-
"keywords": [],
|
|
19
|
-
"author": "",
|
|
20
|
-
"license": "ISC",
|
|
21
|
-
"devDependencies": {
|
|
22
|
-
"@types/jest": "^29.5.13",
|
|
23
|
-
"@types/node": "^22.6.1",
|
|
24
|
-
"jest": "^29.7.0",
|
|
25
|
-
"ts-jest": "^29.2.5",
|
|
26
|
-
"ts-node": "^10.9.2",
|
|
27
|
-
"typescript": "^5.6.2"
|
|
28
|
-
},
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@types/express": "^5.0.0",
|
|
31
|
-
"@types/multer": "^1.4.12",
|
|
32
|
-
"date-fns": "^4.1.0"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "law-common",
|
|
3
|
+
"version": "1.2.58-beta.8",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/**/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"build": "npm run clean && tsc",
|
|
12
|
+
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
|
|
13
|
+
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
+
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
+
"link": "npm run build && npm link",
|
|
16
|
+
"test": "jest"
|
|
17
|
+
},
|
|
18
|
+
"keywords": [],
|
|
19
|
+
"author": "",
|
|
20
|
+
"license": "ISC",
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"@types/jest": "^29.5.13",
|
|
23
|
+
"@types/node": "^22.6.1",
|
|
24
|
+
"jest": "^29.7.0",
|
|
25
|
+
"ts-jest": "^29.2.5",
|
|
26
|
+
"ts-node": "^10.9.2",
|
|
27
|
+
"typescript": "^5.6.2"
|
|
28
|
+
},
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@types/express": "^5.0.0",
|
|
31
|
+
"@types/multer": "^1.4.12",
|
|
32
|
+
"date-fns": "^4.1.0"
|
|
33
|
+
}
|
|
34
|
+
}
|