law-common 10.26.1-beta.4 → 10.26.1-beta.6
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 -2
- package/dist/src/api/index.js +2 -2
- package/dist/src/api/interface/billing.entity.response.d.ts +2 -3
- package/dist/src/api/interface/billing.transaction.entity.response.d.ts +2 -4
- package/dist/src/api/interface/reimbursement.entity.response.d.ts +2 -4
- package/dist/src/entities/interface/billing-reimbursement-expense.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/billing_payment.entity.interface.d.ts +2 -2
- package/dist/src/entities/interface/billing_transaction.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/interface/billing.payment.entity.api.d.ts +0 -3
- package/dist/src/api/interface/billing.payment.entity.api.js +0 -2
package/dist/src/api/index.d.ts
CHANGED
|
@@ -25,7 +25,6 @@ export * from "./interface/bank.create.dto.interface";
|
|
|
25
25
|
export * from "./interface/bank.update.dto.interface";
|
|
26
26
|
export * from "./interface/bank.entity.response";
|
|
27
27
|
export * from "./interface/billing.payment.create.dto.interface";
|
|
28
|
-
export * from "./interface/billing.payment.entity.api";
|
|
29
28
|
export * from "./interface/billing.payment.update.dto.interface";
|
|
30
29
|
export * from "./interface/client.affiliate.create.dto.interface";
|
|
31
30
|
export * from "./interface/client.affiliate.update.dto.interface";
|
|
@@ -57,5 +56,4 @@ export * from "./interface/work.from.home.update.interface";
|
|
|
57
56
|
export * from "./interface/work_from_home_history.api";
|
|
58
57
|
export * from "./interface/cron-job-manual-trigger.dto.interface";
|
|
59
58
|
export * from "./interface/cron-job.entity.response";
|
|
60
|
-
export * from "./interface/billing-reimbursement-expense.api";
|
|
61
59
|
export * from "./interface/billing-reimbursement-expense-history.api";
|
package/dist/src/api/index.js
CHANGED
|
@@ -41,7 +41,6 @@ __exportStar(require("./interface/bank.create.dto.interface"), exports);
|
|
|
41
41
|
__exportStar(require("./interface/bank.update.dto.interface"), exports);
|
|
42
42
|
__exportStar(require("./interface/bank.entity.response"), exports);
|
|
43
43
|
__exportStar(require("./interface/billing.payment.create.dto.interface"), exports);
|
|
44
|
-
__exportStar(require("./interface/billing.payment.entity.api"), exports);
|
|
45
44
|
__exportStar(require("./interface/billing.payment.update.dto.interface"), exports);
|
|
46
45
|
__exportStar(require("./interface/client.affiliate.create.dto.interface"), exports);
|
|
47
46
|
__exportStar(require("./interface/client.affiliate.update.dto.interface"), exports);
|
|
@@ -73,6 +72,7 @@ __exportStar(require("./interface/work.from.home.update.interface"), exports);
|
|
|
73
72
|
__exportStar(require("./interface/work_from_home_history.api"), exports);
|
|
74
73
|
__exportStar(require("./interface/cron-job-manual-trigger.dto.interface"), exports);
|
|
75
74
|
__exportStar(require("./interface/cron-job.entity.response"), exports);
|
|
76
|
-
|
|
75
|
+
// export * from "./interface/to-do.entity.api";
|
|
76
|
+
// export * from "./interface/billing-reimbursement-expense.api";
|
|
77
77
|
__exportStar(require("./interface/billing-reimbursement-expense-history.api"), exports);
|
|
78
78
|
// export * from "./interface/project-user-mapping.entity.api";
|
|
@@ -1,10 +1,9 @@
|
|
|
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 { IUpdateBillingDto } from "./billing.update.dto.interface";
|
|
4
3
|
export type IBillingEntityResponse = {
|
|
5
4
|
billing: IBillingEntity;
|
|
5
|
+
billingReimbursementExpenses?: IBillingReimbursementExpenseEntity[];
|
|
6
6
|
billingTimesheets?: IBillingTimesheetEntity[];
|
|
7
|
-
billingReimbursementExpenses?: IBillingReimbursementExpenseApiEntity[];
|
|
8
7
|
};
|
|
9
8
|
export interface IUserEntityRelation {
|
|
10
9
|
users?: IUserEntity[];
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export type IBillingTransactionApiEntity = IApiEntity<IBillingTransactionEntity>;
|
|
3
|
-
export type IBillingTransactionApiEntityArray = IBillingTransactionApiEntity[];
|
|
1
|
+
import { IBillingEntity, IBillingTransactionEntity } from "../../entities";
|
|
4
2
|
export type IBillingTransactionEntityGet = {
|
|
5
|
-
billingTransaction:
|
|
3
|
+
billingTransaction: IBillingTransactionEntity;
|
|
6
4
|
billing: IBillingEntity;
|
|
7
5
|
};
|
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { 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[];
|
|
6
4
|
export type IReimbursementEntityGet = {
|
|
7
5
|
reimbursements: IReimbursementResponse[];
|
|
8
6
|
users: {
|
|
@@ -35,6 +33,6 @@ export type IReimbursementFlowConfig = {
|
|
|
35
33
|
export type IReimbursementFlowContextData = {
|
|
36
34
|
expenseDetails: IReimbursementExpenseEntity[];
|
|
37
35
|
};
|
|
38
|
-
export type IReimbursementResponse =
|
|
36
|
+
export type IReimbursementResponse = IReimbursementEntity & {
|
|
39
37
|
expenseDetails: IReimbursementExpenseApiEntityArray;
|
|
40
38
|
};
|
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
import { BillingPaymentType } from "../enums/billing.payment.type.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
3
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
-
export interface IBillingPaymentEntity extends
|
|
4
|
+
export interface IBillingPaymentEntity extends IEntityAuditColumn {
|
|
5
5
|
id: number;
|
|
6
6
|
billingId: number;
|
|
7
7
|
bankId: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BillingTransactionType } from "../enums/billing.transaction.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
3
|
import { IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
-
export interface IBillingTransactionEntity extends
|
|
4
|
+
export interface IBillingTransactionEntity extends IEntityAuditColumn {
|
|
5
5
|
id: number;
|
|
6
6
|
billingId: number;
|
|
7
7
|
type: BillingTransactionType;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { ReimbursementActionEnum, ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementExpenseActionEnum, ReimbursementExpenseState, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
2
|
-
import {
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.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 IEntityAuditColumn {
|
|
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.fromEntity,
|
|
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.fromEntity,
|
|
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";
|
|
2
1
|
import { ReimbursementBillingPresentEnum, ReimbursementBillingTypeEnum, ReimbursementIncurredByEnum, ReimbursementPaymentStatusEnum, ReimbursementStatusEnum } from "../enums/reimbursement.entity.enum";
|
|
3
2
|
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 IReimbursementEntity {
|
|
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: number;
|
|
28
|
+
updatedOn: number;
|
|
29
29
|
static relationConfigs: never[];
|
|
30
30
|
getRelationConfigs(): any[];
|
|
31
|
-
static
|
|
31
|
+
static fromEntity(entity: IReimbursementEntity): 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 = 0;
|
|
22
|
+
this.updatedOn = 0;
|
|
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 fromEntity(entity) {
|
|
28
|
+
const result = new ReimbursementEntityModel(entity_utils_interface_1.EntityEnum.REIMBURSEMENT);
|
|
29
|
+
Object.assign(result, entity);
|
|
30
|
+
return result;
|
|
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[];
|