law-common 10.22.1-beta.2 → 10.22.1-beta.4
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 -3
- package/dist/src/api/index.js +0 -4
- package/dist/src/api/interface/client.entity.response.d.ts +1 -3
- package/dist/src/api/interface/project.entity.response.d.ts +2 -2
- package/dist/src/entities/interface/country.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/designation.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/designation.entity.interface.js +1 -1
- package/dist/src/entities/interface/industry.entity.interface.d.ts +2 -2
- package/dist/src/entities/model/designation.entity.model.d.ts +5 -5
- package/dist/src/entities/model/designation.entity.model.js +6 -6
- package/package.json +1 -1
- package/dist/src/api/interface/country.entity.response.d.ts +0 -4
- package/dist/src/api/interface/country.entity.response.js +0 -2
- package/dist/src/api/interface/designation.entity.response.d.ts +0 -4
- package/dist/src/api/interface/designation.entity.response.js +0 -2
- package/dist/src/api/interface/industry.entity.response.d.ts +0 -3
- package/dist/src/api/interface/industry.entity.response.js +0 -2
package/dist/src/api/index.d.ts
CHANGED
|
@@ -7,9 +7,7 @@ export * from "./interface/user.create.dto.interace";
|
|
|
7
7
|
export * from "./interface/login.response.interface";
|
|
8
8
|
export * from "./interface/jwt.payload.interface";
|
|
9
9
|
export * from "./interface/user.update.dto.interface";
|
|
10
|
-
export * from "./interface/designation.entity.response";
|
|
11
10
|
export * from "./interface/login.dto.interface";
|
|
12
|
-
export * from "./interface/industry.entity.response";
|
|
13
11
|
export * from "./interface/configuration.entity.response";
|
|
14
12
|
export * from "./interface/rate.entity.response";
|
|
15
13
|
export * from "./interface/client.entity.response";
|
|
@@ -70,7 +68,6 @@ export * from "./interface/work.from.home.api";
|
|
|
70
68
|
export * from "./interface/work.from.home.create.dto.interface";
|
|
71
69
|
export * from "./interface/work.from.home.update.interface";
|
|
72
70
|
export * from "./interface/work_from_home_history.api";
|
|
73
|
-
export * from "./interface/country.entity.response";
|
|
74
71
|
export * from "./interface/organization.entity.api";
|
|
75
72
|
export * from "./interface/intermediary.bank.entity.response";
|
|
76
73
|
export * from "./interface/holiday.entity.response";
|
package/dist/src/api/index.js
CHANGED
|
@@ -17,16 +17,13 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
__exportStar(require("./interface/base.response.interface"), exports);
|
|
18
18
|
__exportStar(require("./interface/task.create.dto.interface"), exports);
|
|
19
19
|
__exportStar(require("./interface/task.update.dto.interface"), exports);
|
|
20
|
-
// export * from "./interface/task.entity.api";
|
|
21
20
|
__exportStar(require("./interface/user.entity.api"), exports);
|
|
22
21
|
__exportStar(require("./interface/user.entity.response"), exports);
|
|
23
22
|
__exportStar(require("./interface/user.create.dto.interace"), exports);
|
|
24
23
|
__exportStar(require("./interface/login.response.interface"), exports);
|
|
25
24
|
__exportStar(require("./interface/jwt.payload.interface"), exports);
|
|
26
25
|
__exportStar(require("./interface/user.update.dto.interface"), exports);
|
|
27
|
-
__exportStar(require("./interface/designation.entity.response"), exports);
|
|
28
26
|
__exportStar(require("./interface/login.dto.interface"), exports);
|
|
29
|
-
__exportStar(require("./interface/industry.entity.response"), exports);
|
|
30
27
|
__exportStar(require("./interface/configuration.entity.response"), exports);
|
|
31
28
|
__exportStar(require("./interface/rate.entity.response"), exports);
|
|
32
29
|
__exportStar(require("./interface/client.entity.response"), exports);
|
|
@@ -87,7 +84,6 @@ __exportStar(require("./interface/work.from.home.api"), exports);
|
|
|
87
84
|
__exportStar(require("./interface/work.from.home.create.dto.interface"), exports);
|
|
88
85
|
__exportStar(require("./interface/work.from.home.update.interface"), exports);
|
|
89
86
|
__exportStar(require("./interface/work_from_home_history.api"), exports);
|
|
90
|
-
__exportStar(require("./interface/country.entity.response"), exports);
|
|
91
87
|
__exportStar(require("./interface/organization.entity.api"), exports);
|
|
92
88
|
__exportStar(require("./interface/intermediary.bank.entity.response"), exports);
|
|
93
89
|
__exportStar(require("./interface/holiday.entity.response"), exports);
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IClientEntity, IClientEntityChildren, IClientEntityDependent } from "../../entities";
|
|
2
2
|
import { IUserApiEntity } from "./user.entity.api";
|
|
3
|
-
export type IClientApiEntity = IApiEntity<IClientEntity>;
|
|
4
|
-
export type IClientApiEntityArray = IClientApiEntity[];
|
|
5
3
|
export type IClientApiEntityDependent = IClientEntity & IClientEntityDependent & IClientEntityChildren;
|
|
6
4
|
export type IClientEntityGet = {
|
|
7
5
|
clients: IClientApiEntityDependent[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IApiEntity, IClientEntity,
|
|
1
|
+
import { IApiEntity, IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectUserDto } from "../../entities";
|
|
2
2
|
import { IRateApiEntity } from "./rate.entity.response";
|
|
3
3
|
import { IUserApiEntity } from "./user.entity.api";
|
|
4
4
|
export type IProjectApiEntity = IApiEntity<IProjectEntity>;
|
|
@@ -19,7 +19,7 @@ export type IProjectEntityGet = {
|
|
|
19
19
|
[key: string]: IClientEntity;
|
|
20
20
|
};
|
|
21
21
|
designations?: {
|
|
22
|
-
[key: string]:
|
|
22
|
+
[key: string]: IDesignationEntity;
|
|
23
23
|
};
|
|
24
24
|
rates?: {
|
|
25
25
|
[key: string]: IRateApiEntity;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
2
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
3
|
-
export interface ICountryEntity extends
|
|
3
|
+
export interface ICountryEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
2
|
import { IApiEntity, IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
3
|
-
export interface IDesignationEntity extends
|
|
3
|
+
export interface IDesignationEntity 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 { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
3
|
-
export interface IIndustryEntity extends
|
|
3
|
+
export interface IIndustryEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
name: string;
|
|
6
6
|
description?: string;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IDesignationEntity } from "../interface/designation.entity.interface";
|
|
2
2
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
3
|
import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
-
export declare class DesignationEntityModel extends BaseEntityModel<EntityEnum.DESIGNATION> implements
|
|
4
|
+
export declare class DesignationEntityModel extends BaseEntityModel<EntityEnum.DESIGNATION> implements IDesignationEntity {
|
|
5
5
|
id: number;
|
|
6
6
|
name: string;
|
|
7
7
|
description?: string;
|
|
8
8
|
createdBy: number;
|
|
9
|
-
createdOn:
|
|
9
|
+
createdOn: number;
|
|
10
10
|
updatedBy: number;
|
|
11
|
-
updatedOn:
|
|
12
|
-
static
|
|
11
|
+
updatedOn: number;
|
|
12
|
+
static fromEntity(entity: IDesignationEntity): DesignationEntityModel;
|
|
13
13
|
getRelationConfigs(): any[];
|
|
14
14
|
}
|
|
@@ -9,9 +9,9 @@ class DesignationEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
9
9
|
this.id = 0;
|
|
10
10
|
this.name = "";
|
|
11
11
|
this.createdBy = 0;
|
|
12
|
-
this.createdOn =
|
|
12
|
+
this.createdOn = 0;
|
|
13
13
|
this.updatedBy = 0;
|
|
14
|
-
this.updatedOn =
|
|
14
|
+
this.updatedOn = 0;
|
|
15
15
|
}
|
|
16
16
|
// constructor(data: IDesignationApiEntity) {
|
|
17
17
|
// this.id = data.id;
|
|
@@ -22,10 +22,10 @@ class DesignationEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
22
22
|
// this.updatedBy = data.updatedBy;
|
|
23
23
|
// this.updatedOn = data.updatedOn;
|
|
24
24
|
// }
|
|
25
|
-
static
|
|
26
|
-
const
|
|
27
|
-
Object.assign(
|
|
28
|
-
return
|
|
25
|
+
static fromEntity(entity) {
|
|
26
|
+
const result = new DesignationEntityModel(entity_utils_interface_1.EntityEnum.DESIGNATION);
|
|
27
|
+
Object.assign(result, entity);
|
|
28
|
+
return result;
|
|
29
29
|
}
|
|
30
30
|
getRelationConfigs() {
|
|
31
31
|
return this.constructor.prototype.constructor.relationConfigs || [];
|
package/package.json
CHANGED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import { IDesignationApiEntity } from "../../entities";
|
|
2
|
-
import { IBaseResponse } from "./base.response.interface";
|
|
3
|
-
export type IDesignationApiEntityResponse = IBaseResponse<IDesignationApiEntity>;
|
|
4
|
-
export type IDesignationApiEntityResponseArray = IBaseResponse<IDesignationApiEntity[]>;
|