law-common 10.67.2-beta.0 → 10.68.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/README.md +1 -1
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +1 -0
- package/dist/src/api/interface/billing.create.dto.interface.d.ts +2 -2
- package/dist/src/api/interface/project-revenue-split.create.dto.d.ts +7 -0
- package/dist/src/api/interface/project-revenue-split.create.dto.js +2 -0
- package/dist/src/api/interface/project.entity.response.d.ts +2 -1
- package/dist/src/entities/enums/billing-type.enum.js +0 -1
- package/dist/src/entities/enums/project-revenue-split-mapping-status.enum.d.ts +4 -0
- package/dist/src/entities/enums/project-revenue-split-mapping-status.enum.js +8 -0
- package/dist/src/entities/enums/project-revenue-split.enum.d.ts +4 -0
- package/dist/src/entities/enums/project-revenue-split.enum.js +8 -0
- package/dist/src/entities/index.d.ts +4 -0
- package/dist/src/entities/index.js +4 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +6 -3
- package/dist/src/entities/interface/entity.utils.interface.js +1 -0
- package/dist/src/entities/interface/project-revenue-split-mapping.entity.d.ts +9 -0
- package/dist/src/entities/interface/project-revenue-split-mapping.entity.js +2 -0
- package/dist/src/entities/interface/project.entity.interface.d.ts +6 -0
- package/dist/src/entities/model/entity.model.interface.js +2 -0
- package/dist/src/entities/model/project-revenue-split-mapping.model.d.ts +25 -0
- package/dist/src/entities/model/project-revenue-split-mapping.model.js +57 -0
- package/dist/src/entities/model/project.entity.model.d.ts +2 -0
- package/dist/src/entities/model/project.entity.model.js +2 -0
- package/package.json +41 -41
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# law-common
|
|
1
|
+
# law-common
|
package/dist/src/api/index.d.ts
CHANGED
|
@@ -86,3 +86,4 @@ export * from "./interface/client_quote.create.dto.interface";
|
|
|
86
86
|
export * from "./interface/client_quote.update.dto.interface";
|
|
87
87
|
export * from "./interface/client_quote_rate.create.dto.interface";
|
|
88
88
|
export * from "./interface/client_quote_rate.update.dto.interface";
|
|
89
|
+
export * from "./interface/project-revenue-split.create.dto";
|
package/dist/src/api/index.js
CHANGED
|
@@ -106,3 +106,4 @@ __exportStar(require("./interface/client_quote.create.dto.interface"), exports);
|
|
|
106
106
|
__exportStar(require("./interface/client_quote.update.dto.interface"), exports);
|
|
107
107
|
__exportStar(require("./interface/client_quote_rate.create.dto.interface"), exports);
|
|
108
108
|
__exportStar(require("./interface/client_quote_rate.update.dto.interface"), exports);
|
|
109
|
+
__exportStar(require("./interface/project-revenue-split.create.dto"), exports);
|
|
@@ -12,8 +12,8 @@ export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>
|
|
|
12
12
|
export interface IBillingParticulars {
|
|
13
13
|
invoiceDescription: string;
|
|
14
14
|
invoiceText?: string;
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
opeText?: string;
|
|
16
|
+
includeOpeSummary: boolean;
|
|
17
17
|
includePONumber: 0 | 1;
|
|
18
18
|
includeGSTNumber: 0 | 1;
|
|
19
19
|
poNumber: Nullable<string>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityEnum, EnumEntityType, IEntityCreateDto } from "../../entities";
|
|
2
|
+
export interface IProjectRevenueSplitMappingCreateDto extends IEntityCreateDto<EnumEntityType<EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING>> {
|
|
3
|
+
}
|
|
4
|
+
export interface IProjectRevenueSplitData {
|
|
5
|
+
userId: number;
|
|
6
|
+
splitPercentage: number;
|
|
7
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectUserDto, IRateEntity, IUserEntity } from "../../entities";
|
|
1
|
+
import { IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectRevenueSplitMappingEntity, IProjectUserDto, IRateEntity, IUserEntity } from "../../entities";
|
|
2
2
|
export interface IProjectUserDtoResponse extends IProjectUserDto {
|
|
3
3
|
updatedOn: string;
|
|
4
4
|
}
|
|
5
5
|
export interface IProjectEntityDependentResponse {
|
|
6
6
|
users: IProjectUserDtoResponse[];
|
|
7
|
+
revenueSplitData: IProjectRevenueSplitMappingEntity[];
|
|
7
8
|
}
|
|
8
9
|
export type IProjectApiEntityDependent = IProjectEntity & IProjectEntityDependentResponse & IProjectCreateDtoExtra;
|
|
9
10
|
export type IProjectEntityGet = {
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BillingTypeEnum = void 0;
|
|
4
4
|
var BillingTypeEnum;
|
|
5
5
|
(function (BillingTypeEnum) {
|
|
6
|
-
// DEBIT_NOTE = "debitNote",
|
|
7
6
|
BillingTypeEnum["INVOICE"] = "invoice";
|
|
8
7
|
BillingTypeEnum["BOTH"] = "both";
|
|
9
8
|
BillingTypeEnum["ADVANCE"] = "advance";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectRevenueSplitMappingStatus = void 0;
|
|
4
|
+
var ProjectRevenueSplitMappingStatus;
|
|
5
|
+
(function (ProjectRevenueSplitMappingStatus) {
|
|
6
|
+
ProjectRevenueSplitMappingStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
+
ProjectRevenueSplitMappingStatus["DELETED"] = "DELETED";
|
|
8
|
+
})(ProjectRevenueSplitMappingStatus || (exports.ProjectRevenueSplitMappingStatus = ProjectRevenueSplitMappingStatus = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectRevenueSplit = void 0;
|
|
4
|
+
var ProjectRevenueSplit;
|
|
5
|
+
(function (ProjectRevenueSplit) {
|
|
6
|
+
ProjectRevenueSplit["YES"] = "YES";
|
|
7
|
+
ProjectRevenueSplit["NO"] = "NO";
|
|
8
|
+
})(ProjectRevenueSplit || (exports.ProjectRevenueSplit = ProjectRevenueSplit = {}));
|
|
@@ -183,3 +183,7 @@ export * from "./enums/billing_profile.enum";
|
|
|
183
183
|
export * from "./enums/billing_profile_code.enum";
|
|
184
184
|
export * from "./interface/billing_profile.entity.interface";
|
|
185
185
|
export * from "./model/billing-profile.entity.model";
|
|
186
|
+
export * from "./enums/project-revenue-split-mapping-status.enum";
|
|
187
|
+
export * from "./enums/project-revenue-split.enum";
|
|
188
|
+
export * from "./interface/project-revenue-split-mapping.entity";
|
|
189
|
+
export * from "./model/project-revenue-split-mapping.model";
|
|
@@ -199,3 +199,7 @@ __exportStar(require("./enums/billing_profile.enum"), exports);
|
|
|
199
199
|
__exportStar(require("./enums/billing_profile_code.enum"), exports);
|
|
200
200
|
__exportStar(require("./interface/billing_profile.entity.interface"), exports);
|
|
201
201
|
__exportStar(require("./model/billing-profile.entity.model"), exports);
|
|
202
|
+
__exportStar(require("./enums/project-revenue-split-mapping-status.enum"), exports);
|
|
203
|
+
__exportStar(require("./enums/project-revenue-split.enum"), exports);
|
|
204
|
+
__exportStar(require("./interface/project-revenue-split-mapping.entity"), exports);
|
|
205
|
+
__exportStar(require("./model/project-revenue-split-mapping.model"), exports);
|
|
@@ -43,6 +43,7 @@ import { OrganizationEntityModel } from "../model/organization.entity.model";
|
|
|
43
43
|
import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
|
|
44
44
|
import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
|
|
45
45
|
import { PermissionEntityModel } from "../model/permissions.entity.model";
|
|
46
|
+
import { ProjectRevenueSplitMappingEntityModel } from "../model/project-revenue-split-mapping.model";
|
|
46
47
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
47
48
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
48
49
|
import { RateEntityModel } from "../model/rate.entity.model";
|
|
@@ -107,6 +108,7 @@ import { IOrganizationEntity } from "./organization.entity.interface";
|
|
|
107
108
|
import { IOrganizationTypeEntity } from "./organization_type.entity.interface";
|
|
108
109
|
import { IOrganizationTypeTdsRateMappingEntity } from "./organization_type_tds_rate_mapping.entity.interface";
|
|
109
110
|
import { IPermissionEntity } from "./permission.entity.interface";
|
|
111
|
+
import { IProjectRevenueSplitMappingEntity } from "./project-revenue-split-mapping.entity";
|
|
110
112
|
import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.interface";
|
|
111
113
|
import { IRateEntity } from "./rate.entity.interface";
|
|
112
114
|
import { IReimbursementEntity } from "./reimbursement.entity.interface";
|
|
@@ -236,7 +238,8 @@ export declare enum EntityEnum {
|
|
|
236
238
|
VENDOR_HISTORY = "vendor_history",
|
|
237
239
|
CLIENT_QUOTE = "client_quote",
|
|
238
240
|
CLIENT_QUOTE_RATE = "client_quote_rate",
|
|
239
|
-
BILLING_PROFILE = "billing_profile"
|
|
241
|
+
BILLING_PROFILE = "billing_profile",
|
|
242
|
+
PROJECT_REVENUE_SPLIT_MAPPING = "project_revenue_split_mapping"
|
|
240
243
|
}
|
|
241
244
|
export type EntityRelations = {
|
|
242
245
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -255,7 +258,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
255
258
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
256
259
|
};
|
|
257
260
|
};
|
|
258
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : never) & {
|
|
261
|
+
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? IProjectRevenueSplitMappingEntity : never) & {
|
|
259
262
|
id: number;
|
|
260
263
|
};
|
|
261
264
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -379,7 +382,7 @@ export declare enum VirtualEntityEnum {
|
|
|
379
382
|
}
|
|
380
383
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
381
384
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
382
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : 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.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.BILLING_PAYMENT ? BillingPaymentEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : UserEntityModel;
|
|
385
|
+
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : 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.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.BILLING_PAYMENT ? BillingPaymentEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? ProjectRevenueSplitMappingEntityModel : UserEntityModel;
|
|
383
386
|
export type EntityMap = {
|
|
384
387
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
385
388
|
};
|
|
@@ -98,6 +98,7 @@ var EntityEnum;
|
|
|
98
98
|
EntityEnum["CLIENT_QUOTE"] = "client_quote";
|
|
99
99
|
EntityEnum["CLIENT_QUOTE_RATE"] = "client_quote_rate";
|
|
100
100
|
EntityEnum["BILLING_PROFILE"] = "billing_profile";
|
|
101
|
+
EntityEnum["PROJECT_REVENUE_SPLIT_MAPPING"] = "project_revenue_split_mapping";
|
|
101
102
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
102
103
|
var VirtualEntityEnum;
|
|
103
104
|
(function (VirtualEntityEnum) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProjectRevenueSplitMappingStatus } from "../enums/project-revenue-split-mapping-status.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
export interface IProjectRevenueSplitMappingEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
projectId: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
splitPercentage: number;
|
|
8
|
+
status: ProjectRevenueSplitMappingStatus;
|
|
9
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { IProjectRevenueSplitData } from "../../api";
|
|
1
2
|
import { CurrencyEnum, TimeUnitEnum } from "../../enums";
|
|
3
|
+
import { ProjectRevenueSplit } from "../enums/project-revenue-split.enum";
|
|
2
4
|
import { ProjectBillingTypeEnum, ProjectStatusEnum } from "../enums/project.entity.enum";
|
|
3
5
|
import { ProjectUserStatusEnum } from "../enums/project_user_status.enum";
|
|
4
6
|
import { UserRoleEnum } from "../enums/user.entity.enum";
|
|
5
7
|
import { IClientEntity } from "./client.entity.interface";
|
|
6
8
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
7
9
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
10
|
+
import { IProjectRevenueSplitMappingEntity } from "./project-revenue-split-mapping.entity";
|
|
8
11
|
import { IUserEntity } from "./user.entity.interface";
|
|
9
12
|
export interface IProjectEntity extends IEntityAuditColumn {
|
|
10
13
|
id: number;
|
|
@@ -21,6 +24,7 @@ export interface IProjectEntity extends IEntityAuditColumn {
|
|
|
21
24
|
actualEndDate?: string;
|
|
22
25
|
billingOverdueDays?: number;
|
|
23
26
|
billToClientAffiliateId?: number | null;
|
|
27
|
+
revenueSplit: ProjectRevenueSplit;
|
|
24
28
|
}
|
|
25
29
|
export interface IProjectUserDto {
|
|
26
30
|
id: number;
|
|
@@ -29,6 +33,7 @@ export interface IProjectUserDto {
|
|
|
29
33
|
}
|
|
30
34
|
export interface IProjectEntityDependent {
|
|
31
35
|
users: IProjectUserDto[];
|
|
36
|
+
revenueSplitData: IProjectRevenueSplitData[];
|
|
32
37
|
}
|
|
33
38
|
export type IProjectExclude = "organizationId" | "billingRate";
|
|
34
39
|
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
@@ -73,6 +78,7 @@ export interface IProjectUserEntityFilterDto extends IEntityFilterData<IProjectU
|
|
|
73
78
|
export interface IProjectEntityUpdateDtoValidationData extends IProjectEntityCreateDtoValidationData {
|
|
74
79
|
projectEntity: IProjectEntity;
|
|
75
80
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
81
|
+
projectRevenueSplitMappingEntities: IProjectRevenueSplitMappingEntity[];
|
|
76
82
|
}
|
|
77
83
|
export interface IProjectEntityCreateDtoValidationData {
|
|
78
84
|
clientEntity: IClientEntity;
|
|
@@ -50,6 +50,7 @@ const organization_entity_model_1 = require("./organization.entity.model");
|
|
|
50
50
|
const organization_type_entity_model_1 = require("./organization_type.entity.model");
|
|
51
51
|
const organization_type_tds_rate_mapping_entity_model_1 = require("./organization_type_tds_rate_mapping.entity.model");
|
|
52
52
|
const permissions_entity_model_1 = require("./permissions.entity.model");
|
|
53
|
+
const project_revenue_split_mapping_model_1 = require("./project-revenue-split-mapping.model");
|
|
53
54
|
const project_user_mapping_entity_model_1 = require("./project-user-mapping.entity.model");
|
|
54
55
|
const project_entity_model_1 = require("./project.entity.model");
|
|
55
56
|
const rate_entity_model_1 = require("./rate.entity.model");
|
|
@@ -171,6 +172,7 @@ exports.entityEnumToEntityModel = {
|
|
|
171
172
|
[entity_utils_interface_1.EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION]: website_newsletter_subscription_entity_model_1.WebsiteNewsletterSubscriptionEntityModel.fromEntity,
|
|
172
173
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE]: client_quote_entity_model_1.ClientQuoteEntityModel.fromEntity,
|
|
173
174
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE_RATE]: client_quote_rate_entity_model_1.ClientQuoteRateEntityModel.fromEntity,
|
|
175
|
+
[entity_utils_interface_1.EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING]: project_revenue_split_mapping_model_1.ProjectRevenueSplitMappingEntityModel.fromEntity,
|
|
174
176
|
[entity_utils_interface_1.EntityEnum.BILLING_PROFILE]: billing_profile_entity_model_1.BillingProfileEntityModel.fromEntity,
|
|
175
177
|
};
|
|
176
178
|
function entityMapToModels(entityMap) {
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ProjectRevenueSplitMappingStatus } from "../enums/project-revenue-split-mapping-status.enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IProjectRevenueSplitMappingEntity } from "../interface/project-revenue-split-mapping.entity";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
import { ProjectEntityModel } from "./project.entity.model";
|
|
7
|
+
import { UserEntityModel } from "./user.entity.model";
|
|
8
|
+
export declare class ProjectRevenueSplitMappingEntityModel extends BaseEntityModel<EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING> implements IProjectRevenueSplitMappingEntity {
|
|
9
|
+
id: number;
|
|
10
|
+
projectId: number;
|
|
11
|
+
userId: number;
|
|
12
|
+
splitPercentage: number;
|
|
13
|
+
status: ProjectRevenueSplitMappingStatus;
|
|
14
|
+
createdBy: number;
|
|
15
|
+
updatedBy: number;
|
|
16
|
+
createdOn: number;
|
|
17
|
+
updatedOn: number;
|
|
18
|
+
project?: ProjectEntityModel;
|
|
19
|
+
user?: UserEntityModel;
|
|
20
|
+
static fromEntity(entity: IProjectRevenueSplitMappingEntity): ProjectRevenueSplitMappingEntityModel;
|
|
21
|
+
getRelationConfigs(): any[];
|
|
22
|
+
static relationConfigs: RelationConfigs<[EntityEnum.PROJECT, EntityEnum.USER], EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING>;
|
|
23
|
+
get projectModel(): ProjectEntityModel | undefined;
|
|
24
|
+
get userModel(): UserEntityModel | undefined;
|
|
25
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectRevenueSplitMappingEntityModel = void 0;
|
|
4
|
+
const project_revenue_split_mapping_status_enum_1 = require("../enums/project-revenue-split-mapping-status.enum");
|
|
5
|
+
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
6
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
7
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
8
|
+
class ProjectRevenueSplitMappingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.id = 0;
|
|
12
|
+
this.projectId = 0;
|
|
13
|
+
this.userId = 0;
|
|
14
|
+
this.splitPercentage = 0;
|
|
15
|
+
this.status = project_revenue_split_mapping_status_enum_1.ProjectRevenueSplitMappingStatus.ACTIVE;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
this.createdOn = 0;
|
|
19
|
+
this.updatedOn = 0;
|
|
20
|
+
}
|
|
21
|
+
static fromEntity(entity) {
|
|
22
|
+
const result = new ProjectRevenueSplitMappingEntityModel(entity_utils_interface_1.EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING);
|
|
23
|
+
Object.assign(result, entity);
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
getRelationConfigs() {
|
|
27
|
+
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
28
|
+
}
|
|
29
|
+
// Optional getters (same pattern as your Bank model)
|
|
30
|
+
get projectModel() {
|
|
31
|
+
return this.project;
|
|
32
|
+
}
|
|
33
|
+
get userModel() {
|
|
34
|
+
return this.user;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.ProjectRevenueSplitMappingEntityModel = ProjectRevenueSplitMappingEntityModel;
|
|
38
|
+
ProjectRevenueSplitMappingEntityModel.relationConfigs = [
|
|
39
|
+
{
|
|
40
|
+
name: entity_utils_interface_1.EntityEnum.PROJECT,
|
|
41
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
42
|
+
key: "project",
|
|
43
|
+
mapKeyConfig: {
|
|
44
|
+
relationKey: "id",
|
|
45
|
+
key: "projectId",
|
|
46
|
+
},
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: entity_utils_interface_1.EntityEnum.USER,
|
|
50
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
51
|
+
key: "user",
|
|
52
|
+
mapKeyConfig: {
|
|
53
|
+
relationKey: "id",
|
|
54
|
+
key: "userId",
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CurrencyEnum } from "../../enums";
|
|
2
|
+
import { ProjectRevenueSplit } from "../enums/project-revenue-split.enum";
|
|
2
3
|
import { ProjectBillingTypeEnum, ProjectStatusEnum } from "../enums/project.entity.enum";
|
|
3
4
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
4
5
|
import { IProjectEntity, IProjectUserDto } from "../interface/project.entity.interface";
|
|
@@ -25,6 +26,7 @@ export declare class ProjectEntityModel extends BaseEntityModel<EntityEnum.PROJE
|
|
|
25
26
|
createdOn: number;
|
|
26
27
|
updatedOn: number;
|
|
27
28
|
billToClientAffiliateId?: number | null;
|
|
29
|
+
revenueSplit: ProjectRevenueSplit;
|
|
28
30
|
users?: IProjectUserDto[];
|
|
29
31
|
billingOverdueDays?: number;
|
|
30
32
|
userMappings?: (UserEntityModel & ProjectUserMappingEntityModel)[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProjectEntityModel = void 0;
|
|
4
4
|
const enums_1 = require("../../enums");
|
|
5
|
+
const project_revenue_split_enum_1 = require("../enums/project-revenue-split.enum");
|
|
5
6
|
const project_entity_enum_1 = require("../enums/project.entity.enum");
|
|
6
7
|
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
7
8
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
@@ -23,6 +24,7 @@ class ProjectEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
23
24
|
this.createdOn = 0;
|
|
24
25
|
this.updatedOn = 0;
|
|
25
26
|
this.billToClientAffiliateId = null;
|
|
27
|
+
this.revenueSplit = project_revenue_split_enum_1.ProjectRevenueSplit.NO;
|
|
26
28
|
this.users = [];
|
|
27
29
|
this.client = {};
|
|
28
30
|
}
|
package/package.json
CHANGED
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "10.
|
|
4
|
-
"description": "",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"files": [
|
|
7
|
-
"dist/**/*"
|
|
8
|
-
],
|
|
9
|
-
"scripts": {
|
|
10
|
-
"clean": "rm -rf dist",
|
|
11
|
-
"build": "npm run clean && tsc",
|
|
12
|
-
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta && npm run link",
|
|
13
|
-
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
-
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
-
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
-
"link": "npm run build && npm link",
|
|
17
|
-
"test": "jest",
|
|
18
|
-
"format": "prettier --write .",
|
|
19
|
-
"check-format": "prettier --check .",
|
|
20
|
-
"pull:link": "git pull && npm run link"
|
|
21
|
-
},
|
|
22
|
-
"keywords": [],
|
|
23
|
-
"author": "",
|
|
24
|
-
"license": "ISC",
|
|
25
|
-
"devDependencies": {
|
|
26
|
-
"@types/jest": "^29.5.13",
|
|
27
|
-
"@types/lodash": "^4.17.21",
|
|
28
|
-
"@types/node": "^22.6.1",
|
|
29
|
-
"jest": "^29.7.0",
|
|
30
|
-
"prettier": "3.8.1",
|
|
31
|
-
"ts-jest": "^29.2.5",
|
|
32
|
-
"ts-node": "^10.9.2",
|
|
33
|
-
"typescript": "^5.6.2"
|
|
34
|
-
},
|
|
35
|
-
"dependencies": {
|
|
36
|
-
"@types/express": "^5.0.0",
|
|
37
|
-
"@types/multer": "^1.4.12",
|
|
38
|
-
"date-fns": "^4.1.0",
|
|
39
|
-
"lodash": "4.17.21"
|
|
40
|
-
}
|
|
41
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "law-common",
|
|
3
|
+
"version": "10.68.0",
|
|
4
|
+
"description": "",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"files": [
|
|
7
|
+
"dist/**/*"
|
|
8
|
+
],
|
|
9
|
+
"scripts": {
|
|
10
|
+
"clean": "rm -rf dist",
|
|
11
|
+
"build": "npm run clean && tsc",
|
|
12
|
+
"publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta && npm run link",
|
|
13
|
+
"publish:patch": "npm version patch && git push && npm run build && npm publish",
|
|
14
|
+
"publish:minor": "npm version minor && git push && npm run build && npm publish",
|
|
15
|
+
"publish:major": "npm version major && git push && npm run build && npm publish",
|
|
16
|
+
"link": "npm run build && npm link",
|
|
17
|
+
"test": "jest",
|
|
18
|
+
"format": "prettier --write .",
|
|
19
|
+
"check-format": "prettier --check .",
|
|
20
|
+
"pull:link": "git pull && npm run link"
|
|
21
|
+
},
|
|
22
|
+
"keywords": [],
|
|
23
|
+
"author": "",
|
|
24
|
+
"license": "ISC",
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"@types/jest": "^29.5.13",
|
|
27
|
+
"@types/lodash": "^4.17.21",
|
|
28
|
+
"@types/node": "^22.6.1",
|
|
29
|
+
"jest": "^29.7.0",
|
|
30
|
+
"prettier": "3.8.1",
|
|
31
|
+
"ts-jest": "^29.2.5",
|
|
32
|
+
"ts-node": "^10.9.2",
|
|
33
|
+
"typescript": "^5.6.2"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@types/express": "^5.0.0",
|
|
37
|
+
"@types/multer": "^1.4.12",
|
|
38
|
+
"date-fns": "^4.1.0",
|
|
39
|
+
"lodash": "4.17.21"
|
|
40
|
+
}
|
|
41
|
+
}
|