law-common 10.64.2-beta.2 → 10.64.2-beta.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/interface/billing.create.dto.interface.d.ts +3 -0
- package/dist/src/entities/enums/billing_profile.enum.d.ts +4 -0
- package/dist/src/entities/enums/billing_profile.enum.js +8 -0
- package/dist/src/entities/index.d.ts +3 -0
- package/dist/src/entities/index.js +3 -0
- package/dist/src/entities/interface/billing_profile.entity.interface.d.ts +8 -0
- package/dist/src/entities/interface/billing_profile.entity.interface.js +2 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +7 -29
- package/dist/src/entities/interface/entity.utils.interface.js +1 -0
- package/dist/src/entities/model/billing-profile.entity.model.d.ts +17 -0
- package/dist/src/entities/model/billing-profile.entity.model.js +27 -0
- package/dist/src/entities/model/entity.model.interface.js +5 -45
- package/dist/src/entities/model/website_newsletter_subscription.entity.model.d.ts +1 -1
- package/package.json +1 -1
- package/dist/src/entities/model/bank_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/bank_history.entity.model.js +0 -35
- package/dist/src/entities/model/base_history.entity.model.d.ts +0 -17
- package/dist/src/entities/model/base_history.entity.model.js +0 -29
- package/dist/src/entities/model/billing-reimbursement-expense-history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/billing-reimbursement-expense-history.entity.model.js +0 -38
- package/dist/src/entities/model/billing-transaction-history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/billing-transaction-history.entity.model.js +0 -38
- package/dist/src/entities/model/billing_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/billing_history.entity.model.js +0 -35
- package/dist/src/entities/model/billing_payment.entity.model.d.ts +0 -27
- package/dist/src/entities/model/billing_payment.entity.model.js +0 -48
- package/dist/src/entities/model/billing_timesheet_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/billing_timesheet_history.entity.model.js +0 -38
- package/dist/src/entities/model/client-introducing-mapping.entity.model.d.ts +0 -20
- package/dist/src/entities/model/client-introducing-mapping.entity.model.js +0 -41
- package/dist/src/entities/model/client-user-mapping.entity.model.d.ts +0 -20
- package/dist/src/entities/model/client-user-mapping.entity.model.js +0 -41
- package/dist/src/entities/model/cron_jobs.entity.model.d.ts +0 -23
- package/dist/src/entities/model/cron_jobs.entity.model.js +0 -31
- package/dist/src/entities/model/expense_type.entity.model.d.ts +0 -18
- package/dist/src/entities/model/expense_type.entity.model.js +0 -28
- package/dist/src/entities/model/holiday_list.entity.model.d.ts +0 -15
- package/dist/src/entities/model/holiday_list.entity.model.js +0 -26
- package/dist/src/entities/model/industry.entity.model.d.ts +0 -16
- package/dist/src/entities/model/industry.entity.model.js +0 -26
- package/dist/src/entities/model/leave_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/leave_history.entity.model.js +0 -35
- package/dist/src/entities/model/organization.entity.model.d.ts +0 -23
- package/dist/src/entities/model/organization.entity.model.js +0 -33
- package/dist/src/entities/model/rate.entity.model.d.ts +0 -19
- package/dist/src/entities/model/rate.entity.model.js +0 -30
- package/dist/src/entities/model/reimbursement_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/reimbursement_history.entity.model.js +0 -35
- package/dist/src/entities/model/timesheet_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/timesheet_history.entity.model.js +0 -35
- package/dist/src/entities/model/to_do_list.entity.model.d.ts +0 -23
- package/dist/src/entities/model/to_do_list.entity.model.js +0 -44
- package/dist/src/entities/model/vendor_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/vendor_history.entity.model.js +0 -35
- package/dist/src/entities/model/vendor_invoice_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/vendor_invoice_history.entity.model.js +0 -35
- package/dist/src/entities/model/vendor_invoice_item_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/vendor_invoice_item_history.entity.model.js +0 -38
- package/dist/src/entities/model/work_from_home_history.entity.model.d.ts +0 -5
- package/dist/src/entities/model/work_from_home_history.entity.model.js +0 -38
|
@@ -17,6 +17,9 @@ export interface IBillingParticulars {
|
|
|
17
17
|
includePONumber: 0 | 1;
|
|
18
18
|
includeGSTNumber: 0 | 1;
|
|
19
19
|
poNumber: Nullable<string>;
|
|
20
|
+
panNumber: string;
|
|
21
|
+
name: string;
|
|
22
|
+
bankId: number;
|
|
20
23
|
}
|
|
21
24
|
export interface IBillingCreateDtoExtra {
|
|
22
25
|
particulars: IBillingParticulars[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingProfileName = void 0;
|
|
4
|
+
var BillingProfileName;
|
|
5
|
+
(function (BillingProfileName) {
|
|
6
|
+
BillingProfileName["AGRAM_LEGAL_CONSULTANTS"] = "AGRAM LEGAL CONSULTANTS";
|
|
7
|
+
BillingProfileName["AGRAM_LEGAL_PARTNERS"] = "AGRAM LEGAL PARTNERS";
|
|
8
|
+
})(BillingProfileName || (exports.BillingProfileName = BillingProfileName = {}));
|
|
@@ -179,3 +179,6 @@ export * from "./interface/client_quote.entity.interface";
|
|
|
179
179
|
export * from "./interface/client_quote_rate.entity.interface";
|
|
180
180
|
export * from "./model/client_quote.entity.model";
|
|
181
181
|
export * from "./model/client_quote_rate.entity.model";
|
|
182
|
+
export * from "./enums/billing_profile.enum";
|
|
183
|
+
export * from "./interface/billing_profile.entity.interface";
|
|
184
|
+
export * from "./model/billing-profile.entity.model";
|
|
@@ -195,3 +195,6 @@ __exportStar(require("./interface/client_quote.entity.interface"), exports);
|
|
|
195
195
|
__exportStar(require("./interface/client_quote_rate.entity.interface"), exports);
|
|
196
196
|
__exportStar(require("./model/client_quote.entity.model"), exports);
|
|
197
197
|
__exportStar(require("./model/client_quote_rate.entity.model"), exports);
|
|
198
|
+
__exportStar(require("./enums/billing_profile.enum"), exports);
|
|
199
|
+
__exportStar(require("./interface/billing_profile.entity.interface"), exports);
|
|
200
|
+
__exportStar(require("./model/billing-profile.entity.model"), exports);
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { BillingProfileName } from "../enums/billing_profile.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
export interface IBillingProfileEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
name: BillingProfileName;
|
|
6
|
+
logoFilePath: string;
|
|
7
|
+
pan: string;
|
|
8
|
+
}
|
|
@@ -6,48 +6,34 @@ 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 {
|
|
10
|
-
import { BillingReimbursementExpenseHistoryEntityModel } from "../model/billing-reimbursement-expense-history.entity.model";
|
|
9
|
+
import { BillingProfileEntityModel } from "../model/billing-profile.entity.model";
|
|
11
10
|
import { BillingReimbursementExpneseEntityModel } from "../model/billing-reimbursement-expense.entity.model";
|
|
12
11
|
import { BillingTimesheetEntityModel } from "../model/billing-timesheet.entity.model";
|
|
13
|
-
import { BillingTransactionHistoryEntityModel } from "../model/billing-transaction-history.entity.model";
|
|
14
12
|
import { BillingTransactionEntityModel } from "../model/billing-transaction.model";
|
|
15
13
|
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";
|
|
19
14
|
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";
|
|
22
15
|
import { ClientEntityModel } from "../model/client.entity.model";
|
|
23
16
|
import { ClientQuoteEntityModel } from "../model/client_quote.entity.model";
|
|
24
17
|
import { ClientQuoteRateEntityModel } from "../model/client_quote_rate.entity.model";
|
|
25
18
|
import { ConfigurationEntityModel } from "../model/configuration.model";
|
|
26
19
|
import { CountryEntityModel } from "../model/country.entity.model";
|
|
27
|
-
import { CronJobsEntityModel } from "../model/cron_jobs.entity.model";
|
|
28
20
|
import { DesignationEntityModel } from "../model/designation.entity.model";
|
|
29
21
|
import { DocumentUploadEntityModel } from "../model/document_upload.entity.model";
|
|
30
22
|
import { ExpenseHeadEntityModel } from "../model/expense_head.entity.model";
|
|
31
|
-
import { ExpenseTypeEntityModel } from "../model/expense_type.entity.model";
|
|
32
23
|
import { GstRateEntityModel } from "../model/gst_rate.entity.model";
|
|
33
24
|
import { HolidayEntityModel } from "../model/holiday.entity.model";
|
|
34
|
-
import { HolidayListEntityModel } from "../model/holiday_list.entity.model";
|
|
35
|
-
import { IndustryEntityModel } from "../model/industry.entity.model";
|
|
36
25
|
import { IntermediaryBankEntityModel } from "../model/intermediary-bank.entity.model";
|
|
37
26
|
import { LeaveEntityModel } from "../model/leave.entity.model";
|
|
38
27
|
import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
|
|
39
|
-
import { LeaveHistoryEntityModel } from "../model/leave_history.entity.model";
|
|
40
28
|
import { OfficeLocationEntityModel } from "../model/office_location.entity.model";
|
|
41
|
-
import { OrganizationEntityModel } from "../model/organization.entity.model";
|
|
42
29
|
import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
|
|
43
30
|
import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
|
|
44
31
|
import { PermissionEntityModel } from "../model/permissions.entity.model";
|
|
45
32
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
46
33
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
47
|
-
import { RateEntityModel } from "../model/rate.
|
|
34
|
+
import { RateEntityModel } from "../model/rate.model";
|
|
48
35
|
import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
|
|
49
36
|
import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
|
|
50
|
-
import { ReimbursementHistoryEntityModel } from "../model/reimbursement_history.entity.model";
|
|
51
37
|
import { RolePermissionMappingEntityModel } from "../model/role-permission.entity.model";
|
|
52
38
|
import { RoleEntityModel } from "../model/role.entity.model";
|
|
53
39
|
import { StateEntityModel } from "../model/state.entity.model";
|
|
@@ -55,31 +41,23 @@ import { TaskEntityModel } from "../model/task.entity.model";
|
|
|
55
41
|
import { TdsRateEntityModel } from "../model/tds_rate.entity.model";
|
|
56
42
|
import { TdsRateVoucherTypeMappingEntityModel } from "../model/tds_rate_voucher_type_mapping.entity.model";
|
|
57
43
|
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";
|
|
60
44
|
import { UserEntityModel } from "../model/user.entity.model";
|
|
61
45
|
import { VendorEntityModel } from "../model/vendor.entity.model";
|
|
62
|
-
import { VendorHistoryEntityModel } from "../model/vendor_history.entity.model";
|
|
63
46
|
import { VendorInvoiceEntityModel } from "../model/vendor_invoice.entity.model";
|
|
64
|
-
import { VendorInvoiceHistoryEntityModel } from "../model/vendor_invoice_history.entity.model";
|
|
65
47
|
import { VendorInvoiceItemEntityModel } from "../model/vendor_invoice_item.entity.model";
|
|
66
|
-
import { VendorInvoiceItemHistoryEntityModel } from "../model/vendor_invoice_item_history.entity.model";
|
|
67
48
|
import { VoucherTypeEntityModel } from "../model/voucher_type.entity.model";
|
|
68
49
|
import { WebsiteLeadEntityModel } from "../model/website_lead.entity.model";
|
|
69
50
|
import { WebsiteNewsletterSubscriptionEntityModel } from "../model/website_newsletter_subscription.entity.model";
|
|
70
51
|
import { WorkFromHomeEntityModel } from "../model/work-from-home.entity.model";
|
|
71
|
-
import { WorkFromHomeHistoryEntityModel } from "../model/work_from_home_history.entity.model";
|
|
72
52
|
import { IAddressBookEntity } from "./address-book.entity.interface";
|
|
73
53
|
import { IBankEntity } from "./bank.entity.interface";
|
|
74
54
|
import { IBankHistoryEntity } from "./bank_history.entity.interface";
|
|
75
|
-
import { IBillingReimbursementExpenseHistoryEntity } from "./billing-reimbursement-expense-history.entity.interface";
|
|
76
55
|
import { IBillingReimbursementExpenseEntity } from "./billing-reimbursement-expense.entity.interface";
|
|
77
56
|
import { IBillingTransactionHistoryEntity } from "./billing-transaction-history.entity";
|
|
78
57
|
import { IBillingEntity } from "./billing.entity.interface";
|
|
79
|
-
import { IBillingHistoryEntity } from "./billing_history.entity.interface";
|
|
80
58
|
import { IBillingPaymentEntity } from "./billing_payment.entity.interface";
|
|
59
|
+
import { IBillingProfileEntity } from "./billing_profile.entity.interface";
|
|
81
60
|
import { IBillingTimesheetEntity } from "./billing_timesheet.entity.interface";
|
|
82
|
-
import { IBillingTimesheetHistoryEntity } from "./billing_timesheet_history.entity.interface";
|
|
83
61
|
import { IBillingTransactionEntity } from "./billing_transaction.entity.interface";
|
|
84
62
|
import { IClientEntity, IClientIntroducingMappingEntity, IClientUserMappingEntity } from "./client.entity.interface";
|
|
85
63
|
import { IClientAffiliateEntity } from "./client_affiliate_entity.interface";
|
|
@@ -109,7 +87,6 @@ import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.inte
|
|
|
109
87
|
import { IRateEntity } from "./rate.entity.interface";
|
|
110
88
|
import { IReimbursementEntity } from "./reimbursement.entity.interface";
|
|
111
89
|
import { IReimbursementExpenseEntity } from "./reimbursement_expense.entity.interface";
|
|
112
|
-
import { IReimbursementHistoryEntity } from "./reimbursement_history.entity.interface";
|
|
113
90
|
import { IRoleEntity } from "./role.entity.interface";
|
|
114
91
|
import { IRolePermissionMappingEntity } from "./role.permission.mapping.entity.interface";
|
|
115
92
|
import { IStateEntity } from "./state.entity.interface";
|
|
@@ -233,7 +210,8 @@ export declare enum EntityEnum {
|
|
|
233
210
|
VENDOR_INVOICE_ITEM_HISTORY = "vendor_invoice_item_history",
|
|
234
211
|
VENDOR_HISTORY = "vendor_history",
|
|
235
212
|
CLIENT_QUOTE = "client_quote",
|
|
236
|
-
CLIENT_QUOTE_RATE = "client_quote_rate"
|
|
213
|
+
CLIENT_QUOTE_RATE = "client_quote_rate",
|
|
214
|
+
BILLING_PROFILE = "billing_profile"
|
|
237
215
|
}
|
|
238
216
|
export type EntityRelations = {
|
|
239
217
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -252,7 +230,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
252
230
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
253
231
|
};
|
|
254
232
|
};
|
|
255
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.
|
|
233
|
+
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 : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : never) & {
|
|
256
234
|
id: number;
|
|
257
235
|
};
|
|
258
236
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -376,7 +354,7 @@ export declare enum VirtualEntityEnum {
|
|
|
376
354
|
}
|
|
377
355
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
378
356
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
379
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.
|
|
357
|
+
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.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : UserEntityModel;
|
|
380
358
|
export type EntityMap = {
|
|
381
359
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
382
360
|
};
|
|
@@ -97,6 +97,7 @@ var EntityEnum;
|
|
|
97
97
|
EntityEnum["VENDOR_HISTORY"] = "vendor_history";
|
|
98
98
|
EntityEnum["CLIENT_QUOTE"] = "client_quote";
|
|
99
99
|
EntityEnum["CLIENT_QUOTE_RATE"] = "client_quote_rate";
|
|
100
|
+
EntityEnum["BILLING_PROFILE"] = "billing_profile";
|
|
100
101
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
101
102
|
var VirtualEntityEnum;
|
|
102
103
|
(function (VirtualEntityEnum) {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { BillingProfileName } from "../enums/billing_profile.enum";
|
|
2
|
+
import { IBillingProfileEntity } from "../interface/billing_profile.entity.interface";
|
|
3
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
4
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
+
export declare class BillingProfileEntityModel extends BaseEntityModel<EntityEnum.BILLING_PROFILE> implements IBillingProfileEntity {
|
|
6
|
+
id: number;
|
|
7
|
+
name: BillingProfileName;
|
|
8
|
+
logoFilePath: string;
|
|
9
|
+
pan: string;
|
|
10
|
+
createdOn: number;
|
|
11
|
+
updatedOn: number;
|
|
12
|
+
createdBy: number;
|
|
13
|
+
updatedBy: number;
|
|
14
|
+
constructor();
|
|
15
|
+
static fromEntity(entity: IBillingProfileEntity): BillingProfileEntityModel;
|
|
16
|
+
getRelationConfigs(): any[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BillingProfileEntityModel = void 0;
|
|
4
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
5
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
6
|
+
class BillingProfileEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
7
|
+
constructor() {
|
|
8
|
+
super(entity_utils_interface_1.EntityEnum.BILLING_PROFILE);
|
|
9
|
+
this.id = 0;
|
|
10
|
+
this.name = "";
|
|
11
|
+
this.logoFilePath = "";
|
|
12
|
+
this.pan = "";
|
|
13
|
+
this.createdOn = 0;
|
|
14
|
+
this.updatedOn = 0;
|
|
15
|
+
this.createdBy = 0;
|
|
16
|
+
this.updatedBy = 0;
|
|
17
|
+
}
|
|
18
|
+
static fromEntity(entity) {
|
|
19
|
+
const model = new BillingProfileEntityModel();
|
|
20
|
+
Object.assign(model, entity);
|
|
21
|
+
return model;
|
|
22
|
+
}
|
|
23
|
+
getRelationConfigs() {
|
|
24
|
+
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.BillingProfileEntityModel = BillingProfileEntityModel;
|
|
@@ -12,49 +12,35 @@ exports.removeEntityById = removeEntityById;
|
|
|
12
12
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
13
13
|
const address_book_model_1 = require("./address_book.model");
|
|
14
14
|
const bank_entity_model_1 = require("./bank.entity.model");
|
|
15
|
-
const bank_history_entity_model_1 = require("./bank_history.entity.model");
|
|
16
15
|
const base_entity_model_1 = require("./base.entity.model");
|
|
17
|
-
const
|
|
16
|
+
const billing_profile_entity_model_1 = require("./billing-profile.entity.model");
|
|
18
17
|
const billing_reimbursement_expense_entity_model_1 = require("./billing-reimbursement-expense.entity.model");
|
|
19
18
|
const billing_timesheet_entity_model_1 = require("./billing-timesheet.entity.model");
|
|
20
|
-
const billing_transaction_history_entity_model_1 = require("./billing-transaction-history.entity.model");
|
|
21
19
|
const billing_transaction_model_1 = require("./billing-transaction.model");
|
|
22
20
|
const billing_entity_model_1 = require("./billing.entity.model");
|
|
23
|
-
const billing_history_entity_model_1 = require("./billing_history.entity.model");
|
|
24
|
-
const billing_payment_entity_model_1 = require("./billing_payment.entity.model");
|
|
25
|
-
const billing_timesheet_history_entity_model_1 = require("./billing_timesheet_history.entity.model");
|
|
26
21
|
const client_affiliate_entity_model_1 = require("./client-affiliate.entity.model");
|
|
27
|
-
const client_introducing_mapping_entity_model_1 = require("./client-introducing-mapping.entity.model");
|
|
28
|
-
const client_user_mapping_entity_model_1 = require("./client-user-mapping.entity.model");
|
|
29
22
|
const client_entity_model_1 = require("./client.entity.model");
|
|
30
23
|
const client_quote_entity_model_1 = require("./client_quote.entity.model");
|
|
31
24
|
const client_quote_rate_entity_model_1 = require("./client_quote_rate.entity.model");
|
|
32
25
|
const configuration_model_1 = require("./configuration.model");
|
|
33
26
|
const country_entity_model_1 = require("./country.entity.model");
|
|
34
|
-
const cron_jobs_entity_model_1 = require("./cron_jobs.entity.model");
|
|
35
27
|
const designation_entity_model_1 = require("./designation.entity.model");
|
|
36
28
|
const document_upload_entity_model_1 = require("./document_upload.entity.model");
|
|
37
29
|
const expense_head_entity_model_1 = require("./expense_head.entity.model");
|
|
38
|
-
const expense_type_entity_model_1 = require("./expense_type.entity.model");
|
|
39
30
|
const gst_rate_entity_model_1 = require("./gst_rate.entity.model");
|
|
40
31
|
const holiday_entity_model_1 = require("./holiday.entity.model");
|
|
41
|
-
const holiday_list_entity_model_1 = require("./holiday_list.entity.model");
|
|
42
|
-
const industry_entity_model_1 = require("./industry.entity.model");
|
|
43
32
|
const intermediary_bank_entity_model_1 = require("./intermediary-bank.entity.model");
|
|
44
33
|
const leave_entity_model_1 = require("./leave.entity.model");
|
|
45
34
|
const leave_count_entity_model_1 = require("./leave_count.entity.model");
|
|
46
|
-
const leave_history_entity_model_1 = require("./leave_history.entity.model");
|
|
47
35
|
const office_location_entity_model_1 = require("./office_location.entity.model");
|
|
48
|
-
const organization_entity_model_1 = require("./organization.entity.model");
|
|
49
36
|
const organization_type_entity_model_1 = require("./organization_type.entity.model");
|
|
50
37
|
const organization_type_tds_rate_mapping_entity_model_1 = require("./organization_type_tds_rate_mapping.entity.model");
|
|
51
38
|
const permissions_entity_model_1 = require("./permissions.entity.model");
|
|
52
39
|
const project_user_mapping_entity_model_1 = require("./project-user-mapping.entity.model");
|
|
53
40
|
const project_entity_model_1 = require("./project.entity.model");
|
|
54
|
-
const
|
|
41
|
+
const rate_model_1 = require("./rate.model");
|
|
55
42
|
const reimbursement_expense_entity_model_1 = require("./reimbursement-expense.entity.model");
|
|
56
43
|
const reimbursement_entity_model_1 = require("./reimbursement.entity.model");
|
|
57
|
-
const reimbursement_history_entity_model_1 = require("./reimbursement_history.entity.model");
|
|
58
44
|
const role_permission_entity_model_1 = require("./role-permission.entity.model");
|
|
59
45
|
const role_entity_model_1 = require("./role.entity.model");
|
|
60
46
|
const state_entity_model_1 = require("./state.entity.model");
|
|
@@ -62,20 +48,14 @@ const task_entity_model_1 = require("./task.entity.model");
|
|
|
62
48
|
const tds_rate_entity_model_1 = require("./tds_rate.entity.model");
|
|
63
49
|
const tds_rate_voucher_type_mapping_entity_model_1 = require("./tds_rate_voucher_type_mapping.entity.model");
|
|
64
50
|
const timesheet_entity_model_1 = require("./timesheet.entity.model");
|
|
65
|
-
const timesheet_history_entity_model_1 = require("./timesheet_history.entity.model");
|
|
66
|
-
const to_do_list_entity_model_1 = require("./to_do_list.entity.model");
|
|
67
51
|
const user_entity_model_1 = require("./user.entity.model");
|
|
68
52
|
const vendor_entity_model_1 = require("./vendor.entity.model");
|
|
69
|
-
const vendor_history_entity_model_1 = require("./vendor_history.entity.model");
|
|
70
53
|
const vendor_invoice_entity_model_1 = require("./vendor_invoice.entity.model");
|
|
71
|
-
const vendor_invoice_history_entity_model_1 = require("./vendor_invoice_history.entity.model");
|
|
72
54
|
const vendor_invoice_item_entity_model_1 = require("./vendor_invoice_item.entity.model");
|
|
73
|
-
const vendor_invoice_item_history_entity_model_1 = require("./vendor_invoice_item_history.entity.model");
|
|
74
55
|
const voucher_type_entity_model_1 = require("./voucher_type.entity.model");
|
|
75
56
|
const website_lead_entity_model_1 = require("./website_lead.entity.model");
|
|
76
57
|
const website_newsletter_subscription_entity_model_1 = require("./website_newsletter_subscription.entity.model");
|
|
77
58
|
const work_from_home_entity_model_1 = require("./work-from-home.entity.model");
|
|
78
|
-
const work_from_home_history_entity_model_1 = require("./work_from_home_history.entity.model");
|
|
79
59
|
function mapToIndex(entityMap) {
|
|
80
60
|
return Object.keys(entityMap).reduce((acc, key) => {
|
|
81
61
|
// @ts-ignore
|
|
@@ -107,39 +87,27 @@ exports.entityEnumToEntityModel = {
|
|
|
107
87
|
[entity_utils_interface_1.EntityEnum.PROJECT]: project_entity_model_1.ProjectEntityModel.fromEntity,
|
|
108
88
|
[entity_utils_interface_1.EntityEnum.CLIENT]: client_entity_model_1.ClientEntityModel.fromEntity,
|
|
109
89
|
[entity_utils_interface_1.EntityEnum.BILLING]: billing_entity_model_1.BillingEntityModel.fromEntity,
|
|
110
|
-
[entity_utils_interface_1.EntityEnum.BILLING_HISTORY]: billing_history_entity_model_1.BillingHistoryEntityModel.fromEntity,
|
|
111
90
|
[entity_utils_interface_1.EntityEnum.USER]: user_entity_model_1.UserEntityModel.fromEntity,
|
|
112
91
|
[entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING]: project_user_mapping_entity_model_1.ProjectUserMappingEntityModel.fromEntity,
|
|
113
92
|
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT]: reimbursement_entity_model_1.ReimbursementEntityModel.fromEntity,
|
|
114
93
|
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT_EXPENSE]: reimbursement_expense_entity_model_1.ReimbursementExpenseEntityModel.fromEntity,
|
|
115
|
-
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT_HISTORY]: reimbursement_history_entity_model_1.ReimbursementHistoryEntityModel.fromEntity,
|
|
116
94
|
[entity_utils_interface_1.EntityEnum.BILLING_REIMBURSEMENT_EXPENSE]: billing_reimbursement_expense_entity_model_1.BillingReimbursementExpneseEntityModel.fromEntity,
|
|
117
|
-
[entity_utils_interface_1.EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY]: billing_reimbursement_expense_history_entity_model_1.BillingReimbursementExpenseHistoryEntityModel.fromEntity,
|
|
118
95
|
[entity_utils_interface_1.EntityEnum.HOLIDAY]: holiday_entity_model_1.HolidayEntityModel.fromEntity,
|
|
119
|
-
[entity_utils_interface_1.EntityEnum.HOLIDAY_LIST]: holiday_list_entity_model_1.HolidayListEntityModel.fromEntity,
|
|
120
96
|
[entity_utils_interface_1.EntityEnum.LEAVE]: leave_entity_model_1.LeaveEntityModel.fromEntity,
|
|
121
|
-
[entity_utils_interface_1.EntityEnum.LEAVE_HISTORY]: leave_history_entity_model_1.LeaveHistoryEntityModel.fromEntity,
|
|
122
97
|
[entity_utils_interface_1.EntityEnum.WORK_FROM_HOME]: work_from_home_entity_model_1.WorkFromHomeEntityModel.fromEntity,
|
|
123
|
-
[entity_utils_interface_1.EntityEnum.WORK_FROM_HOME_HISTORY]: work_from_home_history_entity_model_1.WorkFromHomeHistoryEntityModel.fromEntity,
|
|
124
98
|
[entity_utils_interface_1.VirtualEntityEnum.LEAVE_COUNT]: leave_count_entity_model_1.LeaveCountVirtualEntityModel.fromEntity,
|
|
125
99
|
// Add other entities here as needed
|
|
126
100
|
[entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.fromEntity,
|
|
127
101
|
[entity_utils_interface_1.EntityEnum.BANK]: bank_entity_model_1.BankEntityModel.fromEntity,
|
|
128
|
-
[entity_utils_interface_1.EntityEnum.BANK_HISTORY]: bank_history_entity_model_1.BankHistoryEntityModel.fromEntity,
|
|
129
102
|
[entity_utils_interface_1.EntityEnum.CONFIGURATION]: configuration_model_1.ConfigurationEntityModel.fromEntity,
|
|
130
103
|
[entity_utils_interface_1.EntityEnum.TASK]: task_entity_model_1.TaskEntityModel.fromEntity,
|
|
131
104
|
[entity_utils_interface_1.EntityEnum.BILLING_TIMESHEET]: billing_timesheet_entity_model_1.BillingTimesheetEntityModel.fromEntity,
|
|
132
|
-
[entity_utils_interface_1.EntityEnum.BILLING_TIMESHEET_HISTORY]: billing_timesheet_history_entity_model_1.BillingTimesheetHistoryEntityModel.fromEntity,
|
|
133
105
|
[entity_utils_interface_1.EntityEnum.TIMESHEET]: timesheet_entity_model_1.TimesheetEntityModel.fromEntity,
|
|
134
|
-
[entity_utils_interface_1.EntityEnum.TIMESHEET_HISTORY]: timesheet_history_entity_model_1.TimesheetHistoryEntityModel.fromEntity,
|
|
135
106
|
[entity_utils_interface_1.EntityEnum.COUNTRY]: country_entity_model_1.CountryEntityModel.fromApiEntity,
|
|
136
107
|
[entity_utils_interface_1.EntityEnum.ADDRESS_BOOK]: address_book_model_1.AddressBookEntityModel.fromEntity,
|
|
137
108
|
[entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION]: billing_transaction_model_1.BillingTransactionEntityModel.fromEntity,
|
|
138
|
-
[entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION_HISTORY]: billing_transaction_history_entity_model_1.BillingTransactionHistoryEntityModel.fromEntity,
|
|
139
|
-
[entity_utils_interface_1.EntityEnum.BILLING_PAYMENT]: billing_payment_entity_model_1.BillingPaymentEntityModel.fromEntity,
|
|
140
109
|
[entity_utils_interface_1.EntityEnum.STATE]: state_entity_model_1.StateEntityModel.fromEntity,
|
|
141
110
|
[entity_utils_interface_1.EntityEnum.GST_RATE]: gst_rate_entity_model_1.GstRateEntityModel.fromEntity,
|
|
142
|
-
[entity_utils_interface_1.EntityEnum.ORGANIZATION]: organization_entity_model_1.OrganizationEntityModel.fromEntity,
|
|
143
111
|
[entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE]: organization_type_entity_model_1.OrganizationTypeEntityModel.fromEntity,
|
|
144
112
|
[entity_utils_interface_1.EntityEnum.TDS_RATE]: tds_rate_entity_model_1.TdsRateEntityModel.fromEntity,
|
|
145
113
|
[entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING]: organization_type_tds_rate_mapping_entity_model_1.OrganizationTypeTdsRateMappingEntityModel.fromEntity,
|
|
@@ -149,27 +117,19 @@ exports.entityEnumToEntityModel = {
|
|
|
149
117
|
[entity_utils_interface_1.EntityEnum.VOUCHER_TYPE]: voucher_type_entity_model_1.VoucherTypeEntityModel.fromEntity,
|
|
150
118
|
[entity_utils_interface_1.EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING]: tds_rate_voucher_type_mapping_entity_model_1.TdsRateVoucherTypeMappingEntityModel.fromEntity,
|
|
151
119
|
[entity_utils_interface_1.EntityEnum.EXPENSE_HEAD]: expense_head_entity_model_1.ExpenseHeadEntityModel.fromEntity,
|
|
152
|
-
[entity_utils_interface_1.EntityEnum.EXPENSE_TYPE]: expense_type_entity_model_1.ExpenseTypeEntityModel.fromEntity,
|
|
153
|
-
[entity_utils_interface_1.EntityEnum.INDUSTRY]: industry_entity_model_1.IndustryEntityModel.fromEntity,
|
|
154
120
|
[entity_utils_interface_1.EntityEnum.INTERMEDIARY_BANK]: intermediary_bank_entity_model_1.IntermediaryBankEntityModel.fromEntity,
|
|
155
121
|
[entity_utils_interface_1.EntityEnum.DOCUMENT_UPLOAD]: document_upload_entity_model_1.DocumentUploadEntityModel.fromEntity,
|
|
156
122
|
[entity_utils_interface_1.EntityEnum.VENDOR]: vendor_entity_model_1.VendorEntityModel.fromEntity,
|
|
157
|
-
[entity_utils_interface_1.EntityEnum.VENDOR_HISTORY]: vendor_history_entity_model_1.VendorHistoryEntityModel.fromEntity,
|
|
158
123
|
[entity_utils_interface_1.EntityEnum.VENDOR_INVOICE]: vendor_invoice_entity_model_1.VendorInvoiceEntityModel.fromEntity,
|
|
159
|
-
[entity_utils_interface_1.EntityEnum.VENDOR_INVOICE_HISTORY]: vendor_invoice_history_entity_model_1.VendorInvoiceHistoryEntityModel.fromEntity,
|
|
160
124
|
[entity_utils_interface_1.EntityEnum.VENDOR_INVOICE_ITEM]: vendor_invoice_item_entity_model_1.VendorInvoiceItemEntityModel.fromEntity,
|
|
161
|
-
[entity_utils_interface_1.EntityEnum.VENDOR_INVOICE_ITEM_HISTORY]: vendor_invoice_item_history_entity_model_1.VendorInvoiceItemHistoryEntityModel.fromEntity,
|
|
162
125
|
[entity_utils_interface_1.EntityEnum.OFFICE_LOCATION]: office_location_entity_model_1.OfficeLocationEntityModel.fromEntity,
|
|
163
|
-
[entity_utils_interface_1.EntityEnum.CLIENT_USER_MAPPING]: client_user_mapping_entity_model_1.ClientUserMappingEntityModel.fromEntity,
|
|
164
|
-
[entity_utils_interface_1.EntityEnum.CLIENT_INTRODUCING_MAPPING]: client_introducing_mapping_entity_model_1.ClientIntroducingMappingEntityModel.fromEntity,
|
|
165
|
-
[entity_utils_interface_1.EntityEnum.CRON_JOBS]: cron_jobs_entity_model_1.CronJobsEntityModel.fromEntity,
|
|
166
|
-
[entity_utils_interface_1.EntityEnum.TO_DO_LIST]: to_do_list_entity_model_1.ToDoListEntityModel.fromEntity,
|
|
167
|
-
[entity_utils_interface_1.EntityEnum.DESIGNATION]: designation_entity_model_1.DesignationEntityModel.fromEntity,
|
|
168
|
-
[entity_utils_interface_1.EntityEnum.RATE]: rate_entity_model_1.RateEntityModel.fromEntity,
|
|
169
126
|
[entity_utils_interface_1.EntityEnum.WEBSITE_LEAD]: website_lead_entity_model_1.WebsiteLeadEntityModel.fromEntity,
|
|
170
127
|
[entity_utils_interface_1.EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION]: website_newsletter_subscription_entity_model_1.WebsiteNewsletterSubscriptionEntityModel.fromEntity,
|
|
171
128
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE]: client_quote_entity_model_1.ClientQuoteEntityModel.fromEntity,
|
|
172
129
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE_RATE]: client_quote_rate_entity_model_1.ClientQuoteRateEntityModel.fromEntity,
|
|
130
|
+
[entity_utils_interface_1.EntityEnum.DESIGNATION]: designation_entity_model_1.DesignationEntityModel.fromEntity,
|
|
131
|
+
[entity_utils_interface_1.EntityEnum.RATE]: rate_model_1.RateEntityModel.fromEntity,
|
|
132
|
+
[entity_utils_interface_1.EntityEnum.BILLING_PROFILE]: billing_profile_entity_model_1.BillingProfileEntityModel.fromEntity,
|
|
173
133
|
};
|
|
174
134
|
function entityMapToModels(entityMap) {
|
|
175
135
|
for (const entityName in entityMap) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
2
|
-
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
3
2
|
import { BaseEntityModel } from "./base.entity.model";
|
|
3
|
+
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
4
4
|
import { IWebsiteNewsletterSubscriptionEntity } from "../interface/website_newsletter_subscription.entity.interface";
|
|
5
5
|
export declare class WebsiteNewsletterSubscriptionEntityModel extends BaseEntityModel<EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION> implements IWebsiteNewsletterSubscriptionEntity {
|
|
6
6
|
id: number;
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { EntityEnum, IBaseHistoryEntity } from "../interface/entity.utils.interface";
|
|
2
|
-
import { BaseHistoryEntityModel } from "./base_history.entity.model";
|
|
3
|
-
export declare class BankHistoryEntityModel extends BaseHistoryEntityModel<EntityEnum.BANK_HISTORY> {
|
|
4
|
-
static fromEntity(entity: IBaseHistoryEntity): BankHistoryEntityModel;
|
|
5
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BankHistoryEntityModel = void 0;
|
|
4
|
-
// import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
5
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
6
|
-
// import { IBankHistoryEntity } from "../interface/bank_history.entity.interface";
|
|
7
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
8
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
9
|
-
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
10
|
-
const base_history_entity_model_1 = require("./base_history.entity.model");
|
|
11
|
-
class BankHistoryEntityModel extends base_history_entity_model_1.BaseHistoryEntityModel {
|
|
12
|
-
static fromEntity(entity) {
|
|
13
|
-
return base_history_entity_model_1.BaseHistoryEntityModel.createFromEntity(entity_utils_interface_1.EntityEnum.BANK_HISTORY, entity);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
exports.BankHistoryEntityModel = BankHistoryEntityModel;
|
|
17
|
-
// export class BankHistoryEntityModel extends BaseEntityModel<EntityEnum.BANK_HISTORY> implements IBankHistoryEntity {
|
|
18
|
-
// id: number = 0;
|
|
19
|
-
// entityId: number = 0;
|
|
20
|
-
// operation: HistoryOperationEnum = HistoryOperationEnum.CREATE;
|
|
21
|
-
// data: string = "";
|
|
22
|
-
// createdOn: number = 0;
|
|
23
|
-
// updatedOn: number = 0;
|
|
24
|
-
// createdBy: number = 0;
|
|
25
|
-
// updatedBy: number = 0;
|
|
26
|
-
// static relationConfigs: RelationConfigs<[], EntityEnum.BANK_HISTORY> = [];
|
|
27
|
-
// static fromEntity(entity: IBankHistoryEntity): BankHistoryEntityModel {
|
|
28
|
-
// const result = new BankHistoryEntityModel(EntityEnum.BANK_HISTORY);
|
|
29
|
-
// Object.assign(result, entity);
|
|
30
|
-
// return result;
|
|
31
|
-
// }
|
|
32
|
-
// getRelationConfigs() {
|
|
33
|
-
// return BankHistoryEntityModel.relationConfigs;
|
|
34
|
-
// }
|
|
35
|
-
// }
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
-
import { EntityEnum, IBaseHistoryEntity } from "../interface/entity.utils.interface";
|
|
3
|
-
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
4
|
-
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
-
export declare class BaseHistoryEntityModel<E extends EntityEnum> extends BaseEntityModel<E> implements IBaseHistoryEntity {
|
|
6
|
-
id: number;
|
|
7
|
-
entityId: number;
|
|
8
|
-
operation: HistoryOperationEnum;
|
|
9
|
-
data: string;
|
|
10
|
-
createdOn: number;
|
|
11
|
-
updatedOn: number;
|
|
12
|
-
createdBy: number;
|
|
13
|
-
updatedBy: number;
|
|
14
|
-
static relationConfigs: RelationConfigs<[], EntityEnum>;
|
|
15
|
-
static createFromEntity<E extends EntityEnum>(entityEnum: E, entity: IBaseHistoryEntity): BaseHistoryEntityModel<E>;
|
|
16
|
-
getRelationConfigs(): [];
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BaseHistoryEntityModel = void 0;
|
|
4
|
-
const history_operation_enum_1 = require("../enums/history_operation.enum");
|
|
5
|
-
const base_entity_model_1 = require("./base.entity.model");
|
|
6
|
-
class BaseHistoryEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments);
|
|
9
|
-
this.id = 0;
|
|
10
|
-
this.entityId = 0;
|
|
11
|
-
this.operation = history_operation_enum_1.HistoryOperationEnum.CREATE;
|
|
12
|
-
this.data = "";
|
|
13
|
-
this.createdOn = 0;
|
|
14
|
-
this.updatedOn = 0;
|
|
15
|
-
this.createdBy = 0;
|
|
16
|
-
this.updatedBy = 0;
|
|
17
|
-
}
|
|
18
|
-
// Renamed to avoid collision with subclass overrides
|
|
19
|
-
static createFromEntity(entityEnum, entity) {
|
|
20
|
-
const result = new BaseHistoryEntityModel(entityEnum);
|
|
21
|
-
Object.assign(result, entity);
|
|
22
|
-
return result;
|
|
23
|
-
}
|
|
24
|
-
getRelationConfigs() {
|
|
25
|
-
return BaseHistoryEntityModel.relationConfigs;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
exports.BaseHistoryEntityModel = BaseHistoryEntityModel;
|
|
29
|
-
BaseHistoryEntityModel.relationConfigs = [];
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { EntityEnum, IBaseHistoryEntity } from "../interface/entity.utils.interface";
|
|
2
|
-
import { BaseHistoryEntityModel } from "./base_history.entity.model";
|
|
3
|
-
export declare class BillingReimbursementExpenseHistoryEntityModel extends BaseHistoryEntityModel<EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY> {
|
|
4
|
-
static fromEntity(entity: IBaseHistoryEntity): BillingReimbursementExpenseHistoryEntityModel;
|
|
5
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BillingReimbursementExpenseHistoryEntityModel = void 0;
|
|
4
|
-
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
5
|
-
const base_history_entity_model_1 = require("./base_history.entity.model");
|
|
6
|
-
class BillingReimbursementExpenseHistoryEntityModel extends base_history_entity_model_1.BaseHistoryEntityModel {
|
|
7
|
-
static fromEntity(entity) {
|
|
8
|
-
return base_history_entity_model_1.BaseHistoryEntityModel.createFromEntity(entity_utils_interface_1.EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY, entity);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.BillingReimbursementExpenseHistoryEntityModel = BillingReimbursementExpenseHistoryEntityModel;
|
|
12
|
-
// import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
13
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
14
|
-
// import { IBillingReimbursementExpenseHistoryEntity } from "../interface/billing-reimbursement-expense-history.entity.interface";
|
|
15
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
16
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
17
|
-
// export class BillingReimbursementExpenseHistoryEntityModel
|
|
18
|
-
// extends BaseEntityModel<EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY>
|
|
19
|
-
// implements IBillingReimbursementExpenseHistoryEntity
|
|
20
|
-
// {
|
|
21
|
-
// id: number = 0;
|
|
22
|
-
// entityId: number = 0;
|
|
23
|
-
// operation: HistoryOperationEnum = HistoryOperationEnum.CREATE;
|
|
24
|
-
// data: string = "";
|
|
25
|
-
// createdOn: number = 0;
|
|
26
|
-
// updatedOn: number = 0;
|
|
27
|
-
// createdBy: number = 0;
|
|
28
|
-
// updatedBy: number = 0;
|
|
29
|
-
// static relationConfigs: RelationConfigs<[], EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY> = [];
|
|
30
|
-
// static fromEntity(entity: IBillingReimbursementExpenseHistoryEntity): BillingReimbursementExpenseHistoryEntityModel {
|
|
31
|
-
// const result = new BillingReimbursementExpenseHistoryEntityModel(EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY);
|
|
32
|
-
// Object.assign(result, entity);
|
|
33
|
-
// return result;
|
|
34
|
-
// }
|
|
35
|
-
// getRelationConfigs() {
|
|
36
|
-
// return BillingReimbursementExpenseHistoryEntityModel.relationConfigs;
|
|
37
|
-
// }
|
|
38
|
-
// }
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { EntityEnum, IBaseHistoryEntity } from "../interface/entity.utils.interface";
|
|
2
|
-
import { BaseHistoryEntityModel } from "./base_history.entity.model";
|
|
3
|
-
export declare class BillingTransactionHistoryEntityModel extends BaseHistoryEntityModel<EntityEnum.BILLING_TRANSACTION_HISTORY> {
|
|
4
|
-
static fromEntity(entity: IBaseHistoryEntity): BillingTransactionHistoryEntityModel;
|
|
5
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BillingTransactionHistoryEntityModel = void 0;
|
|
4
|
-
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
5
|
-
const base_history_entity_model_1 = require("./base_history.entity.model");
|
|
6
|
-
class BillingTransactionHistoryEntityModel extends base_history_entity_model_1.BaseHistoryEntityModel {
|
|
7
|
-
static fromEntity(entity) {
|
|
8
|
-
return base_history_entity_model_1.BaseHistoryEntityModel.createFromEntity(entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION_HISTORY, entity);
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.BillingTransactionHistoryEntityModel = BillingTransactionHistoryEntityModel;
|
|
12
|
-
// import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
13
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
14
|
-
// import { IBillingTransactionHistoryEntity } from "../interface/billing-transaction-history.entity";
|
|
15
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
16
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
17
|
-
// export class BillingTransactionHistoryEntityModel
|
|
18
|
-
// extends BaseEntityModel<EntityEnum.BILLING_TRANSACTION_HISTORY>
|
|
19
|
-
// implements IBillingTransactionHistoryEntity
|
|
20
|
-
// {
|
|
21
|
-
// id: number = 0;
|
|
22
|
-
// entityId: number = 0;
|
|
23
|
-
// operation: HistoryOperationEnum = HistoryOperationEnum.CREATE;
|
|
24
|
-
// data: string = "";
|
|
25
|
-
// createdOn: number = 0;
|
|
26
|
-
// updatedOn: number = 0;
|
|
27
|
-
// createdBy: number = 0;
|
|
28
|
-
// updatedBy: number = 0;
|
|
29
|
-
// static relationConfigs: RelationConfigs<[], EntityEnum.BILLING_TRANSACTION_HISTORY> = [];
|
|
30
|
-
// static fromEntity(entity: IBillingTransactionHistoryEntity): BillingTransactionHistoryEntityModel {
|
|
31
|
-
// const result = new BillingTransactionHistoryEntityModel(EntityEnum.BILLING_TRANSACTION_HISTORY);
|
|
32
|
-
// Object.assign(result, entity);
|
|
33
|
-
// return result;
|
|
34
|
-
// }
|
|
35
|
-
// getRelationConfigs() {
|
|
36
|
-
// return BillingTransactionHistoryEntityModel.relationConfigs;
|
|
37
|
-
// }
|
|
38
|
-
// }
|