law-common 10.25.0 → 10.25.1-beta.1
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 -4
- package/dist/src/api/index.js +0 -4
- package/dist/src/entities/interface/client_affiliate_entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/permission.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/role.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/role.permission.mapping.entity.interface.d.ts +2 -2
- package/dist/src/entities/model/client-affiliate.entity.model.d.ts +5 -5
- package/dist/src/entities/model/client-affiliate.entity.model.js +6 -6
- package/dist/src/entities/model/entity.model.interface.js +1 -1
- package/package.json +35 -35
- package/dist/src/api/interface/client.affiliate.entity.api.d.ts +0 -3
- package/dist/src/api/interface/client.affiliate.entity.api.js +0 -2
- package/dist/src/api/interface/permission.entity.api.d.ts +0 -3
- package/dist/src/api/interface/permission.entity.api.js +0 -2
- package/dist/src/api/interface/role.entity.response.d.ts +0 -3
- package/dist/src/api/interface/role.entity.response.js +0 -2
- package/dist/src/api/interface/role.permission.mapping.entity.api.d.ts +0 -4
- package/dist/src/api/interface/role.permission.mapping.entity.api.js +0 -2
package/dist/src/api/index.d.ts
CHANGED
|
@@ -31,15 +31,11 @@ export * from "./interface/billing.payment.entity.api";
|
|
|
31
31
|
export * from "./interface/billing.payment.update.dto.interface";
|
|
32
32
|
export * from "./interface/client.affiliate.create.dto.interface";
|
|
33
33
|
export * from "./interface/client.affiliate.update.dto.interface";
|
|
34
|
-
export * from "./interface/client.affiliate.entity.api";
|
|
35
34
|
export * from "./interface/role.create.dto.interface";
|
|
36
35
|
export * from "./interface/role.update.dto.interface";
|
|
37
|
-
export * from "./interface/role.entity.response";
|
|
38
36
|
export * from "./interface/permission.create.dto.interface";
|
|
39
37
|
export * from "./interface/permission.update.dto.interface";
|
|
40
|
-
export * from "./interface/permission.entity.api";
|
|
41
38
|
export * from "./interface/role.permission.mapping.create.dto.interface";
|
|
42
|
-
export * from "./interface/role.permission.mapping.entity.api";
|
|
43
39
|
export * from "./interface/role.permission.mapping.update.dto.interface";
|
|
44
40
|
export * from "./interface/role.permission.mapping.response";
|
|
45
41
|
export * from "./interface/role.permission.mapping.delete.dto.interface";
|
package/dist/src/api/index.js
CHANGED
|
@@ -47,15 +47,11 @@ __exportStar(require("./interface/billing.payment.entity.api"), exports);
|
|
|
47
47
|
__exportStar(require("./interface/billing.payment.update.dto.interface"), exports);
|
|
48
48
|
__exportStar(require("./interface/client.affiliate.create.dto.interface"), exports);
|
|
49
49
|
__exportStar(require("./interface/client.affiliate.update.dto.interface"), exports);
|
|
50
|
-
__exportStar(require("./interface/client.affiliate.entity.api"), exports);
|
|
51
50
|
__exportStar(require("./interface/role.create.dto.interface"), exports);
|
|
52
51
|
__exportStar(require("./interface/role.update.dto.interface"), exports);
|
|
53
|
-
__exportStar(require("./interface/role.entity.response"), exports);
|
|
54
52
|
__exportStar(require("./interface/permission.create.dto.interface"), exports);
|
|
55
53
|
__exportStar(require("./interface/permission.update.dto.interface"), exports);
|
|
56
|
-
__exportStar(require("./interface/permission.entity.api"), exports);
|
|
57
54
|
__exportStar(require("./interface/role.permission.mapping.create.dto.interface"), exports);
|
|
58
|
-
__exportStar(require("./interface/role.permission.mapping.entity.api"), exports);
|
|
59
55
|
__exportStar(require("./interface/role.permission.mapping.update.dto.interface"), exports);
|
|
60
56
|
__exportStar(require("./interface/role.permission.mapping.response"), exports);
|
|
61
57
|
__exportStar(require("./interface/role.permission.mapping.delete.dto.interface"), exports);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
2
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
-
export interface IClientAffiliateEntity extends
|
|
3
|
+
export interface IClientAffiliateEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
address: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
2
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
-
export interface IPermissionEntity extends
|
|
3
|
+
export interface IPermissionEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
description?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
2
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
-
export interface IRoleEntity extends
|
|
3
|
+
export interface IRoleEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
description?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
2
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
3
|
-
export interface IRolePermissionMappingEntity extends
|
|
3
|
+
export interface IRolePermissionMappingEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
roleId: number;
|
|
6
6
|
permissionId: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IClientAffiliateEntity } from "../interface/client_affiliate_entity.interface";
|
|
2
2
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
3
|
import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEnum.CLIENT_AFFILIATE> implements
|
|
4
|
+
export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEnum.CLIENT_AFFILIATE> implements IClientAffiliateEntity {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
7
7
|
address: string;
|
|
@@ -10,10 +10,10 @@ export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEn
|
|
|
10
10
|
organizationId: number;
|
|
11
11
|
zipCode: string;
|
|
12
12
|
country: string;
|
|
13
|
-
createdOn:
|
|
14
|
-
updatedOn:
|
|
13
|
+
createdOn: number;
|
|
14
|
+
updatedOn: number;
|
|
15
15
|
createdBy: number;
|
|
16
16
|
updatedBy: number;
|
|
17
17
|
getRelationConfigs(): any;
|
|
18
|
-
static
|
|
18
|
+
static fromEntity(entity: IClientAffiliateEntity): ClientAffiliateEntityModel;
|
|
19
19
|
}
|
|
@@ -13,18 +13,18 @@ class ClientAffiliateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
13
13
|
this.organizationId = 0;
|
|
14
14
|
this.zipCode = "";
|
|
15
15
|
this.country = "";
|
|
16
|
-
this.createdOn =
|
|
17
|
-
this.updatedOn =
|
|
16
|
+
this.createdOn = 0;
|
|
17
|
+
this.updatedOn = 0;
|
|
18
18
|
this.createdBy = 0;
|
|
19
19
|
this.updatedBy = 0;
|
|
20
20
|
}
|
|
21
21
|
getRelationConfigs() {
|
|
22
22
|
return this.constructor.prototype.constructor.relationConfigs;
|
|
23
23
|
}
|
|
24
|
-
static
|
|
25
|
-
const
|
|
26
|
-
Object.assign(
|
|
27
|
-
return
|
|
24
|
+
static fromEntity(entity) {
|
|
25
|
+
const result = new ClientAffiliateEntityModel(entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE);
|
|
26
|
+
Object.assign(result, entity);
|
|
27
|
+
return result;
|
|
28
28
|
}
|
|
29
29
|
}
|
|
30
30
|
exports.ClientAffiliateEntityModel = ClientAffiliateEntityModel;
|
|
@@ -58,7 +58,7 @@ function parseEntities(json, baseEntity, entityMap) {
|
|
|
58
58
|
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT]: reimbursement_entity_model_1.ReimbursementEntityModel.fromApiEntity,
|
|
59
59
|
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT_EXPENSE]: reimbursement_expense_entity_model_1.ReimbursementExpenseEntityModel.fromApiEntity,
|
|
60
60
|
[entity_utils_interface_1.EntityEnum.BILLING_REIMBURSEMENT_EXPENSE]: billing_reimbursement_expense_entity_model_1.BillingReimbursementExpneseEntityModel.fromApiEntity,
|
|
61
|
-
[entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.
|
|
61
|
+
[entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.fromEntity,
|
|
62
62
|
[entity_utils_interface_1.EntityEnum.BANK]: bank_entity_model_1.BankEntityModel.fromEntity,
|
|
63
63
|
[entity_utils_interface_1.EntityEnum.CONFIGURATION]: configuration_model_1.ConfigurationEntityModel.fromEntity,
|
|
64
64
|
[entity_utils_interface_1.EntityEnum.TASK]: task_entity_model_1.TaskEntityModel.fromEntity,
|
package/package.json
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "10.25.
|
|
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
|
-
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
-
"link": "npm run build && npm link",
|
|
17
|
-
"test": "jest"
|
|
18
|
-
},
|
|
19
|
-
"keywords": [],
|
|
20
|
-
"author": "",
|
|
21
|
-
"license": "ISC",
|
|
22
|
-
"devDependencies": {
|
|
23
|
-
"@types/jest": "^29.5.13",
|
|
24
|
-
"@types/node": "^22.6.1",
|
|
25
|
-
"jest": "^29.7.0",
|
|
26
|
-
"ts-jest": "^29.2.5",
|
|
27
|
-
"ts-node": "^10.9.2",
|
|
28
|
-
"typescript": "^5.6.2"
|
|
29
|
-
},
|
|
30
|
-
"dependencies": {
|
|
31
|
-
"@types/express": "^5.0.0",
|
|
32
|
-
"@types/multer": "^1.4.12",
|
|
33
|
-
"date-fns": "^4.1.0"
|
|
34
|
-
}
|
|
35
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "law-common",
|
|
3
|
+
"version": "10.25.1-beta.1",
|
|
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
|
+
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
+
"link": "npm run build && npm link",
|
|
17
|
+
"test": "jest"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@types/jest": "^29.5.13",
|
|
24
|
+
"@types/node": "^22.6.1",
|
|
25
|
+
"jest": "^29.7.0",
|
|
26
|
+
"ts-jest": "^29.2.5",
|
|
27
|
+
"ts-node": "^10.9.2",
|
|
28
|
+
"typescript": "^5.6.2"
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"@types/express": "^5.0.0",
|
|
32
|
+
"@types/multer": "^1.4.12",
|
|
33
|
+
"date-fns": "^4.1.0"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -1,4 +0,0 @@
|
|
|
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[];
|