law-common 10.26.1-beta.2 → 10.26.1-beta.3
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 -1
- package/dist/src/api/index.js +2 -1
- package/dist/src/api/interface/billing.entity.response.d.ts +2 -3
- package/dist/src/api/interface/reimbursement.entity.response.d.ts +4 -2
- package/dist/src/entities/interface/billing-reimbursement-expense.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/reimbursement.entity.interface.d.ts +2 -2
- package/dist/src/entities/model/billing-reimbursement-expense.entity.model.d.ts +5 -5
- package/dist/src/entities/model/billing-reimbursement-expense.entity.model.js +6 -6
- package/dist/src/entities/model/entity.model.interface.js +1 -1
- package/dist/src/entities/model/reimbursement.entity.model.d.ts +5 -5
- package/dist/src/entities/model/reimbursement.entity.model.js +6 -6
- package/package.json +1 -1
- package/dist/src/api/interface/billing-reimbursement-expense.api.d.ts +0 -3
- package/dist/src/api/interface/billing-reimbursement-expense.api.js +0 -2
package/dist/src/api/index.d.ts
CHANGED
|
@@ -58,5 +58,4 @@ export * from "./interface/work.from.home.update.interface";
|
|
|
58
58
|
export * from "./interface/work_from_home_history.api";
|
|
59
59
|
export * from "./interface/cron-job-manual-trigger.dto.interface";
|
|
60
60
|
export * from "./interface/cron-job.entity.response";
|
|
61
|
-
export * from "./interface/billing-reimbursement-expense.api";
|
|
62
61
|
export * from "./interface/billing-reimbursement-expense-history.api";
|
package/dist/src/api/index.js
CHANGED
|
@@ -74,6 +74,7 @@ __exportStar(require("./interface/work.from.home.update.interface"), exports);
|
|
|
74
74
|
__exportStar(require("./interface/work_from_home_history.api"), exports);
|
|
75
75
|
__exportStar(require("./interface/cron-job-manual-trigger.dto.interface"), exports);
|
|
76
76
|
__exportStar(require("./interface/cron-job.entity.response"), exports);
|
|
77
|
-
|
|
77
|
+
// export * from "./interface/to-do.entity.api";
|
|
78
|
+
// export * from "./interface/billing-reimbursement-expense.api";
|
|
78
79
|
__exportStar(require("./interface/billing-reimbursement-expense-history.api"), exports);
|
|
79
80
|
// export * from "./interface/project-user-mapping.entity.api";
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { BillingActionsEnum, BillingStatusEnum, IBillingEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
|
|
2
|
-
import { IBillingReimbursementExpenseApiEntity } from "./billing-reimbursement-expense.api";
|
|
1
|
+
import { BillingActionsEnum, BillingStatusEnum, IBillingEntity, IBillingReimbursementExpenseEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
|
|
3
2
|
import { IBillingApiEntity } from "./billing.entity.api";
|
|
4
3
|
import { IUpdateBillingDto } from "./billing.update.dto.interface";
|
|
5
4
|
export type IBillingEntityResponse = {
|
|
6
5
|
billing: IBillingApiEntity;
|
|
6
|
+
billingReimbursementExpenses?: IBillingReimbursementExpenseEntity[];
|
|
7
7
|
billingTimesheets?: IBillingTimesheetEntity[];
|
|
8
|
-
billingReimbursementExpenses?: IBillingReimbursementExpenseApiEntity[];
|
|
9
8
|
};
|
|
10
9
|
export interface IUserEntityRelation {
|
|
11
10
|
users?: IUserEntity[];
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import { IReimbursementEntity, IReimbursementExpenseEntity, IUserEntity, ReimbursementActionEnum, ReimbursementExpenseActionEnum, ReimbursementExpenseState, ReimbursementStatusEnum } from "../../entities";
|
|
1
|
+
import { IApiEntity, IReimbursementEntity, IReimbursementExpenseEntity, IUserEntity, ReimbursementActionEnum, ReimbursementExpenseActionEnum, ReimbursementExpenseState, ReimbursementStatusEnum } from "../../entities";
|
|
2
2
|
import { IProjectEntityGet } from "./project.entity.response";
|
|
3
3
|
import { IReimbursementExpenseApiEntityArray } from "./reimbursement_expense.api";
|
|
4
|
+
export type IReimbursementApiEntity = IApiEntity<IReimbursementEntity>;
|
|
5
|
+
export type IReimbursementApiEntityArray = IReimbursementApiEntity[];
|
|
4
6
|
export type IReimbursementEntityGet = {
|
|
5
7
|
reimbursements: IReimbursementResponse[];
|
|
6
8
|
users: {
|
|
@@ -33,6 +35,6 @@ export type IReimbursementFlowConfig = {
|
|
|
33
35
|
export type IReimbursementFlowContextData = {
|
|
34
36
|
expenseDetails: IReimbursementExpenseEntity[];
|
|
35
37
|
};
|
|
36
|
-
export type IReimbursementResponse =
|
|
38
|
+
export type IReimbursementResponse = IReimbursementApiEntity & {
|
|
37
39
|
expenseDetails: IReimbursementExpenseApiEntityArray;
|
|
38
40
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { BillingReimbursementExpenseImpactEnum } from "../enums/billing-reimburement-expense-impact.enum";
|
|
2
2
|
import { BillingReimbursementExpenseChangedStatusEnum } from "../enums/billing-reimbursement-expense-change-status.enum";
|
|
3
|
-
import {
|
|
3
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
4
4
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
5
|
-
export interface IBillingReimbursementExpenseEntity extends
|
|
5
|
+
export interface IBillingReimbursementExpenseEntity extends IEntityAuditColumn {
|
|
6
6
|
id: number;
|
|
7
7
|
billingId: number;
|
|
8
8
|
userId: number;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReimbursementActionEnum, ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementExpenseActionEnum, ReimbursementExpenseState, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
3
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
4
4
|
import { IProjectUserMappingEntity } from "./project.entity.interface";
|
|
5
|
-
export interface IReimbursementEntity extends
|
|
5
|
+
export interface IReimbursementEntity extends IAuditColumnEntity {
|
|
6
6
|
id: number;
|
|
7
7
|
billingType: ReimbursementBillingTypeEnum;
|
|
8
8
|
billDate: string;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { IBillingReimbursementExpenseApiEntity } from "../../api";
|
|
2
1
|
import { BillingReimbursementExpenseImpactEnum } from "../enums/billing-reimburement-expense-impact.enum";
|
|
3
2
|
import { BillingReimbursementExpenseChangedStatusEnum } from "../enums/billing-reimbursement-expense-change-status.enum";
|
|
3
|
+
import { IBillingReimbursementExpenseEntity } from "../interface/billing-reimbursement-expense.entity.interface";
|
|
4
4
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
5
5
|
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
-
export declare class BillingReimbursementExpneseEntityModel extends BaseEntityModel<EntityEnum.BILLING_REIMBURSEMENT_EXPENSE> implements
|
|
6
|
+
export declare class BillingReimbursementExpneseEntityModel extends BaseEntityModel<EntityEnum.BILLING_REIMBURSEMENT_EXPENSE> implements IBillingReimbursementExpenseEntity {
|
|
7
7
|
id: number;
|
|
8
8
|
billingId: number;
|
|
9
9
|
userId: number;
|
|
@@ -17,9 +17,9 @@ export declare class BillingReimbursementExpneseEntityModel extends BaseEntityMo
|
|
|
17
17
|
impact?: BillingReimbursementExpenseImpactEnum;
|
|
18
18
|
updatedBy: number;
|
|
19
19
|
createdBy: number;
|
|
20
|
-
createdOn:
|
|
21
|
-
updatedOn:
|
|
20
|
+
createdOn: number;
|
|
21
|
+
updatedOn: number;
|
|
22
22
|
static relationConfigs: never[];
|
|
23
23
|
getRelationConfigs(): any[];
|
|
24
|
-
static fromApiEntity(
|
|
24
|
+
static fromApiEntity(entity: IBillingReimbursementExpenseEntity): BillingReimbursementExpneseEntityModel;
|
|
25
25
|
}
|
|
@@ -19,16 +19,16 @@ class BillingReimbursementExpneseEntityModel extends base_entity_model_1.BaseEnt
|
|
|
19
19
|
this.amendmentPurpose = "";
|
|
20
20
|
this.updatedBy = 0;
|
|
21
21
|
this.createdBy = 0;
|
|
22
|
-
this.createdOn =
|
|
23
|
-
this.updatedOn =
|
|
22
|
+
this.createdOn = 0;
|
|
23
|
+
this.updatedOn = 0;
|
|
24
24
|
}
|
|
25
25
|
getRelationConfigs() {
|
|
26
26
|
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
27
27
|
}
|
|
28
|
-
static fromApiEntity(
|
|
29
|
-
const
|
|
30
|
-
Object.assign(
|
|
31
|
-
return
|
|
28
|
+
static fromApiEntity(entity) {
|
|
29
|
+
const result = new BillingReimbursementExpneseEntityModel(entity_utils_interface_1.EntityEnum.BILLING_REIMBURSEMENT_EXPENSE);
|
|
30
|
+
Object.assign(result, entity);
|
|
31
|
+
return result;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
34
|
exports.BillingReimbursementExpneseEntityModel = BillingReimbursementExpneseEntityModel;
|
|
@@ -55,7 +55,7 @@ function parseEntities(json, baseEntity, entityMap) {
|
|
|
55
55
|
[entity_utils_interface_1.EntityEnum.BILLING]: billing_entity_model_1.BillingEntityModel.fromApiEntity,
|
|
56
56
|
[entity_utils_interface_1.EntityEnum.USER]: user_entity_model_1.UserEntityModel.fromEntity,
|
|
57
57
|
[entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING]: project_user_mapping_entity_model_1.ProjectUserMappingEntityModel.fromEntity,
|
|
58
|
-
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT]: reimbursement_entity_model_1.ReimbursementEntityModel.
|
|
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
61
|
[entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.fromEntity,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { IReimbursementApiEntity } from "../../api";
|
|
1
2
|
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
2
3
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
import { IReimbursementEntity } from "../interface/reimbursement.entity.interface";
|
|
4
4
|
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
-
export declare class ReimbursementEntityModel extends BaseEntityModel<EntityEnum.REIMBURSEMENT> implements
|
|
5
|
+
export declare class ReimbursementEntityModel extends BaseEntityModel<EntityEnum.REIMBURSEMENT> implements IReimbursementApiEntity {
|
|
6
6
|
id: number;
|
|
7
7
|
billingType: ReimbursementBillingTypeEnum;
|
|
8
8
|
billDate: string;
|
|
@@ -24,9 +24,9 @@ export declare class ReimbursementEntityModel extends BaseEntityModel<EntityEnum
|
|
|
24
24
|
bankId?: number;
|
|
25
25
|
createdBy: number;
|
|
26
26
|
updatedBy: number;
|
|
27
|
-
createdOn:
|
|
28
|
-
updatedOn:
|
|
27
|
+
createdOn: string;
|
|
28
|
+
updatedOn: string;
|
|
29
29
|
static relationConfigs: never[];
|
|
30
30
|
getRelationConfigs(): any[];
|
|
31
|
-
static
|
|
31
|
+
static fromApiEntity(apiEntity: IReimbursementApiEntity): ReimbursementEntityModel;
|
|
32
32
|
}
|
|
@@ -18,16 +18,16 @@ class ReimbursementEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
18
18
|
this.paymentStatus = reimbursement_entity_enum_1.ReimbursementPaymentStatusEnum.UNPAID;
|
|
19
19
|
this.createdBy = 0;
|
|
20
20
|
this.updatedBy = 0;
|
|
21
|
-
this.createdOn =
|
|
22
|
-
this.updatedOn =
|
|
21
|
+
this.createdOn = "";
|
|
22
|
+
this.updatedOn = "";
|
|
23
23
|
}
|
|
24
24
|
getRelationConfigs() {
|
|
25
25
|
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
26
26
|
}
|
|
27
|
-
static
|
|
28
|
-
const
|
|
29
|
-
Object.assign(
|
|
30
|
-
return
|
|
27
|
+
static fromApiEntity(apiEntity) {
|
|
28
|
+
const entity = new ReimbursementEntityModel(entity_utils_interface_1.EntityEnum.REIMBURSEMENT);
|
|
29
|
+
Object.assign(entity, apiEntity);
|
|
30
|
+
return entity;
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
exports.ReimbursementEntityModel = ReimbursementEntityModel;
|
package/package.json
CHANGED
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { IApiEntity, IBillingReimbursementExpenseEntity } from "../../entities";
|
|
2
|
-
export type IBillingReimbursementExpenseApiEntity = IApiEntity<IBillingReimbursementExpenseEntity>;
|
|
3
|
-
export type IBillingReimbursementExpenseApiEntityArray = IBillingReimbursementExpenseApiEntity[];
|