law-common 11.3.19-beta.2 → 11.3.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/src/api/index.d.ts +0 -2
- package/dist/src/api/index.js +0 -2
- package/dist/src/api/interface/document_upload.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/document_upload.create.dto.interface.autocode.js +27 -0
- package/dist/src/api/interface/document_upload.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/document_upload.update.dto.interface.autocode.js +8 -0
- package/dist/src/api/interface/expense_head.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/expense_head.create.dto.interface.autocode.js +4 -0
- package/dist/src/api/interface/expense_head.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/expense_head.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.autocode.js +4 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.autocode.js +4 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/state.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/state.create.dto.interface.autocode.js +6 -0
- package/dist/src/api/interface/state.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/state.update.dto.interface.autocode.js +10 -0
- package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.js +6 -0
- package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.create.dto.interface.autocode.js +7 -0
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/tds_rate_voucher_type_mapping.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/vendor.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor.create.dto.interface.autocode.js +74 -0
- package/dist/src/api/interface/vendor.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor.update.dto.interface.autocode.js +8 -0
- package/dist/src/api/interface/vendor_invoice.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice.create.dto.interface.autocode.js +21 -0
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice.update.dto.interface.autocode.js +8 -0
- package/dist/src/api/interface/vendor_invoice_item.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice_item.create.dto.interface.autocode.js +6 -0
- package/dist/src/api/interface/vendor_invoice_item.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/vendor_invoice_item.update.dto.interface.autocode.js +6 -0
- package/dist/src/api/interface/voucher_type.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/voucher_type.create.dto.interface.autocode.js +4 -0
- package/dist/src/api/interface/voucher_type.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/voucher_type.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/website_lead.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/website_lead.create.dto.interface.autocode.js +6 -0
- package/dist/src/entities/enums/address_book_status_enum.autocode.d.ts +5 -0
- package/dist/src/entities/enums/address_book_status_enum.autocode.js +9 -0
- package/dist/src/entities/enums/expense_head_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/expense_head_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/gst_rate_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/gst_rate_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/organization_type_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/organization_type_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/state_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/state_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/tds_rate_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/tds_rate_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/vendor_contract_applicability_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_contract_applicability_enum.autocode.js +5 -0
- package/dist/src/entities/enums/vendor_gst_type_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_gst_type_enum.autocode.js +5 -0
- package/dist/src/entities/enums/vendor_invoice_action_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_invoice_action_status_enum.autocode.js +5 -0
- package/dist/src/entities/enums/vendor_invoice_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_invoice_status_enum.autocode.js +5 -0
- package/dist/src/entities/enums/vendor_location_type_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_location_type_enum.autocode.js +5 -0
- package/dist/src/entities/enums/vendor_pan_type_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/vendor_pan_type_enum.autocode.js +5 -0
- package/dist/src/entities/enums/voucher_type_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/voucher_type_status_enum.autocode.js +6 -0
- package/dist/src/entities/index.d.ts +0 -5
- package/dist/src/entities/index.js +0 -5
- package/dist/src/entities/interface/address-book.entity.interface.autocode.d.ts +13 -0
- package/dist/src/entities/interface/document_upload.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/document_upload.entity.interface.autocode.js +10 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +3 -6
- package/dist/src/entities/interface/entity.utils.interface.js +0 -1
- package/dist/src/entities/interface/expense_head.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/expense_head.entity.interface.autocode.js +8 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.js +8 -0
- package/dist/src/entities/interface/organization_type.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/organization_type.entity.interface.autocode.js +8 -0
- package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.js +7 -0
- package/dist/src/entities/interface/state.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/state.entity.interface.autocode.js +10 -0
- package/dist/src/entities/interface/tds_rate.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/tds_rate.entity.interface.autocode.js +12 -0
- package/dist/src/entities/interface/tds_rate_voucher_type_mapping.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/tds_rate_voucher_type_mapping.entity.interface.autocode.js +7 -0
- package/dist/src/entities/interface/vendor.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/vendor.entity.interface.autocode.js +24 -0
- package/dist/src/entities/interface/vendor_invoice.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/vendor_invoice.entity.interface.autocode.js +18 -0
- package/dist/src/entities/interface/vendor_invoice_item.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/vendor_invoice_item.entity.interface.autocode.js +17 -0
- package/dist/src/entities/interface/voucher_type.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/voucher_type.entity.interface.autocode.js +7 -0
- package/dist/src/entities/model/document_upload.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/document_upload.entity.model.autocode.js +25 -0
- package/dist/src/entities/model/entity.model.interface.js +42 -4
- package/dist/src/entities/model/expense_head.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/expense_head.entity.model.autocode.js +33 -0
- package/dist/src/entities/model/gst_rate.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/gst_rate.entity.model.autocode.js +22 -0
- package/dist/src/entities/model/office_location.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/office_location.entity.model.autocode.js +23 -0
- package/dist/src/entities/model/organization_type.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/organization_type.entity.model.autocode.js +22 -0
- package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.js +24 -0
- package/dist/src/entities/model/tds_rate.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/tds_rate.entity.model.autocode.js +261 -0
- package/dist/src/entities/model/tds_rate_voucher_type_mapping.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/tds_rate_voucher_type_mapping.entity.model.autocode.js +22 -0
- package/dist/src/entities/model/vendor.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/vendor.entity.model.autocode.js +60 -0
- package/dist/src/entities/model/vendor_invoice.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/vendor_invoice.entity.model.autocode.js +67 -0
- package/dist/src/entities/model/vendor_invoice_item.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/vendor_invoice_item.entity.model.autocode.js +132 -0
- package/dist/src/entities/model/voucher_type.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/voucher_type.entity.model.autocode.js +32 -0
- package/package.json +2 -3
- package/dist/src/api/interface/vendor_advance.create.dto.interface.d.ts +0 -10
- package/dist/src/api/interface/vendor_advance.create.dto.interface.js +0 -12
- package/dist/src/api/interface/vendor_advance.update.dto.interface.d.ts +0 -20
- package/dist/src/api/interface/vendor_advance.update.dto.interface.js +0 -17
- package/dist/src/entities/enums/vendor_advance_payment_mode.d.ts +0 -7
- package/dist/src/entities/enums/vendor_advance_payment_mode.js +0 -11
- package/dist/src/entities/enums/vendor_advance_status_enum.d.ts +0 -5
- package/dist/src/entities/enums/vendor_advance_status_enum.js +0 -9
- package/dist/src/entities/flow-configs/vendor_advance_flow.config.d.ts +0 -6
- package/dist/src/entities/flow-configs/vendor_advance_flow.config.js +0 -70
- package/dist/src/entities/interface/vendor_advance.entity.interface.d.ts +0 -16
- package/dist/src/entities/model/vendor_advance.entity.model.d.ts +0 -71
- package/dist/src/entities/model/vendor_advance.entity.model.js +0 -269
- /package/dist/src/entities/interface/{vendor_advance.entity.interface.js → address-book.entity.interface.autocode.js} +0 -0
|
@@ -63,7 +63,6 @@ import { TimesheetHistoryEntityModel } from "../model/timesheet_history.entity.m
|
|
|
63
63
|
import { ToDoListEntityModel } from "../model/to_do_list.entity.model";
|
|
64
64
|
import { UserEntityModel } from "../model/user.entity.model";
|
|
65
65
|
import { VendorEntityModel } from "../model/vendor.entity.model";
|
|
66
|
-
import { VendorAdvanceEntityModel } from "../model/vendor_advance.entity.model";
|
|
67
66
|
import { VendorHistoryEntityModel } from "../model/vendor_history.entity.model";
|
|
68
67
|
import { VendorInvoiceEntityModel } from "../model/vendor_invoice.entity.model";
|
|
69
68
|
import { VendorInvoiceHistoryEntityModel } from "../model/vendor_invoice_history.entity.model";
|
|
@@ -136,7 +135,6 @@ import { IUserEntity } from "./user.entity.interface";
|
|
|
136
135
|
import { IVendorHistoryEntity } from "./vendor-history.entity.interface";
|
|
137
136
|
import { IVendorInvoiceItemHistoryEntity } from "./vendor-invoice-item-history.entity.interface";
|
|
138
137
|
import { IVendorEntity } from "./vendor.entity.interface";
|
|
139
|
-
import { IVendorAdvanceEntity } from "./vendor_advance.entity.interface";
|
|
140
138
|
import { IVendorInvoiceEntity } from "./vendor_invoice.entity.interface";
|
|
141
139
|
import { IVendorInvoiceItemEntity } from "./vendor_invoice_item.entity.interface";
|
|
142
140
|
import { IVendorInvoicePaymentEntity } from "./vendor_invoice_payment.entity.interface";
|
|
@@ -257,8 +255,7 @@ export declare enum EntityEnum {
|
|
|
257
255
|
VENDOR_INVOICE_PAYMENT = "vendor_invoice_payment",
|
|
258
256
|
LEAVE_APPROVAL = "leave_approval",
|
|
259
257
|
VENDOR_TDS_LIABILITY = "vendor_tds_liability",
|
|
260
|
-
VENDOR_TDS_CHALLAN = "vendor_tds_challan"
|
|
261
|
-
VENDOR_ADVANCE = "vendor_advance"
|
|
258
|
+
VENDOR_TDS_CHALLAN = "vendor_tds_challan"
|
|
262
259
|
}
|
|
263
260
|
export type EntityRelations = {
|
|
264
261
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -283,7 +280,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
283
280
|
[key in EntityEnum | VirtualEntityEnum]?: AggregationFields<EnumToModel<key>>[];
|
|
284
281
|
};
|
|
285
282
|
};
|
|
286
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.MOVING_TIMESHEET ? IMovingTimesheetEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? IProjectRevenueSplitMappingEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.ENTITY_HISTORY ? IEntityHistoryEntity : T extends EntityEnum.LEAVE_APPROVAL ? ILeaveApprovalEntity : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? IVendorInvoicePaymentEntity : T extends EntityEnum.VENDOR_TDS_LIABILITY ? IVendorTdsLiabilityEntity : T extends EntityEnum.VENDOR_TDS_CHALLAN ? IVendorTdsChallanEntity :
|
|
283
|
+
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.MOVING_TIMESHEET ? IMovingTimesheetEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? IProjectRevenueSplitMappingEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.ENTITY_HISTORY ? IEntityHistoryEntity : T extends EntityEnum.LEAVE_APPROVAL ? ILeaveApprovalEntity : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? IVendorInvoicePaymentEntity : T extends EntityEnum.VENDOR_TDS_LIABILITY ? IVendorTdsLiabilityEntity : T extends EntityEnum.VENDOR_TDS_CHALLAN ? IVendorTdsChallanEntity : never) & {
|
|
287
284
|
id: number;
|
|
288
285
|
};
|
|
289
286
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -415,7 +412,7 @@ export declare enum VirtualEntityEnum {
|
|
|
415
412
|
}
|
|
416
413
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
417
414
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
418
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.MOVING_TIMESHEET ? MovingTimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? ProjectRevenueSplitMappingEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ENTITY_HISTORY ? EntityHistoryEntityModel : T extends EntityEnum.LEAVE_APPROVAL ? LeaveApprovalEntityModel : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? VendorInvoicePaymentEntityModel : T extends EntityEnum.VENDOR_TDS_LIABILITY ? VendorTdsLiabilityEntityModel : T extends EntityEnum.VENDOR_TDS_CHALLAN ? VendorTdsChallanEntityModel :
|
|
415
|
+
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.MOVING_TIMESHEET ? MovingTimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : T extends EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING ? ProjectRevenueSplitMappingEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ENTITY_HISTORY ? EntityHistoryEntityModel : T extends EntityEnum.LEAVE_APPROVAL ? LeaveApprovalEntityModel : T extends EntityEnum.VENDOR_INVOICE_PAYMENT ? VendorInvoicePaymentEntityModel : T extends EntityEnum.VENDOR_TDS_LIABILITY ? VendorTdsLiabilityEntityModel : T extends EntityEnum.VENDOR_TDS_CHALLAN ? VendorTdsChallanEntityModel : UserEntityModel;
|
|
419
416
|
export type EntityMap = {
|
|
420
417
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
421
418
|
} & {
|
|
@@ -104,7 +104,6 @@ var EntityEnum;
|
|
|
104
104
|
EntityEnum["LEAVE_APPROVAL"] = "leave_approval";
|
|
105
105
|
EntityEnum["VENDOR_TDS_LIABILITY"] = "vendor_tds_liability";
|
|
106
106
|
EntityEnum["VENDOR_TDS_CHALLAN"] = "vendor_tds_challan";
|
|
107
|
-
EntityEnum["VENDOR_ADVANCE"] = "vendor_advance";
|
|
108
107
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
109
108
|
var VirtualEntityEnum;
|
|
110
109
|
(function (VirtualEntityEnum) {
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// export interface IExpenseHeadEntity extends IEntityAuditColumn {
|
|
4
|
+
// id: number;
|
|
5
|
+
// name: string;
|
|
6
|
+
// voucherTypeId: number;
|
|
7
|
+
// status: ExpenseHeadStatusEnum;
|
|
8
|
+
// }
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// export interface IOrganizationTypeEntity extends IEntityAuditColumn {
|
|
4
|
+
// id: number;
|
|
5
|
+
// code: string;
|
|
6
|
+
// name: string;
|
|
7
|
+
// status: OrganizationTypeStatusEnum;
|
|
8
|
+
// }
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// import { Nullable } from "./entity.utils.interface";
|
|
4
|
+
// import { StateStatusEnum } from "../enums/state_status_enum";
|
|
5
|
+
// export interface IStateEntity extends IEntityAuditColumn {
|
|
6
|
+
// id: number;
|
|
7
|
+
// name: string;
|
|
8
|
+
// code: string;
|
|
9
|
+
// status: StateStatusEnum;
|
|
10
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// export interface ITdsRateEntity extends IEntityAuditColumn {
|
|
4
|
+
// id: number;
|
|
5
|
+
// section: string;
|
|
6
|
+
// code: string;
|
|
7
|
+
// description?: string;
|
|
8
|
+
// panAvailableRate: number;
|
|
9
|
+
// panNotAvailableRate: number;
|
|
10
|
+
// effectiveFrom: number;
|
|
11
|
+
// status: TdsRateStatusEnum;
|
|
12
|
+
// }
|
package/dist/src/entities/interface/tds_rate_voucher_type_mapping.entity.interface.autocode.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// import { Nullable } from "./entity.utils.interface";
|
|
4
|
+
// export interface IVendorEntity extends IEntityAuditColumn {
|
|
5
|
+
// name: string;
|
|
6
|
+
// locationType: VendorLocationTypeEnum;
|
|
7
|
+
// address?: Nullable<string>;
|
|
8
|
+
// city?: Nullable<string>;
|
|
9
|
+
// pincode?: Nullable<string>;
|
|
10
|
+
// state: string;
|
|
11
|
+
// country: string;
|
|
12
|
+
// gstType: VendorGstTypeEnum;
|
|
13
|
+
// gstNo?: Nullable<string>;
|
|
14
|
+
// panType?: VendorPanTypeEnum;
|
|
15
|
+
// contractApplicability: VendorContractApplicabilityEnum;
|
|
16
|
+
// contactDetails?: Nullable<string>;
|
|
17
|
+
// panDocument?: Nullable<string>;
|
|
18
|
+
// gstDocument?: Nullable<string>;
|
|
19
|
+
// contractDocument?: Nullable<string>;
|
|
20
|
+
// remarks?: Nullable<string>;
|
|
21
|
+
// paymentDueDays?: Nullable<number>;
|
|
22
|
+
// attachmentDocuments?: Nullable<string>;
|
|
23
|
+
// bankDetail?: Nullable<string>;
|
|
24
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// import { Nullable } from "./entity.utils.interface";
|
|
4
|
+
// import { VendorInvoicePaidStatusEnum } from "../enums/vendor_invoice_status_enum";
|
|
5
|
+
// import { VendorInvoiceStatusEnum } from "../enums/vendor_invoice_action_status_enum";
|
|
6
|
+
// export interface IVendorInvoiceEntity extends IEntityAuditColumn {
|
|
7
|
+
// id: number;
|
|
8
|
+
// vendorId: number;
|
|
9
|
+
// status: VendorInvoicePaidStatusEnum;
|
|
10
|
+
// actionStatus: VendorInvoiceStatusEnum;
|
|
11
|
+
// serviceLocationId: string;
|
|
12
|
+
// invoiceNo: string;
|
|
13
|
+
// invoiceDate: number;
|
|
14
|
+
// dueDate?: Nullable<number>;
|
|
15
|
+
// voucherNo?: Nullable<string>;
|
|
16
|
+
// voucherDate?: Nullable<number>;
|
|
17
|
+
// invoiceDocuments: string;
|
|
18
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// import { Nullable } from "./entity.utils.interface";
|
|
4
|
+
// export interface IVendorInvoiceItemEntity extends IEntityAuditColumn {
|
|
5
|
+
// id: number;
|
|
6
|
+
// vendorInvoiceId: number;
|
|
7
|
+
// voucherTypeId: number;
|
|
8
|
+
// expenseHeadId: number;
|
|
9
|
+
// narration: string;
|
|
10
|
+
// basicAmount: number;
|
|
11
|
+
// gstRateId: number;
|
|
12
|
+
// invoiceAmount: number;
|
|
13
|
+
// tdsRateId: number;
|
|
14
|
+
// netAmount: number;
|
|
15
|
+
// quantity: number;
|
|
16
|
+
// rate: number;
|
|
17
|
+
// }
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
// import { IDocumentUploadEntity } from "../interface/document_upload.entity.interface";
|
|
6
|
+
// export class DocumentUploadEntityModel extends BaseEntityModel<EntityEnum.DOCUMENT_UPLOAD> implements IDocumentUploadEntity {
|
|
7
|
+
// id: number = 0;
|
|
8
|
+
// name: string = "";
|
|
9
|
+
// gstNo?: string;
|
|
10
|
+
// gstDocument?: string;
|
|
11
|
+
// additionalDocuments?: string;
|
|
12
|
+
// createdOn: number = 0;
|
|
13
|
+
// updatedOn: number = 0;
|
|
14
|
+
// createdBy: number = 0;
|
|
15
|
+
// updatedBy: number = 0;
|
|
16
|
+
// static relationConfigs: RelationConfigs<[], EntityEnum.DOCUMENT_UPLOAD> = [];
|
|
17
|
+
// static fromEntity(entity: IDocumentUploadEntity): DocumentUploadEntityModel {
|
|
18
|
+
// const result = new DocumentUploadEntityModel(EntityEnum.DOCUMENT_UPLOAD);
|
|
19
|
+
// Object.assign(result, entity);
|
|
20
|
+
// return result;
|
|
21
|
+
// }
|
|
22
|
+
// getRelationConfigs(): any[] {
|
|
23
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
24
|
+
// }
|
|
25
|
+
// }
|
|
@@ -70,7 +70,6 @@ const timesheet_history_entity_model_1 = require("./timesheet_history.entity.mod
|
|
|
70
70
|
const to_do_list_entity_model_1 = require("./to_do_list.entity.model");
|
|
71
71
|
const user_entity_model_1 = require("./user.entity.model");
|
|
72
72
|
const vendor_entity_model_1 = require("./vendor.entity.model");
|
|
73
|
-
const vendor_advance_entity_model_1 = require("./vendor_advance.entity.model");
|
|
74
73
|
const vendor_history_entity_model_1 = require("./vendor_history.entity.model");
|
|
75
74
|
const vendor_invoice_entity_model_1 = require("./vendor_invoice.entity.model");
|
|
76
75
|
const vendor_invoice_history_entity_model_1 = require("./vendor_invoice_history.entity.model");
|
|
@@ -185,7 +184,6 @@ exports.entityEnumToEntityModel = {
|
|
|
185
184
|
[entity_utils_interface_1.EntityEnum.LEAVE_APPROVAL]: leave_approval_entity_model_1.LeaveApprovalEntityModel.fromEntity,
|
|
186
185
|
[entity_utils_interface_1.EntityEnum.VENDOR_TDS_LIABILITY]: vendor_tds_liability_entity_model_1.VendorTdsLiabilityEntityModel.fromEntity,
|
|
187
186
|
[entity_utils_interface_1.EntityEnum.VENDOR_TDS_CHALLAN]: vendor_tds_challan_entity_model_1.VendorTdsChallanEntityModel.fromEntity,
|
|
188
|
-
[entity_utils_interface_1.EntityEnum.VENDOR_ADVANCE]: vendor_advance_entity_model_1.VendorAdvanceEntityModel.fromEntity,
|
|
189
187
|
};
|
|
190
188
|
function entityMapToModels(entityMap) {
|
|
191
189
|
for (const entityName in entityMap) {
|
|
@@ -221,8 +219,48 @@ function entityMapToEntityIndexMap(entityMap, entityRelationsFor) {
|
|
|
221
219
|
return entityIndexMap;
|
|
222
220
|
}
|
|
223
221
|
function parseEntitiesWithoutModels(json, baseEntity, entityMap = {}) {
|
|
224
|
-
|
|
225
|
-
|
|
222
|
+
// entityMap[baseEntity] = (json["baseEntities"] ?? []) as any;
|
|
223
|
+
var _a, _b;
|
|
224
|
+
const incoming = (_a = json["baseEntities"]) !== null && _a !== void 0 ? _a : [];
|
|
225
|
+
if (incoming.length > 0) {
|
|
226
|
+
const existing = (_b = entityMap[baseEntity]) !== null && _b !== void 0 ? _b : [];
|
|
227
|
+
if (existing.length === 0) {
|
|
228
|
+
// @ts-ignore
|
|
229
|
+
entityMap[baseEntity] = incoming;
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
const existingById = new Map();
|
|
233
|
+
for (const row of existing) {
|
|
234
|
+
if (row && row.id !== undefined) {
|
|
235
|
+
existingById.set(row.id, row);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
const merged = [...existing];
|
|
239
|
+
for (const row of incoming) {
|
|
240
|
+
const rowId = row ? row.id : undefined;
|
|
241
|
+
if (!row || rowId === undefined) {
|
|
242
|
+
// @ts-ignore
|
|
243
|
+
merged.push(row);
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
const existingRow = existingById.get(rowId);
|
|
247
|
+
if (existingRow) {
|
|
248
|
+
Object.assign(existingRow, row);
|
|
249
|
+
}
|
|
250
|
+
else {
|
|
251
|
+
// @ts-ignore
|
|
252
|
+
merged.push(row);
|
|
253
|
+
// @ts-ignore
|
|
254
|
+
existingById.set(rowId, row);
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
// @ts-ignore
|
|
258
|
+
entityMap[baseEntity] = merged;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
else if (!entityMap[baseEntity]) {
|
|
262
|
+
entityMap[baseEntity] = [];
|
|
263
|
+
}
|
|
226
264
|
if (json["relatedEntities"]) {
|
|
227
265
|
const relatedEntities = json["relatedEntities"];
|
|
228
266
|
for (const entityName in relatedEntities) {
|
|
File without changes
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// export class ExpenseHeadEntityModel extends BaseEntityModel<EntityEnum.EXPENSE_HEAD> implements IExpenseHeadEntity {
|
|
5
|
+
// id: number = 0;
|
|
6
|
+
// name: string = "";
|
|
7
|
+
// voucherTypeId: number = 0;
|
|
8
|
+
// status: ExpenseHeadStatusEnum = ExpenseHeadStatusEnum.ACTIVE;
|
|
9
|
+
// createdOn: number = 0;
|
|
10
|
+
// updatedOn: number = 0;
|
|
11
|
+
// createdBy: number = 0;
|
|
12
|
+
// updatedBy: number = 0;
|
|
13
|
+
// voucherType?: VoucherTypeEntityModel;
|
|
14
|
+
// static relationConfigs: RelationConfigs<[EntityEnum.VOUCHER_TYPE], EntityEnum.EXPENSE_HEAD> = [
|
|
15
|
+
// {
|
|
16
|
+
// name: EntityEnum.VOUCHER_TYPE,
|
|
17
|
+
// relation: RelationType.ONE,
|
|
18
|
+
// key: "voucherType",
|
|
19
|
+
// mapKeyConfig: {
|
|
20
|
+
// relationKey: "id",
|
|
21
|
+
// key: "voucherTypeId",
|
|
22
|
+
// },
|
|
23
|
+
// },
|
|
24
|
+
// ];
|
|
25
|
+
// static fromEntity(entity: IExpenseHeadEntity): ExpenseHeadEntityModel {
|
|
26
|
+
// const result = new ExpenseHeadEntityModel(EntityEnum.EXPENSE_HEAD);
|
|
27
|
+
// Object.assign(result, entity);
|
|
28
|
+
// return result;
|
|
29
|
+
// }
|
|
30
|
+
// getRelationConfigs(): any[] {
|
|
31
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
32
|
+
// }
|
|
33
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// export class GstRateEntityModel extends BaseEntityModel<EntityEnum.GST_RATE> implements IGstRateEntity {
|
|
5
|
+
// id: number = 0;
|
|
6
|
+
// code: string = "";
|
|
7
|
+
// rate: number = 0;
|
|
8
|
+
// status: GstRateStatusEnum = GstRateStatusEnum.ACTIVE;
|
|
9
|
+
// createdOn: number = 0;
|
|
10
|
+
// updatedOn: number = 0;
|
|
11
|
+
// createdBy: number = 0;
|
|
12
|
+
// updatedBy: number = 0;
|
|
13
|
+
// static relationConfigs = [];
|
|
14
|
+
// static fromEntity(entity: IGstRateEntity): GstRateEntityModel {
|
|
15
|
+
// const result = new GstRateEntityModel(EntityEnum.GST_RATE);
|
|
16
|
+
// Object.assign(result, entity);
|
|
17
|
+
// return result;
|
|
18
|
+
// }
|
|
19
|
+
// getRelationConfigs(): any[] {
|
|
20
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
+
// import { IOfficeLocationEntity } from "../interface/office_location.entity.interface";
|
|
6
|
+
// export class OfficeLocationEntityModel extends BaseEntityModel<EntityEnum.OFFICE_LOCATION> implements IOfficeLocationEntity {
|
|
7
|
+
// id: number = 0;
|
|
8
|
+
// name: string = "";
|
|
9
|
+
// country: string = "";
|
|
10
|
+
// createdOn: number = 0;
|
|
11
|
+
// updatedOn: number = 0;
|
|
12
|
+
// createdBy: number = 0;
|
|
13
|
+
// updatedBy: number = 0;
|
|
14
|
+
// static relationConfigs: RelationConfigs<[], EntityEnum.OFFICE_LOCATION> = [];
|
|
15
|
+
// static fromEntity(entity: IOfficeLocationEntity): OfficeLocationEntityModel {
|
|
16
|
+
// const result = new OfficeLocationEntityModel(EntityEnum.OFFICE_LOCATION);
|
|
17
|
+
// Object.assign(result, entity);
|
|
18
|
+
// return result;
|
|
19
|
+
// }
|
|
20
|
+
// getRelationConfigs(): any[] {
|
|
21
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
22
|
+
// }
|
|
23
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// export class OrganizationTypeEntityModel extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE> implements IOrganizationTypeEntity {
|
|
5
|
+
// id: number = 0;
|
|
6
|
+
// code: string = "";
|
|
7
|
+
// name: string = "";
|
|
8
|
+
// status: OrganizationTypeStatusEnum = OrganizationTypeStatusEnum.ACTIVE;
|
|
9
|
+
// createdOn: number = 0;
|
|
10
|
+
// updatedOn: number = 0;
|
|
11
|
+
// createdBy: number = 0;
|
|
12
|
+
// updatedBy: number = 0;
|
|
13
|
+
// static relationConfigs = [];
|
|
14
|
+
// static fromEntity(entity: IOrganizationTypeEntity): OrganizationTypeEntityModel {
|
|
15
|
+
// const result = new OrganizationTypeEntityModel(EntityEnum.ORGANIZATION_TYPE);
|
|
16
|
+
// Object.assign(result, entity);
|
|
17
|
+
// return result;
|
|
18
|
+
// }
|
|
19
|
+
// getRelationConfigs(): any[] {
|
|
20
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
File without changes
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// export class OrganizationTypeTdsRateMappingEntityModel
|
|
5
|
+
// extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING>
|
|
6
|
+
// implements IOrganizationTypeTdsRateMappingEntity
|
|
7
|
+
// {
|
|
8
|
+
// id: number = 0;
|
|
9
|
+
// organizationTypeId: number = 0;
|
|
10
|
+
// tdsRateId: number = 0;
|
|
11
|
+
// createdOn: number = 0;
|
|
12
|
+
// updatedOn: number = 0;
|
|
13
|
+
// createdBy: number = 0;
|
|
14
|
+
// updatedBy: number = 0;
|
|
15
|
+
// static relationConfigs = [];
|
|
16
|
+
// static fromEntity(entity: IOrganizationTypeTdsRateMappingEntity): OrganizationTypeTdsRateMappingEntityModel {
|
|
17
|
+
// const result = new OrganizationTypeTdsRateMappingEntityModel(EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING);
|
|
18
|
+
// Object.assign(result, entity);
|
|
19
|
+
// return result;
|
|
20
|
+
// }
|
|
21
|
+
// getRelationConfigs(): any[] {
|
|
22
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
23
|
+
// }
|
|
24
|
+
// }
|
|
File without changes
|