law-common 10.67.1-beta.0 → 10.67.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/interface/project.entity.response.d.ts +1 -2
- package/dist/src/api/interface/vendor.create.dto.interface.d.ts +1 -1
- package/dist/src/entities/index.d.ts +0 -3
- package/dist/src/entities/index.js +0 -3
- 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/project.entity.interface.d.ts +0 -2
- package/dist/src/entities/interface/vendor.entity.interface.d.ts +1 -0
- package/dist/src/entities/model/entity.model.interface.js +0 -2
- package/dist/src/entities/model/vendor.entity.model.d.ts +5 -2
- package/dist/src/entities/model/vendor.entity.model.js +21 -1
- package/package.json +1 -1
- package/dist/src/entities/enums/project-revenue-split-mapping-status.enum.d.ts +0 -4
- package/dist/src/entities/enums/project-revenue-split-mapping-status.enum.js +0 -8
- package/dist/src/entities/interface/project-revenue-split-mapping.entity.d.ts +0 -16
- package/dist/src/entities/interface/project-revenue-split-mapping.entity.js +0 -2
- package/dist/src/entities/model/project-revenue-split-mapping.model.d.ts +0 -25
- package/dist/src/entities/model/project-revenue-split-mapping.model.js +0 -57
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import { IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity,
|
|
1
|
+
import { IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectUserDto, IRateEntity, IUserEntity } from "../../entities";
|
|
2
2
|
export interface IProjectUserDtoResponse extends IProjectUserDto {
|
|
3
3
|
updatedOn: string;
|
|
4
4
|
}
|
|
5
5
|
export interface IProjectEntityDependentResponse {
|
|
6
6
|
users: IProjectUserDtoResponse[];
|
|
7
|
-
revenueSplit: IProjectRevenueSplitMappingEntity[];
|
|
8
7
|
}
|
|
9
8
|
export type IProjectApiEntityDependent = IProjectEntity & IProjectEntityDependentResponse & IProjectCreateDtoExtra;
|
|
10
9
|
export type IProjectEntityGet = {
|
|
@@ -24,7 +24,7 @@ export interface IVendorBankDetail {
|
|
|
24
24
|
export type IVendorBankDetailCreateExclude = never;
|
|
25
25
|
export interface IVendorBankDetailCreateDto extends Omit<IEntityCreateDto<IVendorBankDetail>, IVendorBankDetailCreateExclude> {
|
|
26
26
|
}
|
|
27
|
-
export type IVendorCreateExclude = "contactDetail" | "bankDetail" | "panDocument" | "gstDocument" | "contractDocument" | "attachmentDocuments" | "status" | "remark";
|
|
27
|
+
export type IVendorCreateExclude = "contactDetail" | "bankDetail" | "panDocument" | "gstDocument" | "contractDocument" | "attachmentDocuments" | "status" | "remark" | "organizationTypeId";
|
|
28
28
|
export interface IVendorCreateDto extends Omit<IEntityCreateDto<IVendorEntity>, IVendorCreateExclude> {
|
|
29
29
|
contactDetail?: IVendorContactDetailCreateDto[];
|
|
30
30
|
bankDetail?: IVendorBankDetailCreateDto[];
|
|
@@ -183,6 +183,3 @@ export * from "./enums/billing_profile.enum";
|
|
|
183
183
|
export * from "./enums/billing_profile_code.enum";
|
|
184
184
|
export * from "./interface/billing_profile.entity.interface";
|
|
185
185
|
export * from "./model/billing-profile.entity.model";
|
|
186
|
-
export * from "./enums/project-revenue-split-mapping-status.enum";
|
|
187
|
-
export * from "./interface/project-revenue-split-mapping.entity";
|
|
188
|
-
export * from "./model/project-revenue-split-mapping.model";
|
|
@@ -199,6 +199,3 @@ __exportStar(require("./enums/billing_profile.enum"), exports);
|
|
|
199
199
|
__exportStar(require("./enums/billing_profile_code.enum"), exports);
|
|
200
200
|
__exportStar(require("./interface/billing_profile.entity.interface"), exports);
|
|
201
201
|
__exportStar(require("./model/billing-profile.entity.model"), exports);
|
|
202
|
-
__exportStar(require("./enums/project-revenue-split-mapping-status.enum"), exports);
|
|
203
|
-
__exportStar(require("./interface/project-revenue-split-mapping.entity"), exports);
|
|
204
|
-
__exportStar(require("./model/project-revenue-split-mapping.model"), exports);
|
|
@@ -43,7 +43,6 @@ import { OrganizationEntityModel } from "../model/organization.entity.model";
|
|
|
43
43
|
import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
|
|
44
44
|
import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
|
|
45
45
|
import { PermissionEntityModel } from "../model/permissions.entity.model";
|
|
46
|
-
import { ProjectRevenueSplitMappingEntityModel } from "../model/project-revenue-split-mapping.model";
|
|
47
46
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
48
47
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
49
48
|
import { RateEntityModel } from "../model/rate.entity.model";
|
|
@@ -108,7 +107,6 @@ import { IOrganizationEntity } from "./organization.entity.interface";
|
|
|
108
107
|
import { IOrganizationTypeEntity } from "./organization_type.entity.interface";
|
|
109
108
|
import { IOrganizationTypeTdsRateMappingEntity } from "./organization_type_tds_rate_mapping.entity.interface";
|
|
110
109
|
import { IPermissionEntity } from "./permission.entity.interface";
|
|
111
|
-
import { IProjectRevenueSplitMappingEntity } from "./project-revenue-split-mapping.entity";
|
|
112
110
|
import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.interface";
|
|
113
111
|
import { IRateEntity } from "./rate.entity.interface";
|
|
114
112
|
import { IReimbursementEntity } from "./reimbursement.entity.interface";
|
|
@@ -238,8 +236,7 @@ export declare enum EntityEnum {
|
|
|
238
236
|
VENDOR_HISTORY = "vendor_history",
|
|
239
237
|
CLIENT_QUOTE = "client_quote",
|
|
240
238
|
CLIENT_QUOTE_RATE = "client_quote_rate",
|
|
241
|
-
BILLING_PROFILE = "billing_profile"
|
|
242
|
-
PROJECT_REVENUE_SPLIT_MAPPING = "project_revenue_split_mapping"
|
|
239
|
+
BILLING_PROFILE = "billing_profile"
|
|
243
240
|
}
|
|
244
241
|
export type EntityRelations = {
|
|
245
242
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -258,7 +255,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
258
255
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
259
256
|
};
|
|
260
257
|
};
|
|
261
|
-
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity :
|
|
258
|
+
export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_HISTORY ? IBillingHistoryEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? IBillingTimesheetHistoryEntity : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? IBillingReimbursementExpenseHistoryEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.REIMBURSEMENT_HISTORY ? IReimbursementHistoryEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : never) & {
|
|
262
259
|
id: number;
|
|
263
260
|
};
|
|
264
261
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -382,7 +379,7 @@ export declare enum VirtualEntityEnum {
|
|
|
382
379
|
}
|
|
383
380
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
384
381
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
385
|
-
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.BILLING_PAYMENT ? BillingPaymentEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel :
|
|
382
|
+
export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.BILLING_HISTORY ? BillingHistoryEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.BILLING_REIMBURESMENT_EXPENSE_HISTORY ? BillingReimbursementExpenseHistoryEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.BILLING_TIMESHEET_HISTORY ? BillingTimesheetHistoryEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.TIMESHEET_HISTORY ? TimesheetHistoryEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? BillingTransactionHistoryEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ORGANIZATION ? OrganizationEntityModel : T extends EntityEnum.INDUSTRY ? IndustryEntityModel : T extends EntityEnum.EXPENSE_TYPE ? ExpenseTypeEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? VendorInvoiceHistoryEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? VendorInvoiceItemHistoryEntityModel : T extends EntityEnum.VENDOR_HISTORY ? VendorHistoryEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? WorkFromHomeHistoryEntityModel : T extends EntityEnum.LEAVE_HISTORY ? LeaveHistoryEntityModel : T extends EntityEnum.BANK_HISTORY ? BankHistoryEntityModel : T extends EntityEnum.REIMBURSEMENT_HISTORY ? ReimbursementHistoryEntityModel : T extends EntityEnum.CLIENT_USER_MAPPING ? ClientUserMappingEntityModel : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? ClientIntroducingMappingEntityModel : T extends EntityEnum.BILLING_PAYMENT ? BillingPaymentEntityModel : T extends EntityEnum.HOLIDAY_LIST ? HolidayListEntityModel : T extends EntityEnum.CRON_JOBS ? CronJobsEntityModel : T extends EntityEnum.TO_DO_LIST ? ToDoListEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : UserEntityModel;
|
|
386
383
|
export type EntityMap = {
|
|
387
384
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
388
385
|
};
|
|
@@ -98,7 +98,6 @@ var EntityEnum;
|
|
|
98
98
|
EntityEnum["CLIENT_QUOTE"] = "client_quote";
|
|
99
99
|
EntityEnum["CLIENT_QUOTE_RATE"] = "client_quote_rate";
|
|
100
100
|
EntityEnum["BILLING_PROFILE"] = "billing_profile";
|
|
101
|
-
EntityEnum["PROJECT_REVENUE_SPLIT_MAPPING"] = "project_revenue_split_mapping";
|
|
102
101
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
103
102
|
var VirtualEntityEnum;
|
|
104
103
|
(function (VirtualEntityEnum) {
|
|
@@ -5,7 +5,6 @@ import { UserRoleEnum } from "../enums/user.entity.enum";
|
|
|
5
5
|
import { IClientEntity } from "./client.entity.interface";
|
|
6
6
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
7
7
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
8
|
-
import { IProjectRevenueSplitDto } from "./project-revenue-split-mapping.entity";
|
|
9
8
|
import { IUserEntity } from "./user.entity.interface";
|
|
10
9
|
export interface IProjectEntity extends IEntityAuditColumn {
|
|
11
10
|
id: number;
|
|
@@ -30,7 +29,6 @@ export interface IProjectUserDto {
|
|
|
30
29
|
}
|
|
31
30
|
export interface IProjectEntityDependent {
|
|
32
31
|
users: IProjectUserDto[];
|
|
33
|
-
revenueSplit: IProjectRevenueSplitDto[];
|
|
34
32
|
}
|
|
35
33
|
export type IProjectExclude = "organizationId" | "billingRate";
|
|
36
34
|
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
@@ -50,7 +50,6 @@ const organization_entity_model_1 = require("./organization.entity.model");
|
|
|
50
50
|
const organization_type_entity_model_1 = require("./organization_type.entity.model");
|
|
51
51
|
const organization_type_tds_rate_mapping_entity_model_1 = require("./organization_type_tds_rate_mapping.entity.model");
|
|
52
52
|
const permissions_entity_model_1 = require("./permissions.entity.model");
|
|
53
|
-
const project_revenue_split_mapping_model_1 = require("./project-revenue-split-mapping.model");
|
|
54
53
|
const project_user_mapping_entity_model_1 = require("./project-user-mapping.entity.model");
|
|
55
54
|
const project_entity_model_1 = require("./project.entity.model");
|
|
56
55
|
const rate_entity_model_1 = require("./rate.entity.model");
|
|
@@ -172,7 +171,6 @@ exports.entityEnumToEntityModel = {
|
|
|
172
171
|
[entity_utils_interface_1.EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION]: website_newsletter_subscription_entity_model_1.WebsiteNewsletterSubscriptionEntityModel.fromEntity,
|
|
173
172
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE]: client_quote_entity_model_1.ClientQuoteEntityModel.fromEntity,
|
|
174
173
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE_RATE]: client_quote_rate_entity_model_1.ClientQuoteRateEntityModel.fromEntity,
|
|
175
|
-
[entity_utils_interface_1.EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING]: project_revenue_split_mapping_model_1.ProjectRevenueSplitMappingEntityModel.fromEntity,
|
|
176
174
|
[entity_utils_interface_1.EntityEnum.BILLING_PROFILE]: billing_profile_entity_model_1.BillingProfileEntityModel.fromEntity,
|
|
177
175
|
};
|
|
178
176
|
function entityMapToModels(entityMap) {
|
|
@@ -13,6 +13,7 @@ import { IVendorEntity } from "../interface/vendor.entity.interface";
|
|
|
13
13
|
import { IRowActions } from "./interface/row-actions.interface";
|
|
14
14
|
import { OrganizationTypeEntityModel } from "./organization_type.entity.model";
|
|
15
15
|
import { UserEntityModel } from "./user.entity.model";
|
|
16
|
+
import { StateEntityModel } from "./state.entity.model";
|
|
16
17
|
export declare class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR> implements IVendorEntity {
|
|
17
18
|
id: number;
|
|
18
19
|
name: string;
|
|
@@ -39,9 +40,11 @@ export declare class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR
|
|
|
39
40
|
updatedOn: number;
|
|
40
41
|
createdBy: number;
|
|
41
42
|
updatedBy: number;
|
|
42
|
-
organizationType?: OrganizationTypeEntityModel;
|
|
43
43
|
status: VendorStatusEnum;
|
|
44
44
|
remark: Nullable<string>;
|
|
45
|
+
organizationTypeId?: Nullable<number>;
|
|
46
|
+
organizationType?: OrganizationTypeEntityModel;
|
|
47
|
+
stateModel?: StateEntityModel;
|
|
45
48
|
static readonly VENDOR_ENTITY_DOCUMENT_TYPES: readonly ["pan", "gst"];
|
|
46
49
|
/**
|
|
47
50
|
* Default number of days added to the Invoice Date to calculate the Due Date,
|
|
@@ -59,7 +62,7 @@ export declare class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR
|
|
|
59
62
|
static readonly DEFAULT_DUE_DAYS = 7;
|
|
60
63
|
populateOrganizationTypeModel(organizationTypeEntityModels: OrganizationTypeEntityModel[]): null;
|
|
61
64
|
getPanNoFourthCharacter(): string;
|
|
62
|
-
static relationConfigs: RelationConfigs<[], EntityEnum.VENDOR>;
|
|
65
|
+
static relationConfigs: RelationConfigs<[EntityEnum.STATE], EntityEnum.VENDOR>;
|
|
63
66
|
static fromEntity(entity: IVendorEntity): VendorEntityModel;
|
|
64
67
|
getRelationConfigs(): any[];
|
|
65
68
|
getNextStatus(currentUser: IUserEntity, dto: IEntityUpdateDto<IVendorEntity> & {
|
|
@@ -12,6 +12,7 @@ const vendor_gst_type_enum_1 = require("../enums/vendor_gst_type_enum");
|
|
|
12
12
|
const vendor_location_type_enum_1 = require("../enums/vendor_location_type_enum");
|
|
13
13
|
const vendor_pan_type_enum_1 = require("../enums/vendor_pan_type_enum");
|
|
14
14
|
const vendor_flow_config_1 = require("../flow-configs/vendor-flow.config");
|
|
15
|
+
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
15
16
|
class VendorEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
16
17
|
constructor() {
|
|
17
18
|
super(...arguments);
|
|
@@ -131,4 +132,23 @@ VendorEntityModel.VENDOR_ENTITY_DOCUMENT_TYPES = ["pan", "gst"];
|
|
|
131
132
|
* @see VendorEntityModel.paymentDueDays
|
|
132
133
|
*/
|
|
133
134
|
VendorEntityModel.DEFAULT_DUE_DAYS = 7;
|
|
134
|
-
VendorEntityModel.relationConfigs = [
|
|
135
|
+
VendorEntityModel.relationConfigs = [
|
|
136
|
+
{
|
|
137
|
+
name: entity_utils_interface_1.EntityEnum.STATE,
|
|
138
|
+
relation: relation_type_enum_1.RelationType.ONE,
|
|
139
|
+
key: "stateModel",
|
|
140
|
+
mapKeyConfig: {
|
|
141
|
+
relationKey: "name",
|
|
142
|
+
key: "state",
|
|
143
|
+
},
|
|
144
|
+
},
|
|
145
|
+
// {
|
|
146
|
+
// name: EntityEnum.OFFICE_LOCATION,
|
|
147
|
+
// relation: RelationType.MANY,
|
|
148
|
+
// key: "officeLocations",
|
|
149
|
+
// mapKeyConfig: {
|
|
150
|
+
// relationKey: "id",
|
|
151
|
+
// key: "officeLocationId",
|
|
152
|
+
// },
|
|
153
|
+
// },
|
|
154
|
+
];
|
package/package.json
CHANGED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectRevenueSplitMappingStatus = void 0;
|
|
4
|
-
var ProjectRevenueSplitMappingStatus;
|
|
5
|
-
(function (ProjectRevenueSplitMappingStatus) {
|
|
6
|
-
ProjectRevenueSplitMappingStatus["ACTIVE"] = "ACTIVE";
|
|
7
|
-
ProjectRevenueSplitMappingStatus["DELETED"] = "DELETED";
|
|
8
|
-
})(ProjectRevenueSplitMappingStatus || (exports.ProjectRevenueSplitMappingStatus = ProjectRevenueSplitMappingStatus = {}));
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { ProjectRevenueSplitMappingStatus } from "../enums/project-revenue-split-mapping-status.enum";
|
|
2
|
-
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
-
import { EntityEnum, EnumEntityType, IEntityCreateDto } from "./entity.utils.interface";
|
|
4
|
-
export interface IProjectRevenueSplitMappingEntity extends IEntityAuditColumn {
|
|
5
|
-
id: number;
|
|
6
|
-
projectId: number;
|
|
7
|
-
userId: number;
|
|
8
|
-
splitPercentage: number;
|
|
9
|
-
status: ProjectRevenueSplitMappingStatus;
|
|
10
|
-
}
|
|
11
|
-
export interface IProjectRevenueSplitDto {
|
|
12
|
-
userId: number;
|
|
13
|
-
splitPercentage: number;
|
|
14
|
-
}
|
|
15
|
-
export interface IProjectRevenueSplitMappingCreateDto extends IEntityCreateDto<EnumEntityType<EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING>> {
|
|
16
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { ProjectRevenueSplitMappingStatus } from "../enums/project-revenue-split-mapping-status.enum";
|
|
2
|
-
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
-
import { IProjectRevenueSplitMappingEntity } from "../interface/project-revenue-split-mapping.entity";
|
|
4
|
-
import { RelationConfigs } from "../interface/relation-config.interface";
|
|
5
|
-
import { BaseEntityModel } from "./base.entity.model";
|
|
6
|
-
import { ProjectEntityModel } from "./project.entity.model";
|
|
7
|
-
import { UserEntityModel } from "./user.entity.model";
|
|
8
|
-
export declare class ProjectRevenueSplitMappingEntityModel extends BaseEntityModel<EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING> implements IProjectRevenueSplitMappingEntity {
|
|
9
|
-
id: number;
|
|
10
|
-
projectId: number;
|
|
11
|
-
userId: number;
|
|
12
|
-
splitPercentage: number;
|
|
13
|
-
status: ProjectRevenueSplitMappingStatus;
|
|
14
|
-
createdBy: number;
|
|
15
|
-
updatedBy: number;
|
|
16
|
-
createdOn: number;
|
|
17
|
-
updatedOn: number;
|
|
18
|
-
project?: ProjectEntityModel;
|
|
19
|
-
user?: UserEntityModel;
|
|
20
|
-
static fromEntity(entity: IProjectRevenueSplitMappingEntity): ProjectRevenueSplitMappingEntityModel;
|
|
21
|
-
getRelationConfigs(): any[];
|
|
22
|
-
static relationConfigs: RelationConfigs<[EntityEnum.PROJECT, EntityEnum.USER], EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING>;
|
|
23
|
-
get projectModel(): ProjectEntityModel | undefined;
|
|
24
|
-
get userModel(): UserEntityModel | undefined;
|
|
25
|
-
}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProjectRevenueSplitMappingEntityModel = void 0;
|
|
4
|
-
const project_revenue_split_mapping_status_enum_1 = require("../enums/project-revenue-split-mapping-status.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 ProjectRevenueSplitMappingEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
9
|
-
constructor() {
|
|
10
|
-
super(...arguments);
|
|
11
|
-
this.id = 0;
|
|
12
|
-
this.projectId = 0;
|
|
13
|
-
this.userId = 0;
|
|
14
|
-
this.splitPercentage = 0;
|
|
15
|
-
this.status = project_revenue_split_mapping_status_enum_1.ProjectRevenueSplitMappingStatus.ACTIVE;
|
|
16
|
-
this.createdBy = 0;
|
|
17
|
-
this.updatedBy = 0;
|
|
18
|
-
this.createdOn = 0;
|
|
19
|
-
this.updatedOn = 0;
|
|
20
|
-
}
|
|
21
|
-
static fromEntity(entity) {
|
|
22
|
-
const result = new ProjectRevenueSplitMappingEntityModel(entity_utils_interface_1.EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING);
|
|
23
|
-
Object.assign(result, entity);
|
|
24
|
-
return result;
|
|
25
|
-
}
|
|
26
|
-
getRelationConfigs() {
|
|
27
|
-
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
28
|
-
}
|
|
29
|
-
// Optional getters (same pattern as your Bank model)
|
|
30
|
-
get projectModel() {
|
|
31
|
-
return this.project;
|
|
32
|
-
}
|
|
33
|
-
get userModel() {
|
|
34
|
-
return this.user;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
exports.ProjectRevenueSplitMappingEntityModel = ProjectRevenueSplitMappingEntityModel;
|
|
38
|
-
ProjectRevenueSplitMappingEntityModel.relationConfigs = [
|
|
39
|
-
{
|
|
40
|
-
name: entity_utils_interface_1.EntityEnum.PROJECT,
|
|
41
|
-
relation: relation_type_enum_1.RelationType.ONE,
|
|
42
|
-
key: "project",
|
|
43
|
-
mapKeyConfig: {
|
|
44
|
-
relationKey: "id",
|
|
45
|
-
key: "projectId",
|
|
46
|
-
},
|
|
47
|
-
},
|
|
48
|
-
{
|
|
49
|
-
name: entity_utils_interface_1.EntityEnum.USER,
|
|
50
|
-
relation: relation_type_enum_1.RelationType.ONE,
|
|
51
|
-
key: "user",
|
|
52
|
-
mapKeyConfig: {
|
|
53
|
-
relationKey: "id",
|
|
54
|
-
key: "userId",
|
|
55
|
-
},
|
|
56
|
-
},
|
|
57
|
-
];
|