law-common 10.64.1 → 10.64.2-beta.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/entities/interface/entity.utils.interface.d.ts +28 -3
- package/dist/src/entities/model/bank_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/bank_history.entity.model.js +29 -0
- package/dist/src/entities/model/billing-reimbursement-expense-history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/billing-reimbursement-expense-history.entity.model.js +29 -0
- package/dist/src/entities/model/billing-transaction-history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/billing-transaction-history.entity.model.js +29 -0
- package/dist/src/entities/model/billing_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/billing_history.entity.model.js +29 -0
- package/dist/src/entities/model/billing_payment.entity.model.d.ts +27 -0
- package/dist/src/entities/model/billing_payment.entity.model.js +48 -0
- package/dist/src/entities/model/billing_timesheet_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/billing_timesheet_history.entity.model.js +29 -0
- package/dist/src/entities/model/client-introducing-mapping.entity.model.d.ts +20 -0
- package/dist/src/entities/model/client-introducing-mapping.entity.model.js +41 -0
- package/dist/src/entities/model/client-user-mapping.entity.model.d.ts +20 -0
- package/dist/src/entities/model/client-user-mapping.entity.model.js +41 -0
- package/dist/src/entities/model/cron_jobs.entity.model.d.ts +23 -0
- package/dist/src/entities/model/cron_jobs.entity.model.js +31 -0
- package/dist/src/entities/model/entity.model.interface.js +45 -3
- package/dist/src/entities/model/expense_type.entity.model.d.ts +18 -0
- package/dist/src/entities/model/expense_type.entity.model.js +28 -0
- package/dist/src/entities/model/holiday_list.entity.model.d.ts +15 -0
- package/dist/src/entities/model/holiday_list.entity.model.js +26 -0
- package/dist/src/entities/model/industry.entity.model.d.ts +16 -0
- package/dist/src/entities/model/industry.entity.model.js +26 -0
- package/dist/src/entities/model/leave_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/leave_history.entity.model.js +29 -0
- package/dist/src/entities/model/organization.entity.model.d.ts +23 -0
- package/dist/src/entities/model/organization.entity.model.js +33 -0
- package/dist/src/entities/model/rate.entity.model.d.ts +19 -0
- package/dist/src/entities/model/rate.entity.model.js +30 -0
- package/dist/src/entities/model/reimbursement_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/reimbursement_history.entity.model.js +29 -0
- package/dist/src/entities/model/timesheet_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/timesheet_history.entity.model.js +29 -0
- package/dist/src/entities/model/to_do_list.entity.model.d.ts +23 -0
- package/dist/src/entities/model/to_do_list.entity.model.js +44 -0
- package/dist/src/entities/model/vendor_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/vendor_history.entity.model.js +29 -0
- package/dist/src/entities/model/vendor_invoice_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/vendor_invoice_history.entity.model.js +29 -0
- package/dist/src/entities/model/vendor_invoice_item_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/vendor_invoice_item_history.entity.model.js +29 -0
- package/dist/src/entities/model/website_newsletter_subscription.entity.model.d.ts +1 -1
- package/dist/src/entities/model/work_from_home_history.entity.model.d.ts +18 -0
- package/dist/src/entities/model/work_from_home_history.entity.model.js +29 -0
- package/package.json +41 -41
package/README.md
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
# law-common
|
|
1
|
+
# law-common
|
|
@@ -6,33 +6,48 @@ import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constrain
|
|
|
6
6
|
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
7
7
|
import { AddressBookEntityModel } from "../model/address_book.model";
|
|
8
8
|
import { BankEntityModel } from "../model/bank.entity.model";
|
|
9
|
+
import { BankHistoryEntityModel } from "../model/bank_history.entity.model";
|
|
10
|
+
import { BillingReimbursementExpenseHistoryEntityModel } from "../model/billing-reimbursement-expense-history.entity.model";
|
|
9
11
|
import { BillingReimbursementExpneseEntityModel } from "../model/billing-reimbursement-expense.entity.model";
|
|
10
12
|
import { BillingTimesheetEntityModel } from "../model/billing-timesheet.entity.model";
|
|
13
|
+
import { BillingTransactionHistoryEntityModel } from "../model/billing-transaction-history.entity.model";
|
|
11
14
|
import { BillingTransactionEntityModel } from "../model/billing-transaction.model";
|
|
12
15
|
import { BillingEntityModel } from "../model/billing.entity.model";
|
|
16
|
+
import { BillingHistoryEntityModel } from "../model/billing_history.entity.model";
|
|
17
|
+
import { BillingPaymentEntityModel } from "../model/billing_payment.entity.model";
|
|
18
|
+
import { BillingTimesheetHistoryEntityModel } from "../model/billing_timesheet_history.entity.model";
|
|
13
19
|
import { ClientAffiliateEntityModel } from "../model/client-affiliate.entity.model";
|
|
20
|
+
import { ClientIntroducingMappingEntityModel } from "../model/client-introducing-mapping.entity.model";
|
|
21
|
+
import { ClientUserMappingEntityModel } from "../model/client-user-mapping.entity.model";
|
|
14
22
|
import { ClientEntityModel } from "../model/client.entity.model";
|
|
15
23
|
import { ClientQuoteEntityModel } from "../model/client_quote.entity.model";
|
|
16
24
|
import { ClientQuoteRateEntityModel } from "../model/client_quote_rate.entity.model";
|
|
17
25
|
import { ConfigurationEntityModel } from "../model/configuration.model";
|
|
18
26
|
import { CountryEntityModel } from "../model/country.entity.model";
|
|
27
|
+
import { CronJobsEntityModel } from "../model/cron_jobs.entity.model";
|
|
19
28
|
import { DesignationEntityModel } from "../model/designation.entity.model";
|
|
20
29
|
import { DocumentUploadEntityModel } from "../model/document_upload.entity.model";
|
|
21
30
|
import { ExpenseHeadEntityModel } from "../model/expense_head.entity.model";
|
|
31
|
+
import { ExpenseTypeEntityModel } from "../model/expense_type.entity.model";
|
|
22
32
|
import { GstRateEntityModel } from "../model/gst_rate.entity.model";
|
|
23
33
|
import { HolidayEntityModel } from "../model/holiday.entity.model";
|
|
34
|
+
import { HolidayListEntityModel } from "../model/holiday_list.entity.model";
|
|
35
|
+
import { IndustryEntityModel } from "../model/industry.entity.model";
|
|
24
36
|
import { IntermediaryBankEntityModel } from "../model/intermediary-bank.entity.model";
|
|
25
37
|
import { LeaveEntityModel } from "../model/leave.entity.model";
|
|
26
38
|
import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
|
|
39
|
+
import { LeaveHistoryEntityModel } from "../model/leave_history.entity.model";
|
|
27
40
|
import { OfficeLocationEntityModel } from "../model/office_location.entity.model";
|
|
41
|
+
import { OrganizationEntityModel } from "../model/organization.entity.model";
|
|
28
42
|
import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
|
|
29
43
|
import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
|
|
30
44
|
import { PermissionEntityModel } from "../model/permissions.entity.model";
|
|
31
45
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
32
46
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
33
|
-
import { RateEntityModel } from "../model/rate.model";
|
|
47
|
+
import { RateEntityModel } from "../model/rate.entity.model";
|
|
34
48
|
import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
|
|
35
49
|
import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
|
|
50
|
+
import { ReimbursementHistoryEntityModel } from "../model/reimbursement_history.entity.model";
|
|
36
51
|
import { RolePermissionMappingEntityModel } from "../model/role-permission.entity.model";
|
|
37
52
|
import { RoleEntityModel } from "../model/role.entity.model";
|
|
38
53
|
import { StateEntityModel } from "../model/state.entity.model";
|
|
@@ -40,22 +55,31 @@ import { TaskEntityModel } from "../model/task.entity.model";
|
|
|
40
55
|
import { TdsRateEntityModel } from "../model/tds_rate.entity.model";
|
|
41
56
|
import { TdsRateVoucherTypeMappingEntityModel } from "../model/tds_rate_voucher_type_mapping.entity.model";
|
|
42
57
|
import { TimesheetEntityModel } from "../model/timesheet.entity.model";
|
|
58
|
+
import { TimesheetHistoryEntityModel } from "../model/timesheet_history.entity.model";
|
|
59
|
+
import { ToDoListEntityModel } from "../model/to_do_list.entity.model";
|
|
43
60
|
import { UserEntityModel } from "../model/user.entity.model";
|
|
44
61
|
import { VendorEntityModel } from "../model/vendor.entity.model";
|
|
62
|
+
import { VendorHistoryEntityModel } from "../model/vendor_history.entity.model";
|
|
45
63
|
import { VendorInvoiceEntityModel } from "../model/vendor_invoice.entity.model";
|
|
64
|
+
import { VendorInvoiceHistoryEntityModel } from "../model/vendor_invoice_history.entity.model";
|
|
46
65
|
import { VendorInvoiceItemEntityModel } from "../model/vendor_invoice_item.entity.model";
|
|
66
|
+
import { VendorInvoiceItemHistoryEntityModel } from "../model/vendor_invoice_item_history.entity.model";
|
|
47
67
|
import { VoucherTypeEntityModel } from "../model/voucher_type.entity.model";
|
|
48
68
|
import { WebsiteLeadEntityModel } from "../model/website_lead.entity.model";
|
|
49
69
|
import { WebsiteNewsletterSubscriptionEntityModel } from "../model/website_newsletter_subscription.entity.model";
|
|
50
70
|
import { WorkFromHomeEntityModel } from "../model/work-from-home.entity.model";
|
|
71
|
+
import { WorkFromHomeHistoryEntityModel } from "../model/work_from_home_history.entity.model";
|
|
51
72
|
import { IAddressBookEntity } from "./address-book.entity.interface";
|
|
52
73
|
import { IBankEntity } from "./bank.entity.interface";
|
|
53
74
|
import { IBankHistoryEntity } from "./bank_history.entity.interface";
|
|
75
|
+
import { IBillingReimbursementExpenseHistoryEntity } from "./billing-reimbursement-expense-history.entity.interface";
|
|
54
76
|
import { IBillingReimbursementExpenseEntity } from "./billing-reimbursement-expense.entity.interface";
|
|
55
77
|
import { IBillingTransactionHistoryEntity } from "./billing-transaction-history.entity";
|
|
56
78
|
import { IBillingEntity } from "./billing.entity.interface";
|
|
79
|
+
import { IBillingHistoryEntity } from "./billing_history.entity.interface";
|
|
57
80
|
import { IBillingPaymentEntity } from "./billing_payment.entity.interface";
|
|
58
81
|
import { IBillingTimesheetEntity } from "./billing_timesheet.entity.interface";
|
|
82
|
+
import { IBillingTimesheetHistoryEntity } from "./billing_timesheet_history.entity.interface";
|
|
59
83
|
import { IBillingTransactionEntity } from "./billing_transaction.entity.interface";
|
|
60
84
|
import { IClientEntity, IClientIntroducingMappingEntity, IClientUserMappingEntity } from "./client.entity.interface";
|
|
61
85
|
import { IClientAffiliateEntity } from "./client_affiliate_entity.interface";
|
|
@@ -85,6 +109,7 @@ import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.inte
|
|
|
85
109
|
import { IRateEntity } from "./rate.entity.interface";
|
|
86
110
|
import { IReimbursementEntity } from "./reimbursement.entity.interface";
|
|
87
111
|
import { IReimbursementExpenseEntity } from "./reimbursement_expense.entity.interface";
|
|
112
|
+
import { IReimbursementHistoryEntity } from "./reimbursement_history.entity.interface";
|
|
88
113
|
import { IRoleEntity } from "./role.entity.interface";
|
|
89
114
|
import { IRolePermissionMappingEntity } from "./role.permission.mapping.entity.interface";
|
|
90
115
|
import { IStateEntity } from "./state.entity.interface";
|
|
@@ -227,7 +252,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
227
252
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
228
253
|
};
|
|
229
254
|
};
|
|
230
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : 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.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 : never) & {
|
|
255
|
+
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 : never) & {
|
|
231
256
|
id: number;
|
|
232
257
|
};
|
|
233
258
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -351,7 +376,7 @@ export declare enum VirtualEntityEnum {
|
|
|
351
376
|
}
|
|
352
377
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
353
378
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
354
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : 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.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.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : 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.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.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.
|
|
379
|
+
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 : UserEntityModel;
|
|
355
380
|
export type EntityMap = {
|
|
356
381
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
357
382
|
};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IBankHistoryEntity } from "../interface/bank_history.entity.interface";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
export declare class BankHistoryEntityModel extends BaseEntityModel<EntityEnum.BANK_HISTORY> implements IBankHistoryEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
entityId: number;
|
|
9
|
+
operation: HistoryOperationEnum;
|
|
10
|
+
data: string;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
static relationConfigs: RelationConfigs<[], EntityEnum.BANK_HISTORY>;
|
|
16
|
+
static fromEntity(entity: IBankHistoryEntity): BankHistoryEntityModel;
|
|
17
|
+
getRelationConfigs(): [];
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BankHistoryEntityModel = void 0;
|
|
4
|
+
const history_operation_enum_1 = require("../enums/history_operation.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class BankHistoryEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.entityId = 0;
|
|
12
|
+
this.operation = history_operation_enum_1.HistoryOperationEnum.CREATE;
|
|
13
|
+
this.data = "";
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new BankHistoryEntityModel(entity_utils_interface_1.EntityEnum.BANK_HISTORY);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return BankHistoryEntityModel.relationConfigs;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BankHistoryEntityModel = BankHistoryEntityModel;
|
|
29
|
+
BankHistoryEntityModel.relationConfigs = [];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IBillingReimbursementExpenseHistoryEntity } from "../interface/billing-reimbursement-expense-history.entity.interface";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
export declare class BillingReimbursementExpenseHistoryEntityModel extends BaseEntityModel<EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY> implements IBillingReimbursementExpenseHistoryEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
entityId: number;
|
|
9
|
+
operation: HistoryOperationEnum;
|
|
10
|
+
data: string;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
static relationConfigs: RelationConfigs<[], EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY>;
|
|
16
|
+
static fromEntity(entity: IBillingReimbursementExpenseHistoryEntity): BillingReimbursementExpenseHistoryEntityModel;
|
|
17
|
+
getRelationConfigs(): [];
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingReimbursementExpenseHistoryEntityModel = void 0;
|
|
4
|
+
const history_operation_enum_1 = require("../enums/history_operation.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class BillingReimbursementExpenseHistoryEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.entityId = 0;
|
|
12
|
+
this.operation = history_operation_enum_1.HistoryOperationEnum.CREATE;
|
|
13
|
+
this.data = "";
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new BillingReimbursementExpenseHistoryEntityModel(entity_utils_interface_1.EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return BillingReimbursementExpenseHistoryEntityModel.relationConfigs;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BillingReimbursementExpenseHistoryEntityModel = BillingReimbursementExpenseHistoryEntityModel;
|
|
29
|
+
BillingReimbursementExpenseHistoryEntityModel.relationConfigs = [];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IBillingTransactionHistoryEntity } from "../interface/billing-transaction-history.entity";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
export declare class BillingTransactionHistoryEntityModel extends BaseEntityModel<EntityEnum.BILLING_TRANSACTION_HISTORY> implements IBillingTransactionHistoryEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
entityId: number;
|
|
9
|
+
operation: HistoryOperationEnum;
|
|
10
|
+
data: string;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
static relationConfigs: RelationConfigs<[], EntityEnum.BILLING_TRANSACTION_HISTORY>;
|
|
16
|
+
static fromEntity(entity: IBillingTransactionHistoryEntity): BillingTransactionHistoryEntityModel;
|
|
17
|
+
getRelationConfigs(): [];
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingTransactionHistoryEntityModel = void 0;
|
|
4
|
+
const history_operation_enum_1 = require("../enums/history_operation.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class BillingTransactionHistoryEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.entityId = 0;
|
|
12
|
+
this.operation = history_operation_enum_1.HistoryOperationEnum.CREATE;
|
|
13
|
+
this.data = "";
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new BillingTransactionHistoryEntityModel(entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION_HISTORY);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return BillingTransactionHistoryEntityModel.relationConfigs;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BillingTransactionHistoryEntityModel = BillingTransactionHistoryEntityModel;
|
|
29
|
+
BillingTransactionHistoryEntityModel.relationConfigs = [];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IBillingHistoryEntity } from "../interface/billing_history.entity.interface";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
export declare class BillingHistoryEntityModel extends BaseEntityModel<EntityEnum.BILLING_HISTORY> implements IBillingHistoryEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
entityId: number;
|
|
9
|
+
operation: HistoryOperationEnum;
|
|
10
|
+
data: string;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
static relationConfigs: RelationConfigs<[], EntityEnum.BILLING_HISTORY>;
|
|
16
|
+
static fromEntity(entity: IBillingHistoryEntity): BillingHistoryEntityModel;
|
|
17
|
+
getRelationConfigs(): [];
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingHistoryEntityModel = void 0;
|
|
4
|
+
const history_operation_enum_1 = require("../enums/history_operation.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class BillingHistoryEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.entityId = 0;
|
|
12
|
+
this.operation = history_operation_enum_1.HistoryOperationEnum.CREATE;
|
|
13
|
+
this.data = "";
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new BillingHistoryEntityModel(entity_utils_interface_1.EntityEnum.BILLING_HISTORY);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return BillingHistoryEntityModel.relationConfigs;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BillingHistoryEntityModel = BillingHistoryEntityModel;
|
|
29
|
+
BillingHistoryEntityModel.relationConfigs = [];
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { BillingPaymentType } from "../enums/billing.payment.type.enum";
|
|
2
|
+
import { IBillingPaymentEntity } from "../interface/billing_payment.entity.interface";
|
|
3
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BankEntityModel } from "./bank.entity.model";
|
|
6
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
7
|
+
import { BillingEntityModel } from "./billing.entity.model";
|
|
8
|
+
export declare class BillingPaymentEntityModel extends BaseEntityModel<EntityEnum.BILLING_PAYMENT> implements IBillingPaymentEntity {
|
|
9
|
+
id: number;
|
|
10
|
+
billingId: number;
|
|
11
|
+
bankId: number;
|
|
12
|
+
type: BillingPaymentType;
|
|
13
|
+
transactionId: string;
|
|
14
|
+
amount: number;
|
|
15
|
+
date: string;
|
|
16
|
+
tds: number;
|
|
17
|
+
discount: number;
|
|
18
|
+
createdOn: number;
|
|
19
|
+
updatedOn: number;
|
|
20
|
+
createdBy: number;
|
|
21
|
+
updatedBy: number;
|
|
22
|
+
billing?: BillingEntityModel;
|
|
23
|
+
bank?: BankEntityModel;
|
|
24
|
+
static relationConfigs: RelationConfigs<[EntityEnum.BILLING, EntityEnum.BANK], EntityEnum.BILLING_PAYMENT>;
|
|
25
|
+
static fromEntity(entity: IBillingPaymentEntity): BillingPaymentEntityModel;
|
|
26
|
+
getRelationConfigs(): [import("../interface/relation-config.interface").IRelationConfig<EntityEnum.BILLING, EntityEnum.BILLING_PAYMENT>, import("../interface/relation-config.interface").IRelationConfig<EntityEnum.BANK, EntityEnum.BILLING_PAYMENT>];
|
|
27
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingPaymentEntityModel = void 0;
|
|
4
|
+
const billing_payment_type_enum_1 = require("../enums/billing.payment.type.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 BillingPaymentEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
9
|
+
constructor() {
|
|
10
|
+
super(...arguments);
|
|
11
|
+
this.id = 0;
|
|
12
|
+
this.billingId = 0;
|
|
13
|
+
this.bankId = 0;
|
|
14
|
+
this.type = billing_payment_type_enum_1.BillingPaymentType.NEFT;
|
|
15
|
+
this.transactionId = "";
|
|
16
|
+
this.amount = 0;
|
|
17
|
+
this.date = "";
|
|
18
|
+
this.tds = 0;
|
|
19
|
+
this.discount = 0;
|
|
20
|
+
this.createdOn = 0;
|
|
21
|
+
this.updatedOn = 0;
|
|
22
|
+
this.createdBy = 0;
|
|
23
|
+
this.updatedBy = 0;
|
|
24
|
+
}
|
|
25
|
+
static fromEntity(entity) {
|
|
26
|
+
const result = new BillingPaymentEntityModel(entity_utils_interface_1.EntityEnum.BILLING_PAYMENT);
|
|
27
|
+
Object.assign(result, entity);
|
|
28
|
+
return result;
|
|
29
|
+
}
|
|
30
|
+
getRelationConfigs() {
|
|
31
|
+
return BillingPaymentEntityModel.relationConfigs;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
exports.BillingPaymentEntityModel = BillingPaymentEntityModel;
|
|
35
|
+
BillingPaymentEntityModel.relationConfigs = [
|
|
36
|
+
{
|
|
37
|
+
name: entity_utils_interface_1.EntityEnum.BILLING,
|
|
38
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
39
|
+
key: "billing",
|
|
40
|
+
mapKeyConfig: { relationKey: "id", key: "billingId" },
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
name: entity_utils_interface_1.EntityEnum.BANK,
|
|
44
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
45
|
+
key: "bank",
|
|
46
|
+
mapKeyConfig: { relationKey: "id", key: "bankId" },
|
|
47
|
+
},
|
|
48
|
+
];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IBillingTimesheetHistoryEntity } from "../interface/billing_timesheet_history.entity.interface";
|
|
4
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
+
export declare class BillingTimesheetHistoryEntityModel extends BaseEntityModel<EntityEnum.BILLING_TIMESHEET_HISTORY> implements IBillingTimesheetHistoryEntity {
|
|
7
|
+
id: number;
|
|
8
|
+
entityId: number;
|
|
9
|
+
operation: HistoryOperationEnum;
|
|
10
|
+
data: string;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
static relationConfigs: RelationConfigs<[], EntityEnum.BILLING_TIMESHEET_HISTORY>;
|
|
16
|
+
static fromEntity(entity: IBillingTimesheetHistoryEntity): BillingTimesheetHistoryEntityModel;
|
|
17
|
+
getRelationConfigs(): [];
|
|
18
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingTimesheetHistoryEntityModel = void 0;
|
|
4
|
+
const history_operation_enum_1 = require("../enums/history_operation.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class BillingTimesheetHistoryEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.entityId = 0;
|
|
12
|
+
this.operation = history_operation_enum_1.HistoryOperationEnum.CREATE;
|
|
13
|
+
this.data = "";
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new BillingTimesheetHistoryEntityModel(entity_utils_interface_1.EntityEnum.BILLING_TIMESHEET_HISTORY);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return BillingTimesheetHistoryEntityModel.relationConfigs;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.BillingTimesheetHistoryEntityModel = BillingTimesheetHistoryEntityModel;
|
|
29
|
+
BillingTimesheetHistoryEntityModel.relationConfigs = [];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
2
|
+
import { IClientIntroducingMappingEntity } from "../interface/client.entity.interface";
|
|
3
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
4
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
+
import { ClientEntityModel } from "./client.entity.model";
|
|
6
|
+
import { UserEntityModel } from "./user.entity.model";
|
|
7
|
+
export declare class ClientIntroducingMappingEntityModel extends BaseEntityModel<EntityEnum.CLIENT_INTRODUCING_MAPPING> implements IClientIntroducingMappingEntity {
|
|
8
|
+
id: number;
|
|
9
|
+
clientId: number;
|
|
10
|
+
userId: number;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
client?: ClientEntityModel;
|
|
16
|
+
user?: UserEntityModel;
|
|
17
|
+
static relationConfigs: RelationConfigs<[EntityEnum.CLIENT, EntityEnum.USER], EntityEnum.CLIENT_INTRODUCING_MAPPING>;
|
|
18
|
+
static fromEntity(entity: IClientIntroducingMappingEntity): ClientIntroducingMappingEntityModel;
|
|
19
|
+
getRelationConfigs(): [import("../interface/relation-config.interface").IRelationConfig<EntityEnum.CLIENT, EntityEnum.CLIENT_INTRODUCING_MAPPING>, import("../interface/relation-config.interface").IRelationConfig<EntityEnum.USER, EntityEnum.CLIENT_INTRODUCING_MAPPING>];
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientIntroducingMappingEntityModel = void 0;
|
|
4
|
+
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class ClientIntroducingMappingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.clientId = 0;
|
|
12
|
+
this.userId = 0;
|
|
13
|
+
this.createdOn = 0;
|
|
14
|
+
this.updatedOn = 0;
|
|
15
|
+
this.createdBy = 0;
|
|
16
|
+
this.updatedBy = 0;
|
|
17
|
+
}
|
|
18
|
+
static fromEntity(entity) {
|
|
19
|
+
const result = new ClientIntroducingMappingEntityModel(entity_utils_interface_1.EntityEnum.CLIENT_INTRODUCING_MAPPING);
|
|
20
|
+
Object.assign(result, entity);
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
getRelationConfigs() {
|
|
24
|
+
return ClientIntroducingMappingEntityModel.relationConfigs;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ClientIntroducingMappingEntityModel = ClientIntroducingMappingEntityModel;
|
|
28
|
+
ClientIntroducingMappingEntityModel.relationConfigs = [
|
|
29
|
+
{
|
|
30
|
+
name: entity_utils_interface_1.EntityEnum.CLIENT,
|
|
31
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
32
|
+
key: "client",
|
|
33
|
+
mapKeyConfig: { relationKey: "id", key: "clientId" },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: entity_utils_interface_1.EntityEnum.USER,
|
|
37
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
38
|
+
key: "user",
|
|
39
|
+
mapKeyConfig: { relationKey: "id", key: "userId" },
|
|
40
|
+
},
|
|
41
|
+
];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
2
|
+
import { IClientUserMappingEntity } from "../interface/client.entity.interface";
|
|
3
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
4
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
+
import { ClientEntityModel } from "./client.entity.model";
|
|
6
|
+
import { UserEntityModel } from "./user.entity.model";
|
|
7
|
+
export declare class ClientUserMappingEntityModel extends BaseEntityModel<EntityEnum.CLIENT_USER_MAPPING> implements IClientUserMappingEntity {
|
|
8
|
+
id: number;
|
|
9
|
+
clientId: number;
|
|
10
|
+
userId: number;
|
|
11
|
+
createdOn: number;
|
|
12
|
+
updatedOn: number;
|
|
13
|
+
createdBy: number;
|
|
14
|
+
updatedBy: number;
|
|
15
|
+
client?: ClientEntityModel;
|
|
16
|
+
user?: UserEntityModel;
|
|
17
|
+
static relationConfigs: RelationConfigs<[EntityEnum.CLIENT, EntityEnum.USER], EntityEnum.CLIENT_USER_MAPPING>;
|
|
18
|
+
static fromEntity(entity: IClientUserMappingEntity): ClientUserMappingEntityModel;
|
|
19
|
+
getRelationConfigs(): [import("../interface/relation-config.interface").IRelationConfig<EntityEnum.CLIENT, EntityEnum.CLIENT_USER_MAPPING>, import("../interface/relation-config.interface").IRelationConfig<EntityEnum.USER, EntityEnum.CLIENT_USER_MAPPING>];
|
|
20
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ClientUserMappingEntityModel = void 0;
|
|
4
|
+
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class ClientUserMappingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.clientId = 0;
|
|
12
|
+
this.userId = 0;
|
|
13
|
+
this.createdOn = 0;
|
|
14
|
+
this.updatedOn = 0;
|
|
15
|
+
this.createdBy = 0;
|
|
16
|
+
this.updatedBy = 0;
|
|
17
|
+
}
|
|
18
|
+
static fromEntity(entity) {
|
|
19
|
+
const result = new ClientUserMappingEntityModel(entity_utils_interface_1.EntityEnum.CLIENT_USER_MAPPING);
|
|
20
|
+
Object.assign(result, entity);
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
23
|
+
getRelationConfigs() {
|
|
24
|
+
return ClientUserMappingEntityModel.relationConfigs;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.ClientUserMappingEntityModel = ClientUserMappingEntityModel;
|
|
28
|
+
ClientUserMappingEntityModel.relationConfigs = [
|
|
29
|
+
{
|
|
30
|
+
name: entity_utils_interface_1.EntityEnum.CLIENT,
|
|
31
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
32
|
+
key: "client",
|
|
33
|
+
mapKeyConfig: { relationKey: "id", key: "clientId" },
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
name: entity_utils_interface_1.EntityEnum.USER,
|
|
37
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
38
|
+
key: "user",
|
|
39
|
+
mapKeyConfig: { relationKey: "id", key: "userId" },
|
|
40
|
+
},
|
|
41
|
+
];
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { CronJobNames } from "../enums/cron-jobs-name.enum";
|
|
2
|
+
import { CronJobStatus } from "../enums/cron-jobs-status.enum";
|
|
3
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
4
|
+
import { ICronJobsEntity } from "../interface/cron-job.entity.interface";
|
|
5
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
6
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
7
|
+
export declare class CronJobsEntityModel extends BaseEntityModel<EntityEnum.CRON_JOBS> implements ICronJobsEntity {
|
|
8
|
+
id: number;
|
|
9
|
+
job: CronJobNames;
|
|
10
|
+
startTime: Date;
|
|
11
|
+
endTime?: Date;
|
|
12
|
+
message: string;
|
|
13
|
+
error?: string;
|
|
14
|
+
parameters?: string;
|
|
15
|
+
status: CronJobStatus;
|
|
16
|
+
createdOn: number;
|
|
17
|
+
updatedOn: number;
|
|
18
|
+
createdBy: number;
|
|
19
|
+
updatedBy: number;
|
|
20
|
+
static relationConfigs: RelationConfigs<[], EntityEnum.CRON_JOBS>;
|
|
21
|
+
static fromEntity(entity: ICronJobsEntity): CronJobsEntityModel;
|
|
22
|
+
getRelationConfigs(): [];
|
|
23
|
+
}
|