law-common 10.64.2-beta.1 → 10.64.2-beta.3
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/entities/interface/client_affiliate_entity.interface.d.ts +3 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +3 -28
- package/dist/src/entities/model/client-affiliate.entity.model.d.ts +3 -0
- package/dist/src/entities/model/client-affiliate.entity.model.js +3 -0
- package/dist/src/entities/model/entity.model.interface.js +3 -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/billing-reimbursement-expense-history.entity.model.d.ts +0 -18
- package/dist/src/entities/model/billing-reimbursement-expense-history.entity.model.js +0 -29
- package/dist/src/entities/model/billing-transaction-history.entity.model.d.ts +0 -18
- package/dist/src/entities/model/billing-transaction-history.entity.model.js +0 -29
- package/dist/src/entities/model/billing_history.entity.model.d.ts +0 -18
- package/dist/src/entities/model/billing_history.entity.model.js +0 -29
- 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 -18
- package/dist/src/entities/model/billing_timesheet_history.entity.model.js +0 -29
- 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 -18
- package/dist/src/entities/model/leave_history.entity.model.js +0 -29
- 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 -18
- package/dist/src/entities/model/reimbursement_history.entity.model.js +0 -29
- package/dist/src/entities/model/timesheet_history.entity.model.d.ts +0 -31
- package/dist/src/entities/model/timesheet_history.entity.model.js +0 -53
- 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 -18
- package/dist/src/entities/model/vendor_history.entity.model.js +0 -29
- package/dist/src/entities/model/vendor_invoice_history.entity.model.d.ts +0 -18
- package/dist/src/entities/model/vendor_invoice_history.entity.model.js +0 -29
- package/dist/src/entities/model/vendor_invoice_item_history.entity.model.d.ts +0 -18
- package/dist/src/entities/model/vendor_invoice_item_history.entity.model.js +0 -29
- package/dist/src/entities/model/work_from_home_history.entity.model.d.ts +0 -18
- package/dist/src/entities/model/work_from_home_history.entity.model.js +0 -29
|
@@ -6,6 +6,9 @@ export interface IClientAffiliateEntity extends IEntityAuditColumn {
|
|
|
6
6
|
address: string;
|
|
7
7
|
clientId: number;
|
|
8
8
|
organizationId: number;
|
|
9
|
+
primaryContactName: string;
|
|
10
|
+
primaryContact: string;
|
|
11
|
+
primaryEmail: string;
|
|
9
12
|
zipCode: string;
|
|
10
13
|
country: string;
|
|
11
14
|
details?: Nullable<string>;
|
|
@@ -6,48 +6,33 @@ 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";
|
|
11
9
|
import { BillingReimbursementExpneseEntityModel } from "../model/billing-reimbursement-expense.entity.model";
|
|
12
10
|
import { BillingTimesheetEntityModel } from "../model/billing-timesheet.entity.model";
|
|
13
|
-
import { BillingTransactionHistoryEntityModel } from "../model/billing-transaction-history.entity.model";
|
|
14
11
|
import { BillingTransactionEntityModel } from "../model/billing-transaction.model";
|
|
15
12
|
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
13
|
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
14
|
import { ClientEntityModel } from "../model/client.entity.model";
|
|
23
15
|
import { ClientQuoteEntityModel } from "../model/client_quote.entity.model";
|
|
24
16
|
import { ClientQuoteRateEntityModel } from "../model/client_quote_rate.entity.model";
|
|
25
17
|
import { ConfigurationEntityModel } from "../model/configuration.model";
|
|
26
18
|
import { CountryEntityModel } from "../model/country.entity.model";
|
|
27
|
-
import { CronJobsEntityModel } from "../model/cron_jobs.entity.model";
|
|
28
19
|
import { DesignationEntityModel } from "../model/designation.entity.model";
|
|
29
20
|
import { DocumentUploadEntityModel } from "../model/document_upload.entity.model";
|
|
30
21
|
import { ExpenseHeadEntityModel } from "../model/expense_head.entity.model";
|
|
31
|
-
import { ExpenseTypeEntityModel } from "../model/expense_type.entity.model";
|
|
32
22
|
import { GstRateEntityModel } from "../model/gst_rate.entity.model";
|
|
33
23
|
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
24
|
import { IntermediaryBankEntityModel } from "../model/intermediary-bank.entity.model";
|
|
37
25
|
import { LeaveEntityModel } from "../model/leave.entity.model";
|
|
38
26
|
import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
|
|
39
|
-
import { LeaveHistoryEntityModel } from "../model/leave_history.entity.model";
|
|
40
27
|
import { OfficeLocationEntityModel } from "../model/office_location.entity.model";
|
|
41
|
-
import { OrganizationEntityModel } from "../model/organization.entity.model";
|
|
42
28
|
import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
|
|
43
29
|
import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
|
|
44
30
|
import { PermissionEntityModel } from "../model/permissions.entity.model";
|
|
45
31
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
46
32
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
47
|
-
import { RateEntityModel } from "../model/rate.
|
|
33
|
+
import { RateEntityModel } from "../model/rate.model";
|
|
48
34
|
import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
|
|
49
35
|
import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
|
|
50
|
-
import { ReimbursementHistoryEntityModel } from "../model/reimbursement_history.entity.model";
|
|
51
36
|
import { RolePermissionMappingEntityModel } from "../model/role-permission.entity.model";
|
|
52
37
|
import { RoleEntityModel } from "../model/role.entity.model";
|
|
53
38
|
import { StateEntityModel } from "../model/state.entity.model";
|
|
@@ -55,31 +40,22 @@ import { TaskEntityModel } from "../model/task.entity.model";
|
|
|
55
40
|
import { TdsRateEntityModel } from "../model/tds_rate.entity.model";
|
|
56
41
|
import { TdsRateVoucherTypeMappingEntityModel } from "../model/tds_rate_voucher_type_mapping.entity.model";
|
|
57
42
|
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
43
|
import { UserEntityModel } from "../model/user.entity.model";
|
|
61
44
|
import { VendorEntityModel } from "../model/vendor.entity.model";
|
|
62
|
-
import { VendorHistoryEntityModel } from "../model/vendor_history.entity.model";
|
|
63
45
|
import { VendorInvoiceEntityModel } from "../model/vendor_invoice.entity.model";
|
|
64
|
-
import { VendorInvoiceHistoryEntityModel } from "../model/vendor_invoice_history.entity.model";
|
|
65
46
|
import { VendorInvoiceItemEntityModel } from "../model/vendor_invoice_item.entity.model";
|
|
66
|
-
import { VendorInvoiceItemHistoryEntityModel } from "../model/vendor_invoice_item_history.entity.model";
|
|
67
47
|
import { VoucherTypeEntityModel } from "../model/voucher_type.entity.model";
|
|
68
48
|
import { WebsiteLeadEntityModel } from "../model/website_lead.entity.model";
|
|
69
49
|
import { WebsiteNewsletterSubscriptionEntityModel } from "../model/website_newsletter_subscription.entity.model";
|
|
70
50
|
import { WorkFromHomeEntityModel } from "../model/work-from-home.entity.model";
|
|
71
|
-
import { WorkFromHomeHistoryEntityModel } from "../model/work_from_home_history.entity.model";
|
|
72
51
|
import { IAddressBookEntity } from "./address-book.entity.interface";
|
|
73
52
|
import { IBankEntity } from "./bank.entity.interface";
|
|
74
53
|
import { IBankHistoryEntity } from "./bank_history.entity.interface";
|
|
75
|
-
import { IBillingReimbursementExpenseHistoryEntity } from "./billing-reimbursement-expense-history.entity.interface";
|
|
76
54
|
import { IBillingReimbursementExpenseEntity } from "./billing-reimbursement-expense.entity.interface";
|
|
77
55
|
import { IBillingTransactionHistoryEntity } from "./billing-transaction-history.entity";
|
|
78
56
|
import { IBillingEntity } from "./billing.entity.interface";
|
|
79
|
-
import { IBillingHistoryEntity } from "./billing_history.entity.interface";
|
|
80
57
|
import { IBillingPaymentEntity } from "./billing_payment.entity.interface";
|
|
81
58
|
import { IBillingTimesheetEntity } from "./billing_timesheet.entity.interface";
|
|
82
|
-
import { IBillingTimesheetHistoryEntity } from "./billing_timesheet_history.entity.interface";
|
|
83
59
|
import { IBillingTransactionEntity } from "./billing_transaction.entity.interface";
|
|
84
60
|
import { IClientEntity, IClientIntroducingMappingEntity, IClientUserMappingEntity } from "./client.entity.interface";
|
|
85
61
|
import { IClientAffiliateEntity } from "./client_affiliate_entity.interface";
|
|
@@ -109,7 +85,6 @@ import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.inte
|
|
|
109
85
|
import { IRateEntity } from "./rate.entity.interface";
|
|
110
86
|
import { IReimbursementEntity } from "./reimbursement.entity.interface";
|
|
111
87
|
import { IReimbursementExpenseEntity } from "./reimbursement_expense.entity.interface";
|
|
112
|
-
import { IReimbursementHistoryEntity } from "./reimbursement_history.entity.interface";
|
|
113
88
|
import { IRoleEntity } from "./role.entity.interface";
|
|
114
89
|
import { IRolePermissionMappingEntity } from "./role.permission.mapping.entity.interface";
|
|
115
90
|
import { IStateEntity } from "./state.entity.interface";
|
|
@@ -252,7 +227,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
252
227
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
253
228
|
};
|
|
254
229
|
};
|
|
255
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.
|
|
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) & {
|
|
256
231
|
id: number;
|
|
257
232
|
};
|
|
258
233
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -376,7 +351,7 @@ export declare enum VirtualEntityEnum {
|
|
|
376
351
|
}
|
|
377
352
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
378
353
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
379
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.
|
|
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.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : UserEntityModel;
|
|
380
355
|
export type EntityMap = {
|
|
381
356
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
382
357
|
};
|
|
@@ -10,6 +10,9 @@ export declare class ClientAffiliateEntityModel extends BaseEntityModel<EntityEn
|
|
|
10
10
|
details?: string;
|
|
11
11
|
clientId: number;
|
|
12
12
|
organizationId: number;
|
|
13
|
+
primaryContactName: string;
|
|
14
|
+
primaryContact: string;
|
|
15
|
+
primaryEmail: string;
|
|
13
16
|
zipCode: string;
|
|
14
17
|
country: string;
|
|
15
18
|
gstNumber?: Nullable<string>;
|
|
@@ -13,6 +13,9 @@ class ClientAffiliateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
13
13
|
this.address = "";
|
|
14
14
|
this.clientId = 0;
|
|
15
15
|
this.organizationId = 0;
|
|
16
|
+
this.primaryContactName = "";
|
|
17
|
+
this.primaryContact = "";
|
|
18
|
+
this.primaryEmail = "";
|
|
16
19
|
this.zipCode = "";
|
|
17
20
|
this.country = "";
|
|
18
21
|
this.gstNumber = null;
|
|
@@ -12,49 +12,34 @@ 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 billing_reimbursement_expense_history_entity_model_1 = require("./billing-reimbursement-expense-history.entity.model");
|
|
18
16
|
const billing_reimbursement_expense_entity_model_1 = require("./billing-reimbursement-expense.entity.model");
|
|
19
17
|
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
18
|
const billing_transaction_model_1 = require("./billing-transaction.model");
|
|
22
19
|
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
20
|
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
21
|
const client_entity_model_1 = require("./client.entity.model");
|
|
30
22
|
const client_quote_entity_model_1 = require("./client_quote.entity.model");
|
|
31
23
|
const client_quote_rate_entity_model_1 = require("./client_quote_rate.entity.model");
|
|
32
24
|
const configuration_model_1 = require("./configuration.model");
|
|
33
25
|
const country_entity_model_1 = require("./country.entity.model");
|
|
34
|
-
const cron_jobs_entity_model_1 = require("./cron_jobs.entity.model");
|
|
35
26
|
const designation_entity_model_1 = require("./designation.entity.model");
|
|
36
27
|
const document_upload_entity_model_1 = require("./document_upload.entity.model");
|
|
37
28
|
const expense_head_entity_model_1 = require("./expense_head.entity.model");
|
|
38
|
-
const expense_type_entity_model_1 = require("./expense_type.entity.model");
|
|
39
29
|
const gst_rate_entity_model_1 = require("./gst_rate.entity.model");
|
|
40
30
|
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
31
|
const intermediary_bank_entity_model_1 = require("./intermediary-bank.entity.model");
|
|
44
32
|
const leave_entity_model_1 = require("./leave.entity.model");
|
|
45
33
|
const leave_count_entity_model_1 = require("./leave_count.entity.model");
|
|
46
|
-
const leave_history_entity_model_1 = require("./leave_history.entity.model");
|
|
47
34
|
const office_location_entity_model_1 = require("./office_location.entity.model");
|
|
48
|
-
const organization_entity_model_1 = require("./organization.entity.model");
|
|
49
35
|
const organization_type_entity_model_1 = require("./organization_type.entity.model");
|
|
50
36
|
const organization_type_tds_rate_mapping_entity_model_1 = require("./organization_type_tds_rate_mapping.entity.model");
|
|
51
37
|
const permissions_entity_model_1 = require("./permissions.entity.model");
|
|
52
38
|
const project_user_mapping_entity_model_1 = require("./project-user-mapping.entity.model");
|
|
53
39
|
const project_entity_model_1 = require("./project.entity.model");
|
|
54
|
-
const
|
|
40
|
+
const rate_model_1 = require("./rate.model");
|
|
55
41
|
const reimbursement_expense_entity_model_1 = require("./reimbursement-expense.entity.model");
|
|
56
42
|
const reimbursement_entity_model_1 = require("./reimbursement.entity.model");
|
|
57
|
-
const reimbursement_history_entity_model_1 = require("./reimbursement_history.entity.model");
|
|
58
43
|
const role_permission_entity_model_1 = require("./role-permission.entity.model");
|
|
59
44
|
const role_entity_model_1 = require("./role.entity.model");
|
|
60
45
|
const state_entity_model_1 = require("./state.entity.model");
|
|
@@ -62,20 +47,14 @@ const task_entity_model_1 = require("./task.entity.model");
|
|
|
62
47
|
const tds_rate_entity_model_1 = require("./tds_rate.entity.model");
|
|
63
48
|
const tds_rate_voucher_type_mapping_entity_model_1 = require("./tds_rate_voucher_type_mapping.entity.model");
|
|
64
49
|
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
50
|
const user_entity_model_1 = require("./user.entity.model");
|
|
68
51
|
const vendor_entity_model_1 = require("./vendor.entity.model");
|
|
69
|
-
const vendor_history_entity_model_1 = require("./vendor_history.entity.model");
|
|
70
52
|
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
53
|
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
54
|
const voucher_type_entity_model_1 = require("./voucher_type.entity.model");
|
|
75
55
|
const website_lead_entity_model_1 = require("./website_lead.entity.model");
|
|
76
56
|
const website_newsletter_subscription_entity_model_1 = require("./website_newsletter_subscription.entity.model");
|
|
77
57
|
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
58
|
function mapToIndex(entityMap) {
|
|
80
59
|
return Object.keys(entityMap).reduce((acc, key) => {
|
|
81
60
|
// @ts-ignore
|
|
@@ -107,39 +86,27 @@ exports.entityEnumToEntityModel = {
|
|
|
107
86
|
[entity_utils_interface_1.EntityEnum.PROJECT]: project_entity_model_1.ProjectEntityModel.fromEntity,
|
|
108
87
|
[entity_utils_interface_1.EntityEnum.CLIENT]: client_entity_model_1.ClientEntityModel.fromEntity,
|
|
109
88
|
[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
89
|
[entity_utils_interface_1.EntityEnum.USER]: user_entity_model_1.UserEntityModel.fromEntity,
|
|
112
90
|
[entity_utils_interface_1.EntityEnum.PROJECT_USER_MAPPING]: project_user_mapping_entity_model_1.ProjectUserMappingEntityModel.fromEntity,
|
|
113
91
|
[entity_utils_interface_1.EntityEnum.REIMBURSEMENT]: reimbursement_entity_model_1.ReimbursementEntityModel.fromEntity,
|
|
114
92
|
[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
93
|
[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
94
|
[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
95
|
[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
96
|
[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
97
|
[entity_utils_interface_1.VirtualEntityEnum.LEAVE_COUNT]: leave_count_entity_model_1.LeaveCountVirtualEntityModel.fromEntity,
|
|
125
98
|
// Add other entities here as needed
|
|
126
99
|
[entity_utils_interface_1.EntityEnum.CLIENT_AFFILIATE]: client_affiliate_entity_model_1.ClientAffiliateEntityModel.fromEntity,
|
|
127
100
|
[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
101
|
[entity_utils_interface_1.EntityEnum.CONFIGURATION]: configuration_model_1.ConfigurationEntityModel.fromEntity,
|
|
130
102
|
[entity_utils_interface_1.EntityEnum.TASK]: task_entity_model_1.TaskEntityModel.fromEntity,
|
|
131
103
|
[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
104
|
[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
105
|
[entity_utils_interface_1.EntityEnum.COUNTRY]: country_entity_model_1.CountryEntityModel.fromApiEntity,
|
|
136
106
|
[entity_utils_interface_1.EntityEnum.ADDRESS_BOOK]: address_book_model_1.AddressBookEntityModel.fromEntity,
|
|
137
107
|
[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
108
|
[entity_utils_interface_1.EntityEnum.STATE]: state_entity_model_1.StateEntityModel.fromEntity,
|
|
141
109
|
[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
110
|
[entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE]: organization_type_entity_model_1.OrganizationTypeEntityModel.fromEntity,
|
|
144
111
|
[entity_utils_interface_1.EntityEnum.TDS_RATE]: tds_rate_entity_model_1.TdsRateEntityModel.fromEntity,
|
|
145
112
|
[entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING]: organization_type_tds_rate_mapping_entity_model_1.OrganizationTypeTdsRateMappingEntityModel.fromEntity,
|
|
@@ -149,27 +116,18 @@ exports.entityEnumToEntityModel = {
|
|
|
149
116
|
[entity_utils_interface_1.EntityEnum.VOUCHER_TYPE]: voucher_type_entity_model_1.VoucherTypeEntityModel.fromEntity,
|
|
150
117
|
[entity_utils_interface_1.EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING]: tds_rate_voucher_type_mapping_entity_model_1.TdsRateVoucherTypeMappingEntityModel.fromEntity,
|
|
151
118
|
[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
119
|
[entity_utils_interface_1.EntityEnum.INTERMEDIARY_BANK]: intermediary_bank_entity_model_1.IntermediaryBankEntityModel.fromEntity,
|
|
155
120
|
[entity_utils_interface_1.EntityEnum.DOCUMENT_UPLOAD]: document_upload_entity_model_1.DocumentUploadEntityModel.fromEntity,
|
|
156
121
|
[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
122
|
[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
123
|
[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
124
|
[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
125
|
[entity_utils_interface_1.EntityEnum.WEBSITE_LEAD]: website_lead_entity_model_1.WebsiteLeadEntityModel.fromEntity,
|
|
170
126
|
[entity_utils_interface_1.EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION]: website_newsletter_subscription_entity_model_1.WebsiteNewsletterSubscriptionEntityModel.fromEntity,
|
|
171
127
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE]: client_quote_entity_model_1.ClientQuoteEntityModel.fromEntity,
|
|
172
128
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE_RATE]: client_quote_rate_entity_model_1.ClientQuoteRateEntityModel.fromEntity,
|
|
129
|
+
[entity_utils_interface_1.EntityEnum.DESIGNATION]: designation_entity_model_1.DesignationEntityModel.fromEntity,
|
|
130
|
+
[entity_utils_interface_1.EntityEnum.RATE]: rate_model_1.RateEntityModel.fromEntity,
|
|
173
131
|
};
|
|
174
132
|
function entityMapToModels(entityMap) {
|
|
175
133
|
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 { HistoryEntityModel } from "./timesheet_history.entity.model";
|
|
3
|
-
export declare class BankHistoryEntityModel extends HistoryEntityModel<EntityEnum.BANK_HISTORY> {
|
|
4
|
-
static fromEntity(entity: IBaseHistoryEntity): BankHistoryEntityModel;
|
|
5
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
3
|
-
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
4
|
-
// import { IBankHistoryEntity } from "../interface/bank_history.entity.interface";
|
|
5
|
-
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
6
|
-
// import { BaseEntityModel } from "./base.entity.model";
|
|
7
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.BankHistoryEntityModel = void 0;
|
|
9
|
-
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
10
|
-
const timesheet_history_entity_model_1 = require("./timesheet_history.entity.model");
|
|
11
|
-
// export class BankHistoryEntityModel extends BaseEntityModel<EntityEnum.BANK_HISTORY> implements IBankHistoryEntity {
|
|
12
|
-
// id: number = 0;
|
|
13
|
-
// entityId: number = 0;
|
|
14
|
-
// operation: HistoryOperationEnum = HistoryOperationEnum.CREATE;
|
|
15
|
-
// data: string = "";
|
|
16
|
-
// createdOn: number = 0;
|
|
17
|
-
// updatedOn: number = 0;
|
|
18
|
-
// createdBy: number = 0;
|
|
19
|
-
// updatedBy: number = 0;
|
|
20
|
-
// static relationConfigs: RelationConfigs<[], EntityEnum.BANK_HISTORY> = [];
|
|
21
|
-
// static fromEntity(entity: IBankHistoryEntity): BankHistoryEntityModel {
|
|
22
|
-
// const result = new BankHistoryEntityModel(EntityEnum.BANK_HISTORY);
|
|
23
|
-
// Object.assign(result, entity);
|
|
24
|
-
// return result;
|
|
25
|
-
// }
|
|
26
|
-
// getRelationConfigs() {
|
|
27
|
-
// return BankHistoryEntityModel.relationConfigs;
|
|
28
|
-
// }
|
|
29
|
-
// }
|
|
30
|
-
class BankHistoryEntityModel extends timesheet_history_entity_model_1.HistoryEntityModel {
|
|
31
|
-
static fromEntity(entity) {
|
|
32
|
-
return timesheet_history_entity_model_1.HistoryEntityModel.createFromEntity(entity_utils_interface_1.EntityEnum.BANK_HISTORY, entity);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
exports.BankHistoryEntityModel = BankHistoryEntityModel;
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 = [];
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 = [];
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 = [];
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,48 +0,0 @@
|
|
|
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
|
-
];
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|