law-common 10.21.2-beta.2 → 10.22.1-beta.0
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/interface/client.entity.response.d.ts +1 -1
- package/dist/src/api/interface/project.entity.response.d.ts +2 -3
- package/dist/src/entities/interface/client.entity.interface.d.ts +2 -1
- package/dist/src/entities/model/client.entity.model.d.ts +5 -5
- package/dist/src/entities/model/client.entity.model.js +2 -2
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { IApiEntity, IClientEntity, IClientEntityChildren, IClientEntityDependen
|
|
|
2
2
|
import { IUserApiEntity } from "./user.entity.api";
|
|
3
3
|
export type IClientApiEntity = IApiEntity<IClientEntity>;
|
|
4
4
|
export type IClientApiEntityArray = IClientApiEntity[];
|
|
5
|
-
export type IClientApiEntityDependent =
|
|
5
|
+
export type IClientApiEntityDependent = IClientEntity & IClientEntityDependent & IClientEntityChildren;
|
|
6
6
|
export type IClientEntityGet = {
|
|
7
7
|
clients: IClientApiEntityDependent[];
|
|
8
8
|
users: {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { IApiEntity, IDesignationApiEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectUserDto } from "../../entities";
|
|
2
|
-
import { IClientApiEntity } from "./client.entity.response";
|
|
1
|
+
import { IApiEntity, IClientEntity, IDesignationApiEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectUserDto } from "../../entities";
|
|
3
2
|
import { IRateApiEntity } from "./rate.entity.response";
|
|
4
3
|
import { IUserApiEntity } from "./user.entity.api";
|
|
5
4
|
export type IProjectApiEntity = IApiEntity<IProjectEntity>;
|
|
@@ -17,7 +16,7 @@ export type IProjectEntityGet = {
|
|
|
17
16
|
[key: string]: IUserApiEntity;
|
|
18
17
|
};
|
|
19
18
|
clients: {
|
|
20
|
-
[key: string]:
|
|
19
|
+
[key: string]: IClientEntity;
|
|
21
20
|
};
|
|
22
21
|
designations?: {
|
|
23
22
|
[key: string]: IDesignationApiEntity;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
2
3
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
3
|
-
export interface IClientEntity extends
|
|
4
|
+
export interface IClientEntity extends IEntityAuditColumn {
|
|
4
5
|
id: number;
|
|
5
6
|
name: string;
|
|
6
7
|
description?: string;
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IClientEntity } from "../interface/client.entity.interface";
|
|
2
2
|
import { EntityEnum, EnumEntityType } from "../interface/entity.utils.interface";
|
|
3
3
|
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
4
4
|
import { BaseEntityModel } from "./base.entity.model";
|
|
5
5
|
import { ProjectEntityModel } from "./project.entity.model";
|
|
6
|
-
export declare class ClientEntityModel extends BaseEntityModel<EntityEnum.CLIENT> implements
|
|
7
|
-
createdOn:
|
|
8
|
-
updatedOn:
|
|
6
|
+
export declare class ClientEntityModel extends BaseEntityModel<EntityEnum.CLIENT> implements IClientEntity {
|
|
7
|
+
createdOn: number;
|
|
8
|
+
updatedOn: number;
|
|
9
9
|
id: number;
|
|
10
10
|
name: string;
|
|
11
11
|
description?: string;
|
|
@@ -30,6 +30,6 @@ export declare class ClientEntityModel extends BaseEntityModel<EntityEnum.CLIENT
|
|
|
30
30
|
static relationConfigs: RelationConfigs<[
|
|
31
31
|
EntityEnum.PROJECT
|
|
32
32
|
], EnumEntityType<EntityEnum.CLIENT>>;
|
|
33
|
-
static fromApiEntity(apiEntity:
|
|
33
|
+
static fromApiEntity(apiEntity: IClientEntity): ClientEntityModel;
|
|
34
34
|
populateProjectIds(projects: ProjectEntityModel[]): ClientEntityModel;
|
|
35
35
|
}
|
|
@@ -7,8 +7,8 @@ const base_entity_model_1 = require("./base.entity.model");
|
|
|
7
7
|
class ClientEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
|
-
this.createdOn =
|
|
11
|
-
this.updatedOn =
|
|
10
|
+
this.createdOn = 0;
|
|
11
|
+
this.updatedOn = 0;
|
|
12
12
|
this.id = 0;
|
|
13
13
|
this.name = "";
|
|
14
14
|
this.primaryContactName = "";
|