law-common 12.5.0 → 12.6.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.
@@ -1,4 +1,4 @@
1
- import { BillingImpactEnum, BillingReimbursementExpenseChangedStatusEnum, BillingStatusEnum, IBillingEntity, IBillingProfileEntity, IBillingTimesheetEntity, IEntityCreateDto, IProjectEntity, ITimesheetEntity, Nullable } from "../../entities";
1
+ import { BillingImpactEnum, BillingReimbursementExpenseChangedStatusEnum, BillingStatusEnum, IBillingEntity, IBillingParticularLineItemCreateDto, IBillingProfileEntity, IBillingTimesheetEntity, IEntityCreateDto, IProjectEntity, ITimesheetEntity, Nullable } from "../../entities";
2
2
  import { IAppFileConfig } from "../../misc";
3
3
  export type IBillingCreateExclude = "paymentStatus" | "status" | "writeoffAmount" | "tdsAmount" | "totalAmountPaid" | "creditNoteAmount" | "refundAmount" | "invoicePdfUrl" | "startDate" | "endDate" | "invoiceNumber" | "draftInvoiceNumber";
4
4
  export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>, IBillingCreateExclude | "particulars"> {
@@ -6,13 +6,12 @@ export interface IBillingCreateDto extends Omit<IEntityCreateDto<IBillingEntity>
6
6
  status?: BillingStatusEnum;
7
7
  reimbursementExpenses?: IBillingReimbursementExpenseCreateDtoDetails[];
8
8
  particulars: IBillingParticulars;
9
+ billingParticularLineItems?: IBillingParticularLineItemCreateDto[];
9
10
  startDate?: string;
10
11
  endDate?: string;
11
12
  }
12
13
  export interface IBillingParticulars {
13
14
  invoiceDescription: string;
14
- invoiceText?: string;
15
- opeText?: string;
16
15
  includeOpeSummary: boolean;
17
16
  includePONumber: 0 | 1;
18
17
  includeGSTNumber: 0 | 1;
@@ -1,9 +1,10 @@
1
- import { BillingActionsEnum, BillingStatusEnum, EntityModelRelationHelper, IBillingEntity, IBillingReimbursementExpenseEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
1
+ import { BillingActionsEnum, BillingStatusEnum, EntityModelRelationHelper, IBillingEntity, IBillingParticularLineItemEntity, IBillingReimbursementExpenseEntity, IBillingTimesheetEntity, IProjectEntity, IUserEntity } from "../../entities";
2
2
  import { IUpdateBillingDto } from "./billing.update.dto.interface";
3
3
  export type IBillingEntityResponse = {
4
4
  billing: IBillingEntity;
5
5
  billingReimbursementExpenses?: IBillingReimbursementExpenseEntity[];
6
6
  billingTimesheets?: IBillingTimesheetEntity[];
7
+ billingParticularLineItems?: IBillingParticularLineItemEntity[];
7
8
  };
8
9
  export interface IUserEntityRelation {
9
10
  users?: IUserEntity[];
@@ -1,4 +1,5 @@
1
1
  import { BillingActionsEnum, IBillingEntity, IBillingProfileEntity, IBillingReimbursementExpenseUpdateDto, IBillingTimesheetUpdateDto, IEntityUpdateDto } from "../../entities";
2
+ import { IBillingParticularLineItemUpdateDto } from "../../entities/interface/billing_particular_line_item.entity.interface";
2
3
  import { IBillingEntityCreateDtoValidationData, IBillingParticulars } from "./billing.create.dto.interface";
3
4
  export type IBillingUpdateDtoExclude = "draftInvoiceNumber" | "invoiceNumber";
4
5
  export interface IBillingUpdateDto extends Omit<IEntityUpdateDto<IBillingEntity>, IBillingUpdateDtoExclude> {
@@ -8,6 +9,7 @@ export interface IUpdateBillingDto extends Omit<IBillingUpdateDto, "particulars"
8
9
  timesheets?: IBillingTimesheetUpdateDto[];
9
10
  reimbursementExpenses?: IBillingReimbursementExpenseUpdateDto[];
10
11
  particulars?: IBillingParticulars;
12
+ billingParticularLineItems?: IBillingParticularLineItemUpdateDto[];
11
13
  }
12
14
  export interface IBillingUpdateDtoValidationData extends IBillingEntityCreateDtoValidationData {
13
15
  billingEntity: IBillingEntity;
@@ -0,0 +1,6 @@
1
+ export declare enum BillingParticularLineItemChangedStatusEnum {
2
+ UNCHANGED = "unchanged",
3
+ UPDATED = "updated",
4
+ DELETED = "deleted",
5
+ NEW = "new"
6
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingParticularLineItemChangedStatusEnum = void 0;
4
+ var BillingParticularLineItemChangedStatusEnum;
5
+ (function (BillingParticularLineItemChangedStatusEnum) {
6
+ BillingParticularLineItemChangedStatusEnum["UNCHANGED"] = "unchanged";
7
+ BillingParticularLineItemChangedStatusEnum["UPDATED"] = "updated";
8
+ BillingParticularLineItemChangedStatusEnum["DELETED"] = "deleted";
9
+ BillingParticularLineItemChangedStatusEnum["NEW"] = "new";
10
+ })(BillingParticularLineItemChangedStatusEnum || (exports.BillingParticularLineItemChangedStatusEnum = BillingParticularLineItemChangedStatusEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum BillingParticularLineItemSourceEnum {
2
+ INVOICE = "invoice",
3
+ OPE = "ope",
4
+ NEW = "new"
5
+ }
@@ -0,0 +1,10 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingParticularLineItemSourceEnum = void 0;
4
+ // LW-773-billing-particular-line-item-source-enum
5
+ var BillingParticularLineItemSourceEnum;
6
+ (function (BillingParticularLineItemSourceEnum) {
7
+ BillingParticularLineItemSourceEnum["INVOICE"] = "invoice";
8
+ BillingParticularLineItemSourceEnum["OPE"] = "ope";
9
+ BillingParticularLineItemSourceEnum["NEW"] = "new";
10
+ })(BillingParticularLineItemSourceEnum || (exports.BillingParticularLineItemSourceEnum = BillingParticularLineItemSourceEnum = {}));
@@ -38,8 +38,8 @@ export * from "./interface/billing_history.entity.interface";
38
38
  export * from "./interface/billing_timesheet_history.entity.interface";
39
39
  export * from "./enums/history_operation.enum";
40
40
  export * from "./enums/timesheet.action.enum";
41
- export * from "./enums/timesheet.status.enum";
42
41
  export * from "./enums/timesheet.classification.status.enum";
42
+ export * from "./enums/timesheet.status.enum";
43
43
  export * from "./enums/billing.action.enum";
44
44
  export * from "./enums/configuration.type.enum";
45
45
  export * from "./enums/project_user_status.enum";
@@ -224,38 +224,42 @@ export * from "./interface/entity_history.entity.interface";
224
224
  export * from "./model/entity_history.entity.model";
225
225
  export * from "./enums/vendor_invoice_payment_mode_enum";
226
226
  export * from "./enums/vendor_invoice_payment_status_enum";
227
+ export * from "./flow-configs/vendor_invoice_payment_flow.config";
227
228
  export * from "./interface/vendor_invoice_payment.entity.interface";
228
229
  export * from "./model/vendor_invoice_payment.entity.model";
229
- export * from "./flow-configs/vendor_invoice_payment_flow.config";
230
230
  export * from "./enums/leave_approval_status_enum";
231
231
  export * from "./flow-configs/leave_approval_flow.config";
232
232
  export * from "./interface/leave_approval.entity.interface";
233
233
  export * from "./model/leave_approval.entity.model";
234
234
  export * from "./enums/vendor_tds_liability_paid_status_enum";
235
235
  export * from "./enums/vendor_tds_liability_status_enum";
236
+ export * from "./flow-configs/vendor_tds_liability_flow.config";
236
237
  export * from "./interface/vendor_tds_liability.entity.interface";
237
238
  export * from "./model/vendor_tds_liability.entity.model";
238
- export * from "./flow-configs/vendor_tds_liability_flow.config";
239
239
  export * from "./enums/vendor_tds_challan_status_enum";
240
+ export * from "./flow-configs/vendor_tds_challan_flow.config";
240
241
  export * from "./interface/vendor_tds_challan.entity.interface";
241
242
  export * from "./model/vendor_tds_challan.entity.model";
242
- export * from "./flow-configs/vendor_tds_challan_flow.config";
243
- export * from "./enums/vendor_advance_status_enum";
244
243
  export * from "./enums/vendor_advance_payment_mode";
244
+ export * from "./enums/vendor_advance_status_enum";
245
+ export * from "./flow-configs/vendor_advance_flow.config";
245
246
  export * from "./interface/vendor_advance.entity.interface";
246
247
  export * from "./model/vendor_advance.entity.model";
247
- export * from "./flow-configs/vendor_advance_flow.config";
248
248
  export * from "./enums/vendor_invoice_advance_status_enum";
249
+ export * from "./flow-configs/vendor_invoice_advance_flow.config";
249
250
  export * from "./interface/vendor_invoice_advance.entity.interface";
250
251
  export * from "./model/vendor_invoice_advance.entity.model";
251
- export * from "./flow-configs/vendor_invoice_advance_flow.config";
252
+ export * from "./enums/billing-particular-line-item.changed-status.enum";
253
+ export * from "./enums/billing-particular-line-item.source.enum";
254
+ export * from "./interface/billing_particular_line_item.entity.interface";
255
+ export * from "./model/billing-particular-line-item.entity.model";
252
256
  export * from "./enums/client_debit_note_status_enum";
257
+ export * from "./flow-configs/client_debit_note_flow.config";
253
258
  export * from "./interface/client_debit_note.entity.interface";
254
259
  export * from "./model/client_debit_note.entity.model";
255
- export * from "./flow-configs/client_debit_note_flow.config";
256
260
  export * from "./enums/client_debit_note_particulars_status_enum";
261
+ export * from "./flow-configs/client_debit_note_particulars_flow.config";
257
262
  export * from "./interface/client_debit_note_particulars.entity.interface";
258
263
  export * from "./model/client_debit_note_particulars.entity.model";
259
- export * from "./flow-configs/client_debit_note_particulars_flow.config";
260
264
  export * from "./interface/debit_note_sequence_generator.entity.interface";
261
265
  export * from "./model/debit_note_sequence_generator.entity.model";
@@ -54,8 +54,8 @@ __exportStar(require("./interface/billing_history.entity.interface"), exports);
54
54
  __exportStar(require("./interface/billing_timesheet_history.entity.interface"), exports);
55
55
  __exportStar(require("./enums/history_operation.enum"), exports);
56
56
  __exportStar(require("./enums/timesheet.action.enum"), exports);
57
- __exportStar(require("./enums/timesheet.status.enum"), exports);
58
57
  __exportStar(require("./enums/timesheet.classification.status.enum"), exports);
58
+ __exportStar(require("./enums/timesheet.status.enum"), exports);
59
59
  __exportStar(require("./enums/billing.action.enum"), exports);
60
60
  __exportStar(require("./enums/configuration.type.enum"), exports);
61
61
  __exportStar(require("./enums/project_user_status.enum"), exports);
@@ -240,38 +240,43 @@ __exportStar(require("./interface/entity_history.entity.interface"), exports);
240
240
  __exportStar(require("./model/entity_history.entity.model"), exports);
241
241
  __exportStar(require("./enums/vendor_invoice_payment_mode_enum"), exports);
242
242
  __exportStar(require("./enums/vendor_invoice_payment_status_enum"), exports);
243
+ __exportStar(require("./flow-configs/vendor_invoice_payment_flow.config"), exports);
243
244
  __exportStar(require("./interface/vendor_invoice_payment.entity.interface"), exports);
244
245
  __exportStar(require("./model/vendor_invoice_payment.entity.model"), exports);
245
- __exportStar(require("./flow-configs/vendor_invoice_payment_flow.config"), exports);
246
246
  __exportStar(require("./enums/leave_approval_status_enum"), exports);
247
247
  __exportStar(require("./flow-configs/leave_approval_flow.config"), exports);
248
248
  __exportStar(require("./interface/leave_approval.entity.interface"), exports);
249
249
  __exportStar(require("./model/leave_approval.entity.model"), exports);
250
250
  __exportStar(require("./enums/vendor_tds_liability_paid_status_enum"), exports);
251
251
  __exportStar(require("./enums/vendor_tds_liability_status_enum"), exports);
252
+ __exportStar(require("./flow-configs/vendor_tds_liability_flow.config"), exports);
252
253
  __exportStar(require("./interface/vendor_tds_liability.entity.interface"), exports);
253
254
  __exportStar(require("./model/vendor_tds_liability.entity.model"), exports);
254
- __exportStar(require("./flow-configs/vendor_tds_liability_flow.config"), exports);
255
255
  __exportStar(require("./enums/vendor_tds_challan_status_enum"), exports);
256
+ __exportStar(require("./flow-configs/vendor_tds_challan_flow.config"), exports);
256
257
  __exportStar(require("./interface/vendor_tds_challan.entity.interface"), exports);
257
258
  __exportStar(require("./model/vendor_tds_challan.entity.model"), exports);
258
- __exportStar(require("./flow-configs/vendor_tds_challan_flow.config"), exports);
259
- __exportStar(require("./enums/vendor_advance_status_enum"), exports);
260
259
  __exportStar(require("./enums/vendor_advance_payment_mode"), exports);
260
+ __exportStar(require("./enums/vendor_advance_status_enum"), exports);
261
+ __exportStar(require("./flow-configs/vendor_advance_flow.config"), exports);
261
262
  __exportStar(require("./interface/vendor_advance.entity.interface"), exports);
262
263
  __exportStar(require("./model/vendor_advance.entity.model"), exports);
263
- __exportStar(require("./flow-configs/vendor_advance_flow.config"), exports);
264
264
  __exportStar(require("./enums/vendor_invoice_advance_status_enum"), exports);
265
+ __exportStar(require("./flow-configs/vendor_invoice_advance_flow.config"), exports);
265
266
  __exportStar(require("./interface/vendor_invoice_advance.entity.interface"), exports);
266
267
  __exportStar(require("./model/vendor_invoice_advance.entity.model"), exports);
267
- __exportStar(require("./flow-configs/vendor_invoice_advance_flow.config"), exports);
268
+ // LW-773-billing-particular-line-item-exports
269
+ __exportStar(require("./enums/billing-particular-line-item.changed-status.enum"), exports);
270
+ __exportStar(require("./enums/billing-particular-line-item.source.enum"), exports);
271
+ __exportStar(require("./interface/billing_particular_line_item.entity.interface"), exports);
272
+ __exportStar(require("./model/billing-particular-line-item.entity.model"), exports);
268
273
  __exportStar(require("./enums/client_debit_note_status_enum"), exports);
274
+ __exportStar(require("./flow-configs/client_debit_note_flow.config"), exports);
269
275
  __exportStar(require("./interface/client_debit_note.entity.interface"), exports);
270
276
  __exportStar(require("./model/client_debit_note.entity.model"), exports);
271
- __exportStar(require("./flow-configs/client_debit_note_flow.config"), exports);
272
277
  __exportStar(require("./enums/client_debit_note_particulars_status_enum"), exports);
278
+ __exportStar(require("./flow-configs/client_debit_note_particulars_flow.config"), exports);
273
279
  __exportStar(require("./interface/client_debit_note_particulars.entity.interface"), exports);
274
280
  __exportStar(require("./model/client_debit_note_particulars.entity.model"), exports);
275
- __exportStar(require("./flow-configs/client_debit_note_particulars_flow.config"), exports);
276
281
  __exportStar(require("./interface/debit_note_sequence_generator.entity.interface"), exports);
277
282
  __exportStar(require("./model/debit_note_sequence_generator.entity.model"), exports);
@@ -0,0 +1,20 @@
1
+ import { BillingParticularLineItemChangedStatusEnum } from "../enums/billing-particular-line-item.changed-status.enum";
2
+ import { BillingParticularLineItemSourceEnum } from "../enums/billing-particular-line-item.source.enum";
3
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
4
+ import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
5
+ export interface IBillingParticularLineItemEntity extends IEntityAuditColumn {
6
+ id: number;
7
+ billingId: number;
8
+ description: string;
9
+ amount: number;
10
+ source: BillingParticularLineItemSourceEnum;
11
+ changedStatus: BillingParticularLineItemChangedStatusEnum;
12
+ order: number;
13
+ }
14
+ export type IBillingParticularsLineItemsExclude = "billingId";
15
+ export interface IBillingParticularLineItemCreateDto extends Omit<IEntityCreateDto<IBillingParticularLineItemEntity>, IBillingParticularsLineItemsExclude> {
16
+ }
17
+ export interface IBillingParticularLineItemUpdateDto extends IEntityUpdateDto<IBillingParticularLineItemEntity> {
18
+ }
19
+ export interface IBillingParticularLineItemEntityFilterData extends IEntityFilterData<IBillingParticularLineItemEntity> {
20
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -27,8 +27,8 @@ import { ClientQuoteRateEntityModel } from "../model/client_quote_rate.entity.mo
27
27
  import { ConfigurationEntityModel } from "../model/configuration.model";
28
28
  import { CountryEntityModel } from "../model/country.entity.model";
29
29
  import { CronJobsEntityModel } from "../model/cron_jobs.entity.model";
30
- import { DesignationEntityModel } from "../model/designation.entity.model";
31
30
  import { ClientDebitNoteSequenceGeneratorVirtualEntityModel } from "../model/debit_note_sequence_generator.entity.model";
31
+ import { DesignationEntityModel } from "../model/designation.entity.model";
32
32
  import { DocumentUploadEntityModel } from "../model/document_upload.entity.model";
33
33
  import { EntityHistoryEntityModel } from "../model/entity_history.entity.model";
34
34
  import { ExpenseHeadEntityModel } from "../model/expense_head.entity.model";
@@ -81,6 +81,7 @@ import { WebsiteLeadEntityModel } from "../model/website_lead.entity.model";
81
81
  import { WebsiteNewsletterSubscriptionEntityModel } from "../model/website_newsletter_subscription.entity.model";
82
82
  import { WorkFromHomeEntityModel } from "../model/work-from-home.entity.model";
83
83
  import { WorkFromHomeHistoryEntityModel } from "../model/work_from_home_history.entity.model";
84
+ import { BillingParticularLineItemEntityModel } from "../model/billing-particular-line-item.entity.model";
84
85
  import { IAddressBookEntity } from "./address-book.entity.interface";
85
86
  import { AggregationFields, IEntityAggregationConfig } from "./aggregation.utils";
86
87
  import { IBankEntity } from "./bank.entity.interface";
@@ -103,8 +104,8 @@ import { IClientQuoteRateEntity } from "./client_quote_rate.entity.interface";
103
104
  import { IConfigurationEntity } from "./configuration.entity.interface";
104
105
  import { ICountryEntity } from "./country.entity.interface";
105
106
  import { ICronJobsEntity } from "./cron-job.entity.interface";
106
- import { IDesignationEntity } from "./designation.entity.interface";
107
107
  import { IClientDebitNoteSequenceGenerator } from "./debit_note_sequence_generator.entity.interface";
108
+ import { IDesignationEntity } from "./designation.entity.interface";
108
109
  import { IDocumentUploadEntity } from "./document_upload.entity.interface";
109
110
  import { IEntityAuditColumn } from "./entity-audit-columns.interface";
110
111
  import { IEntityHistoryEntity } from "./entity_history.entity.interface";
@@ -156,6 +157,7 @@ import { IWebsiteLeadEntity } from "./website_lead.entity.interface";
156
157
  import { IWebsiteNewsletterSubscriptionEntity } from "./website_newsletter_subscription.entity.interface";
157
158
  import { IWorkFromHomeEntity } from "./work_from_home.entity.interface";
158
159
  import { IWorkFromHomeHistoryEntity } from "./work_from_home_history.entity.interface";
160
+ import { IBillingParticularLineItemEntity } from "./billing_particular_line_item.entity.interface";
159
161
  export type IApiEntity<T> = Modify<T, {
160
162
  createdOn: string;
161
163
  updatedOn: string;
@@ -268,6 +270,7 @@ export declare enum EntityEnum {
268
270
  VENDOR_TDS_CHALLAN = "vendor_tds_challan",
269
271
  VENDOR_ADVANCE = "vendor_advance",
270
272
  VENDOR_INVOICE_ADVANCE = "vendor_invoice_advance",
273
+ BILLING_PARTICULAR_LINE_ITEM = "billing_particular_line_item",
271
274
  CLIENT_DEBIT_NOTE = "client_debit_note",
272
275
  CLIENT_DEBIT_NOTE_PARTICULARS = "client_debit_note_particulars"
273
276
  }
@@ -294,7 +297,7 @@ export type IBaseEntityApiResponse<T> = {
294
297
  [key in EntityEnum | VirtualEntityEnum]?: AggregationFields<EnumToModel<key>>[];
295
298
  };
296
299
  };
297
- export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.MOVING_TIMESHEET ? IMovingTimesheetEntity : 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_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_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 : 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.ENTITY_HISTORY ? IEntityHistoryEntity : T extends EntityEnum.LEAVE_APPROVAL ? ILeaveApprovalEntity : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? IVendorInvoicePaymentEntity : T extends EntityEnum.VENDOR_TDS_LIABILITY ? IVendorTdsLiabilityEntity : T extends EntityEnum.VENDOR_TDS_CHALLAN ? IVendorTdsChallanEntity : T extends EntityEnum.VENDOR_ADVANCE ? IVendorAdvanceEntity : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? IVendorInvoiceAdvanceEntity : T extends EntityEnum.CLIENT_DEBIT_NOTE ? IClientDebitNoteEntity : T extends EntityEnum.CLIENT_DEBIT_NOTE_PARTICULARS ? IClientDebitNoteParticularsEntity : T extends VirtualEntityEnum.CLIENT_DEBIT_NOTE_SEQUENCE_GENERATOR ? IClientDebitNoteSequenceGenerator : never) & {
300
+ export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.MOVING_TIMESHEET ? IMovingTimesheetEntity : 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.BILLING_PARTICULAR_LINE_ITEM ? IBillingParticularLineItemEntity : 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_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_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 : 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.ENTITY_HISTORY ? IEntityHistoryEntity : T extends EntityEnum.LEAVE_APPROVAL ? ILeaveApprovalEntity : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? IVendorInvoicePaymentEntity : T extends EntityEnum.VENDOR_TDS_LIABILITY ? IVendorTdsLiabilityEntity : T extends EntityEnum.VENDOR_TDS_CHALLAN ? IVendorTdsChallanEntity : T extends EntityEnum.VENDOR_ADVANCE ? IVendorAdvanceEntity : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? IVendorInvoiceAdvanceEntity : T extends EntityEnum.BILLING_PARTICULAR_LINE_ITEM ? IBillingParticularLineItemEntity : T extends EntityEnum.CLIENT_DEBIT_NOTE ? IClientDebitNoteEntity : T extends EntityEnum.CLIENT_DEBIT_NOTE_PARTICULARS ? IClientDebitNoteParticularsEntity : T extends VirtualEntityEnum.CLIENT_DEBIT_NOTE_SEQUENCE_GENERATOR ? IClientDebitNoteSequenceGenerator : never) & {
298
301
  id: number;
299
302
  };
300
303
  export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
@@ -427,7 +430,7 @@ export declare enum VirtualEntityEnum {
427
430
  }
428
431
  export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
429
432
  export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
430
- 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.MOVING_TIMESHEET ? MovingTimesheetEntityModel : 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.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 : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ENTITY_HISTORY ? EntityHistoryEntityModel : T extends EntityEnum.LEAVE_APPROVAL ? LeaveApprovalEntityModel : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? VendorInvoicePaymentEntityModel : T extends EntityEnum.VENDOR_TDS_LIABILITY ? VendorTdsLiabilityEntityModel : T extends EntityEnum.VENDOR_TDS_CHALLAN ? VendorTdsChallanEntityModel : T extends EntityEnum.VENDOR_ADVANCE ? VendorAdvanceEntityModel : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? VendorInvoiceAdvanceEntityModel : T extends EntityEnum.CLIENT_DEBIT_NOTE ? ClientDebitNoteEntityModel : T extends EntityEnum.CLIENT_DEBIT_NOTE_PARTICULARS ? ClientDebitNoteParticularsEntityModel : T extends VirtualEntityEnum.CLIENT_DEBIT_NOTE_SEQUENCE_GENERATOR ? ClientDebitNoteSequenceGeneratorVirtualEntityModel : UserEntityModel;
433
+ 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.MOVING_TIMESHEET ? MovingTimesheetEntityModel : 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.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 : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ENTITY_HISTORY ? EntityHistoryEntityModel : T extends EntityEnum.LEAVE_APPROVAL ? LeaveApprovalEntityModel : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? VendorInvoicePaymentEntityModel : T extends EntityEnum.VENDOR_TDS_LIABILITY ? VendorTdsLiabilityEntityModel : T extends EntityEnum.VENDOR_TDS_CHALLAN ? VendorTdsChallanEntityModel : T extends EntityEnum.VENDOR_ADVANCE ? VendorAdvanceEntityModel : T extends EntityEnum.VENDOR_INVOICE_ADVANCE ? VendorInvoiceAdvanceEntityModel : T extends EntityEnum.BILLING_PARTICULAR_LINE_ITEM ? BillingParticularLineItemEntityModel : T extends EntityEnum.CLIENT_DEBIT_NOTE ? ClientDebitNoteEntityModel : T extends EntityEnum.CLIENT_DEBIT_NOTE_PARTICULARS ? ClientDebitNoteParticularsEntityModel : T extends VirtualEntityEnum.CLIENT_DEBIT_NOTE_SEQUENCE_GENERATOR ? ClientDebitNoteSequenceGeneratorVirtualEntityModel : UserEntityModel;
431
434
  export type EntityMap = {
432
435
  [key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
433
436
  } & {
@@ -106,6 +106,8 @@ var EntityEnum;
106
106
  EntityEnum["VENDOR_TDS_CHALLAN"] = "vendor_tds_challan";
107
107
  EntityEnum["VENDOR_ADVANCE"] = "vendor_advance";
108
108
  EntityEnum["VENDOR_INVOICE_ADVANCE"] = "vendor_invoice_advance";
109
+ // LW-773-billing-particular-line-item
110
+ EntityEnum["BILLING_PARTICULAR_LINE_ITEM"] = "billing_particular_line_item";
109
111
  EntityEnum["CLIENT_DEBIT_NOTE"] = "client_debit_note";
110
112
  EntityEnum["CLIENT_DEBIT_NOTE_PARTICULARS"] = "client_debit_note_particulars";
111
113
  })(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
@@ -0,0 +1,20 @@
1
+ import { BillingParticularLineItemChangedStatusEnum } from "../enums/billing-particular-line-item.changed-status.enum";
2
+ import { BillingParticularLineItemSourceEnum } from "../enums/billing-particular-line-item.source.enum";
3
+ import { IBillingParticularLineItemEntity } from "../interface/billing_particular_line_item.entity.interface";
4
+ import { EntityEnum } from "../interface/entity.utils.interface";
5
+ import { BaseEntityModel } from "./base.entity.model";
6
+ export declare class BillingParticularLineItemEntityModel extends BaseEntityModel<EntityEnum.BILLING_PARTICULAR_LINE_ITEM> implements IBillingParticularLineItemEntity {
7
+ id: number;
8
+ billingId: number;
9
+ description: string;
10
+ amount: number;
11
+ source: BillingParticularLineItemSourceEnum;
12
+ changedStatus: BillingParticularLineItemChangedStatusEnum;
13
+ order: number;
14
+ createdOn: number;
15
+ updatedOn: number;
16
+ createdBy: number;
17
+ updatedBy: number;
18
+ getRelationConfigs(): any;
19
+ static fromEntity(entity: IBillingParticularLineItemEntity): BillingParticularLineItemEntityModel;
20
+ }
@@ -0,0 +1,35 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingParticularLineItemEntityModel = void 0;
4
+ const billing_particular_line_item_changed_status_enum_1 = require("../enums/billing-particular-line-item.changed-status.enum");
5
+ const billing_particular_line_item_source_enum_1 = require("../enums/billing-particular-line-item.source.enum");
6
+ const entity_utils_interface_1 = require("../interface/entity.utils.interface");
7
+ const base_entity_model_1 = require("./base.entity.model");
8
+ // LW-773-billing-particular-line-item-model
9
+ class BillingParticularLineItemEntityModel extends base_entity_model_1.BaseEntityModel {
10
+ constructor() {
11
+ super(...arguments);
12
+ this.id = 0;
13
+ this.billingId = 0;
14
+ this.description = "";
15
+ this.amount = 0;
16
+ this.source = billing_particular_line_item_source_enum_1.BillingParticularLineItemSourceEnum.NEW;
17
+ this.changedStatus = billing_particular_line_item_changed_status_enum_1.BillingParticularLineItemChangedStatusEnum.UNCHANGED;
18
+ this.order = 0;
19
+ this.createdOn = 0;
20
+ this.updatedOn = 0;
21
+ this.createdBy = 0;
22
+ this.updatedBy = 0;
23
+ }
24
+ // LW-773-get-relation-configs
25
+ getRelationConfigs() {
26
+ return this.constructor.prototype.constructor.relationConfigs;
27
+ }
28
+ // LW-773-from-entity
29
+ static fromEntity(entity) {
30
+ const result = new BillingParticularLineItemEntityModel(entity_utils_interface_1.EntityEnum.BILLING_PARTICULAR_LINE_ITEM);
31
+ Object.assign(result, entity);
32
+ return result;
33
+ }
34
+ }
35
+ exports.BillingParticularLineItemEntityModel = BillingParticularLineItemEntityModel;
@@ -17,6 +17,7 @@ import { EntityEnum, Nullable } from "../interface/entity.utils.interface";
17
17
  import { RelationConfigs } from "../interface/relation-config.interface";
18
18
  import { BankEntityModel } from "./bank.entity.model";
19
19
  import { BaseEntityModel } from "./base.entity.model";
20
+ import { BillingParticularLineItemEntityModel } from "./billing-particular-line-item.entity.model";
20
21
  import { BillingProfileEntityModel } from "./billing-profile.entity.model";
21
22
  import { BillingReimbursementExpneseEntityModel } from "./billing-reimbursement-expense.entity.model";
22
23
  import { BillingTimesheetEntityModel } from "./billing-timesheet.entity.model";
@@ -67,6 +68,7 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
67
68
  bank?: BankEntityModel[];
68
69
  billingTimesheets?: BillingTimesheetEntityModel[];
69
70
  billingTransactions?: BillingTransactionEntityModel[];
71
+ billingParticularLineItems?: BillingParticularLineItemEntityModel[];
70
72
  isProjectComplete?: boolean;
71
73
  static readonly BILLING_ENTITY_DOCUMENT_TYPES: readonly ["invoice"];
72
74
  static validateDocumentNoDocumentFile(data: DocumentFields<typeof BillingEntityModel.BILLING_ENTITY_DOCUMENT_TYPES>, deleteDetails?: DeleteDocumentDetails<typeof BillingEntityModel.BILLING_ENTITY_DOCUMENT_TYPES>): Result<void, IDtoValidationError[]>;
@@ -81,11 +83,20 @@ export declare class BillingEntityModel extends BaseEntityModel<EntityEnum.BILLI
81
83
  EntityEnum.BILLING_REIMBURSEMENT_EXPENSE,
82
84
  EntityEnum.BILLING_TIMESHEET,
83
85
  EntityEnum.BANK,
84
- EntityEnum.BILLING_TRANSACTION
86
+ EntityEnum.BILLING_TRANSACTION,
87
+ EntityEnum.BILLING_PARTICULAR_LINE_ITEM
85
88
  ], EntityEnum.BILLING>;
86
89
  static fromEntity(entity: IBillingEntity): BillingEntityModel;
87
90
  get nonDeletedBillingTimesheets(): BillingTimesheetEntityModel[];
88
91
  get nonDeletedBillingReimbursementExpenses(): BillingReimbursementExpneseEntityModel[];
92
+ private groupParticularLineItemsByStatus;
93
+ get activeBillingParticularLineItems(): BillingParticularLineItemEntityModel[];
94
+ get inactiveBillingParticularLineItems(): BillingParticularLineItemEntityModel[];
95
+ groupParticularLineItemsBySource(): {
96
+ invoice: BillingParticularLineItemEntityModel[];
97
+ ope: BillingParticularLineItemEntityModel[];
98
+ custom: BillingParticularLineItemEntityModel[];
99
+ };
89
100
  getStatusCategory(): BillingStatusCategoryEnum;
90
101
  getStatusLabel(): string;
91
102
  getTotalAmountInINR(): string;
@@ -7,6 +7,10 @@ const error_key_enum_1 = require("../../enums/error.key.enum");
7
7
  const exceptions_1 = require("../../exceptions");
8
8
  const utils_1 = require("../../utils");
9
9
  const billing_reimbursement_expense_change_status_enum_1 = require("../enums/billing-reimbursement-expense-change-status.enum");
10
+ // LW-773-billing-particular-line-item-status-import
11
+ const billing_particular_line_item_changed_status_enum_1 = require("../enums/billing-particular-line-item.changed-status.enum");
12
+ // LW-773-billing-particular-line-item-source-import
13
+ const billing_particular_line_item_source_enum_1 = require("../enums/billing-particular-line-item.source.enum");
10
14
  const billing_status_category_enum_1 = require("../enums/billing-status-category.enum");
11
15
  const billing_transaction_status_enum_1 = require("../enums/billing-transaction-status.enum");
12
16
  const billing_type_enum_1 = require("../enums/billing-type.enum");
@@ -85,6 +89,47 @@ class BillingEntityModel extends base_entity_model_1.BaseEntityModel {
85
89
  var _a, _b;
86
90
  return (_b = (_a = this.billingReimbursementExpenses) === null || _a === void 0 ? void 0 : _a.filter((ts) => ts.changedStatus !== billing_reimbursement_expense_change_status_enum_1.BillingReimbursementExpenseChangedStatusEnum.DELETED)) !== null && _b !== void 0 ? _b : [];
87
91
  }
92
+ // LW-773-group-particulars-by-status
93
+ groupParticularLineItemsByStatus() {
94
+ var _a;
95
+ const active = [];
96
+ const inactive = [];
97
+ for (const item of (_a = this.billingParticularLineItems) !== null && _a !== void 0 ? _a : []) {
98
+ if (item.changedStatus === billing_particular_line_item_changed_status_enum_1.BillingParticularLineItemChangedStatusEnum.DELETED) {
99
+ inactive.push(item);
100
+ }
101
+ else {
102
+ active.push(item);
103
+ }
104
+ }
105
+ return { active, inactive };
106
+ }
107
+ // LW-773-active-particular-line-items
108
+ get activeBillingParticularLineItems() {
109
+ return this.groupParticularLineItemsByStatus().active;
110
+ }
111
+ // LW-773-inactive-particular-line-items
112
+ get inactiveBillingParticularLineItems() {
113
+ return this.groupParticularLineItemsByStatus().inactive;
114
+ }
115
+ // LW-773-group-particular-line-items-by-source
116
+ groupParticularLineItemsBySource() {
117
+ const invoice = [];
118
+ const ope = [];
119
+ const custom = [];
120
+ for (const item of this.activeBillingParticularLineItems) {
121
+ if (item.source === billing_particular_line_item_source_enum_1.BillingParticularLineItemSourceEnum.INVOICE) {
122
+ invoice.push(item);
123
+ }
124
+ else if (item.source === billing_particular_line_item_source_enum_1.BillingParticularLineItemSourceEnum.OPE) {
125
+ ope.push(item);
126
+ }
127
+ else {
128
+ custom.push(item);
129
+ }
130
+ }
131
+ return { invoice, ope, custom };
132
+ }
88
133
  getStatusCategory() {
89
134
  return this.mapStatusCategory(this.status);
90
135
  }
@@ -576,4 +621,14 @@ BillingEntityModel.relationConfigs = [
576
621
  key: "id",
577
622
  },
578
623
  },
624
+ // LW-773-billing-particular-line-item-relation-config
625
+ {
626
+ name: entity_utils_interface_1.EntityEnum.BILLING_PARTICULAR_LINE_ITEM,
627
+ relation: relation_type_enum_1.RelationType.MANY,
628
+ key: "billingParticularLineItems",
629
+ mapKeyConfig: {
630
+ relationKey: "billingId",
631
+ key: "id",
632
+ },
633
+ },
579
634
  ];
@@ -14,6 +14,7 @@ const address_book_model_1 = require("./address_book.model");
14
14
  const bank_entity_model_1 = require("./bank.entity.model");
15
15
  const bank_history_entity_model_1 = require("./bank_history.entity.model");
16
16
  const base_entity_model_1 = require("./base.entity.model");
17
+ const billing_particular_line_item_entity_model_1 = require("./billing-particular-line-item.entity.model");
17
18
  const billing_profile_entity_model_1 = require("./billing-profile.entity.model");
18
19
  const billing_reimbursement_expense_history_entity_model_1 = require("./billing-reimbursement-expense-history.entity.model");
19
20
  const billing_reimbursement_expense_entity_model_1 = require("./billing-reimbursement-expense.entity.model");
@@ -191,6 +192,7 @@ exports.entityEnumToEntityModel = {
191
192
  [entity_utils_interface_1.EntityEnum.VENDOR_TDS_CHALLAN]: vendor_tds_challan_entity_model_1.VendorTdsChallanEntityModel.fromEntity,
192
193
  [entity_utils_interface_1.EntityEnum.VENDOR_ADVANCE]: vendor_advance_entity_model_1.VendorAdvanceEntityModel.fromEntity,
193
194
  [entity_utils_interface_1.EntityEnum.VENDOR_INVOICE_ADVANCE]: vendor_invoice_advance_entity_model_1.VendorInvoiceAdvanceEntityModel.fromEntity,
195
+ [entity_utils_interface_1.EntityEnum.BILLING_PARTICULAR_LINE_ITEM]: billing_particular_line_item_entity_model_1.BillingParticularLineItemEntityModel.fromEntity,
194
196
  [entity_utils_interface_1.EntityEnum.CLIENT_DEBIT_NOTE]: client_debit_note_entity_model_1.ClientDebitNoteEntityModel.fromEntity,
195
197
  [entity_utils_interface_1.EntityEnum.CLIENT_DEBIT_NOTE_PARTICULARS]: client_debit_note_particulars_entity_model_1.ClientDebitNoteParticularsEntityModel.fromEntity,
196
198
  [entity_utils_interface_1.VirtualEntityEnum.CLIENT_DEBIT_NOTE_SEQUENCE_GENERATOR]: debit_note_sequence_generator_entity_model_1.ClientDebitNoteSequenceGeneratorVirtualEntityModel.fromEntity,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "12.5.0",
3
+ "version": "12.6.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [