law-common 10.18.1-beta.12 → 10.18.1-beta.14
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.
|
@@ -3,6 +3,7 @@ import { ConvertToArray } from "../../misc";
|
|
|
3
3
|
import { Modify } from "../../misc/interface/modify.interface";
|
|
4
4
|
import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constraint_type.enum";
|
|
5
5
|
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
6
|
+
import { BankEntityModel } from "../model/bank.entity.model";
|
|
6
7
|
import { BillingReimbursementExpneseEntityModel } from "../model/billing-reimbursement-expense.entity.model";
|
|
7
8
|
import { BillingEntityModel } from "../model/billing.entity.model";
|
|
8
9
|
import { ClientAffiliateEntityModel } from "../model/client-affiliate.entity.model";
|
|
@@ -276,7 +277,7 @@ export declare enum VirtualEntityEnum {
|
|
|
276
277
|
}
|
|
277
278
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
278
279
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
279
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : UserEntityModel;
|
|
280
|
+
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : UserEntityModel;
|
|
280
281
|
export type EntityMap = {
|
|
281
282
|
[key in EntityEnum]: EnumToModel<key>[];
|
|
282
283
|
};
|
|
@@ -7,6 +7,7 @@ import { BillingInvoiceTypeEnum } from "../enums/billing_invoice_type.enum";
|
|
|
7
7
|
import { PaymentStatusEnum } from "../enums/payment_status.enum";
|
|
8
8
|
import { EntityEnum, EnumEntityType } from "../interface/entity.utils.interface";
|
|
9
9
|
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
10
|
+
import { BankEntityModel } from "./bank.entity.model";
|
|
10
11
|
import { BaseEntityModel } from "./base.entity.model";
|
|
11
12
|
import { BillingReimbursementExpneseEntityModel } from "./billing-reimbursement-expense.entity.model";
|
|
12
13
|
import { ClientEntityModel } from "./client.entity.model";
|
|
@@ -55,12 +56,14 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
|
|
|
55
56
|
billOverdue?: boolean;
|
|
56
57
|
billingIdReimbursementExpense?: BillingReimbursementExpneseEntityModel[];
|
|
57
58
|
reimbursementExpense?: ReimbursementExpenseEntityModel[];
|
|
59
|
+
bank?: BankEntityModel[];
|
|
58
60
|
static relationConfigs: RelationConfigs<[
|
|
59
61
|
EntityEnum.PROJECT,
|
|
60
62
|
EntityEnum.CLIENT,
|
|
61
63
|
EntityEnum.USER,
|
|
62
64
|
EntityEnum.REIMBURSEMENT_EXPENSE,
|
|
63
|
-
EntityEnum.BILLING_REIMBURSEMENT_EXPENSE
|
|
65
|
+
EntityEnum.BILLING_REIMBURSEMENT_EXPENSE,
|
|
66
|
+
EntityEnum.BANK
|
|
64
67
|
], EnumEntityType<EntityEnum.BILLING>>;
|
|
65
68
|
static fromApiEntity(apiEntity: IBillingApiEntity): BillingEntityModel;
|
|
66
69
|
getStatusCategory(): BillingStatusCategoryEnumForUI;
|
|
@@ -225,4 +225,13 @@ BillingEntityModel.relationConfigs = [
|
|
|
225
225
|
key: "id",
|
|
226
226
|
},
|
|
227
227
|
},
|
|
228
|
+
{
|
|
229
|
+
name: entity_utils_interface_1.EntityEnum.BANK,
|
|
230
|
+
relation: relation_type_enum_1.RelationType.MANY,
|
|
231
|
+
key: "bank",
|
|
232
|
+
mapKeyConfig: {
|
|
233
|
+
relationKey: "id",
|
|
234
|
+
key: "bankId",
|
|
235
|
+
},
|
|
236
|
+
},
|
|
228
237
|
];
|