law-common 10.67.2-beta.1 → 10.68.1-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/api/index.d.ts +11 -0
- package/dist/src/api/index.js +11 -0
- package/dist/src/api/interface/project-revenue-split.create.dto.d.ts +7 -0
- package/dist/src/api/interface/project-revenue-split.create.dto.js +2 -0
- package/dist/src/api/interface/project.entity.response.d.ts +2 -1
- package/dist/src/entities/enums/billing-type.enum.js +0 -1
- package/dist/src/entities/enums/project-revenue-split-mapping-status.enum.d.ts +4 -0
- package/dist/src/entities/enums/project-revenue-split-mapping-status.enum.js +8 -0
- package/dist/src/entities/enums/project-revenue-split.enum.d.ts +4 -0
- package/dist/src/entities/enums/project-revenue-split.enum.js +8 -0
- package/dist/src/entities/index.d.ts +28 -0
- package/dist/src/entities/index.js +28 -0
- package/dist/src/entities/interface/client_affiliate_entity.interface.d.ts +3 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +8 -5
- package/dist/src/entities/interface/entity.utils.interface.js +2 -1
- package/dist/src/entities/interface/project-revenue-split-mapping.entity.d.ts +9 -0
- package/dist/src/entities/interface/project-revenue-split-mapping.entity.js +2 -0
- package/dist/src/entities/interface/project.entity.interface.d.ts +6 -0
- 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 +9 -7
- package/dist/src/entities/model/project-revenue-split-mapping.model.d.ts +25 -0
- package/dist/src/entities/model/project-revenue-split-mapping.model.js +57 -0
- package/dist/src/entities/model/project.entity.model.d.ts +2 -0
- package/dist/src/entities/model/project.entity.model.js +2 -0
- package/dist/src/entities/model/vendor.entity.model.d.ts +2 -2
- package/dist/src/entities/model/vendor.entity.model.js +1 -1
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -86,3 +86,14 @@ export * from "./interface/client_quote.create.dto.interface";
|
|
|
86
86
|
export * from "./interface/client_quote.update.dto.interface";
|
|
87
87
|
export * from "./interface/client_quote_rate.create.dto.interface";
|
|
88
88
|
export * from "./interface/client_quote_rate.update.dto.interface";
|
|
89
|
+
export * from "./interface/vendor-invoice.entity.response";
|
|
90
|
+
export * from "./interface/vendor.entity.response";
|
|
91
|
+
export * from "./interface/website_lead.create.dto.interface";
|
|
92
|
+
export * from "./interface/website_lead.update.dto.interface";
|
|
93
|
+
export * from "./interface/website_newsletter_subscription.create.dto.interface";
|
|
94
|
+
export * from "./interface/website_newsletter_subscription.update.dto.interface";
|
|
95
|
+
export * from "./interface/client_quote.create.dto.interface";
|
|
96
|
+
export * from "./interface/client_quote.update.dto.interface";
|
|
97
|
+
export * from "./interface/client_quote_rate.create.dto.interface";
|
|
98
|
+
export * from "./interface/client_quote_rate.update.dto.interface";
|
|
99
|
+
export * from "./interface/project-revenue-split.create.dto";
|
package/dist/src/api/index.js
CHANGED
|
@@ -106,3 +106,14 @@ __exportStar(require("./interface/client_quote.create.dto.interface"), exports);
|
|
|
106
106
|
__exportStar(require("./interface/client_quote.update.dto.interface"), exports);
|
|
107
107
|
__exportStar(require("./interface/client_quote_rate.create.dto.interface"), exports);
|
|
108
108
|
__exportStar(require("./interface/client_quote_rate.update.dto.interface"), exports);
|
|
109
|
+
__exportStar(require("./interface/vendor-invoice.entity.response"), exports);
|
|
110
|
+
__exportStar(require("./interface/vendor.entity.response"), exports);
|
|
111
|
+
__exportStar(require("./interface/website_lead.create.dto.interface"), exports);
|
|
112
|
+
__exportStar(require("./interface/website_lead.update.dto.interface"), exports);
|
|
113
|
+
__exportStar(require("./interface/website_newsletter_subscription.create.dto.interface"), exports);
|
|
114
|
+
__exportStar(require("./interface/website_newsletter_subscription.update.dto.interface"), exports);
|
|
115
|
+
__exportStar(require("./interface/client_quote.create.dto.interface"), exports);
|
|
116
|
+
__exportStar(require("./interface/client_quote.update.dto.interface"), exports);
|
|
117
|
+
__exportStar(require("./interface/client_quote_rate.create.dto.interface"), exports);
|
|
118
|
+
__exportStar(require("./interface/client_quote_rate.update.dto.interface"), exports);
|
|
119
|
+
__exportStar(require("./interface/project-revenue-split.create.dto"), exports);
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { EntityEnum, EnumEntityType, IEntityCreateDto } from "../../entities";
|
|
2
|
+
export interface IProjectRevenueSplitMappingCreateDto extends IEntityCreateDto<EnumEntityType<EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING>> {
|
|
3
|
+
}
|
|
4
|
+
export interface IProjectRevenueSplitData {
|
|
5
|
+
userId: number;
|
|
6
|
+
splitPercentage: number;
|
|
7
|
+
}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectUserDto, IRateEntity, IUserEntity } from "../../entities";
|
|
1
|
+
import { IClientEntity, IDesignationEntity, IProjectCreateDtoExtra, IProjectEntity, IProjectRevenueSplitMappingEntity, 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
|
+
revenueSplitData: IProjectRevenueSplitMappingEntity[];
|
|
7
8
|
}
|
|
8
9
|
export type IProjectApiEntityDependent = IProjectEntity & IProjectEntityDependentResponse & IProjectCreateDtoExtra;
|
|
9
10
|
export type IProjectEntityGet = {
|
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.BillingTypeEnum = void 0;
|
|
4
4
|
var BillingTypeEnum;
|
|
5
5
|
(function (BillingTypeEnum) {
|
|
6
|
-
// DEBIT_NOTE = "debitNote",
|
|
7
6
|
BillingTypeEnum["INVOICE"] = "invoice";
|
|
8
7
|
BillingTypeEnum["BOTH"] = "both";
|
|
9
8
|
BillingTypeEnum["ADVANCE"] = "advance";
|
|
@@ -0,0 +1,8 @@
|
|
|
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 = {}));
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ProjectRevenueSplit = void 0;
|
|
4
|
+
var ProjectRevenueSplit;
|
|
5
|
+
(function (ProjectRevenueSplit) {
|
|
6
|
+
ProjectRevenueSplit["YES"] = "YES";
|
|
7
|
+
ProjectRevenueSplit["NO"] = "NO";
|
|
8
|
+
})(ProjectRevenueSplit || (exports.ProjectRevenueSplit = ProjectRevenueSplit = {}));
|
|
@@ -179,7 +179,35 @@ export * from "./interface/client_quote.entity.interface";
|
|
|
179
179
|
export * from "./interface/client_quote_rate.entity.interface";
|
|
180
180
|
export * from "./model/client_quote.entity.model";
|
|
181
181
|
export * from "./model/client_quote_rate.entity.model";
|
|
182
|
+
export * from "./interface/website_lead.entity.interface";
|
|
183
|
+
export * from "./interface/website_newsletter_subscription.entity.interface";
|
|
184
|
+
export * from "./model/website_lead.entity.model";
|
|
185
|
+
export * from "./model/website_newsletter_subscription.entity.model";
|
|
186
|
+
export * from "./enums/vendor_invoice_action_status_enum";
|
|
187
|
+
export * from "./enums/vendor_invoice_status_enum";
|
|
188
|
+
export * from "./interface/vendor-invoice-item-history.entity.interface";
|
|
189
|
+
export * from "./interface/vendot-invoice-history.entity.interface";
|
|
190
|
+
export * from "./enums/vendor-action.enum";
|
|
191
|
+
export * from "./enums/vendor-status.enum";
|
|
192
|
+
export * from "./flow-configs/vendor-flow.config";
|
|
193
|
+
export * from "./interface/vendor-history.entity.interface";
|
|
194
|
+
export * from "./enums/vendor_invoice_action.enum";
|
|
195
|
+
export * from "./enums/vendor_invoice_item_action.enum";
|
|
196
|
+
export * from "./enums/vendor_invoice_item_status.enum";
|
|
197
|
+
export * from "./flow-configs/vendor-invoice-flow.config";
|
|
198
|
+
export * from "./flow-configs/flow-config.type";
|
|
199
|
+
export * from "./enums/client_quote_currency_enum";
|
|
200
|
+
export * from "./enums/client_quote_rate_type_enum";
|
|
201
|
+
export * from "./enums/client_quote_status_enum";
|
|
202
|
+
export * from "./interface/client_quote.entity.interface";
|
|
203
|
+
export * from "./interface/client_quote_rate.entity.interface";
|
|
204
|
+
export * from "./model/client_quote.entity.model";
|
|
205
|
+
export * from "./model/client_quote_rate.entity.model";
|
|
182
206
|
export * from "./enums/billing_profile.enum";
|
|
183
207
|
export * from "./enums/billing_profile_code.enum";
|
|
184
208
|
export * from "./interface/billing_profile.entity.interface";
|
|
185
209
|
export * from "./model/billing-profile.entity.model";
|
|
210
|
+
export * from "./enums/project-revenue-split-mapping-status.enum";
|
|
211
|
+
export * from "./enums/project-revenue-split.enum";
|
|
212
|
+
export * from "./interface/project-revenue-split-mapping.entity";
|
|
213
|
+
export * from "./model/project-revenue-split-mapping.model";
|
|
@@ -195,7 +195,35 @@ __exportStar(require("./interface/client_quote.entity.interface"), exports);
|
|
|
195
195
|
__exportStar(require("./interface/client_quote_rate.entity.interface"), exports);
|
|
196
196
|
__exportStar(require("./model/client_quote.entity.model"), exports);
|
|
197
197
|
__exportStar(require("./model/client_quote_rate.entity.model"), exports);
|
|
198
|
+
__exportStar(require("./interface/website_lead.entity.interface"), exports);
|
|
199
|
+
__exportStar(require("./interface/website_newsletter_subscription.entity.interface"), exports);
|
|
200
|
+
__exportStar(require("./model/website_lead.entity.model"), exports);
|
|
201
|
+
__exportStar(require("./model/website_newsletter_subscription.entity.model"), exports);
|
|
202
|
+
__exportStar(require("./enums/vendor_invoice_action_status_enum"), exports);
|
|
203
|
+
__exportStar(require("./enums/vendor_invoice_status_enum"), exports);
|
|
204
|
+
__exportStar(require("./interface/vendor-invoice-item-history.entity.interface"), exports);
|
|
205
|
+
__exportStar(require("./interface/vendot-invoice-history.entity.interface"), exports);
|
|
206
|
+
__exportStar(require("./enums/vendor-action.enum"), exports);
|
|
207
|
+
__exportStar(require("./enums/vendor-status.enum"), exports);
|
|
208
|
+
__exportStar(require("./flow-configs/vendor-flow.config"), exports);
|
|
209
|
+
__exportStar(require("./interface/vendor-history.entity.interface"), exports);
|
|
210
|
+
__exportStar(require("./enums/vendor_invoice_action.enum"), exports);
|
|
211
|
+
__exportStar(require("./enums/vendor_invoice_item_action.enum"), exports);
|
|
212
|
+
__exportStar(require("./enums/vendor_invoice_item_status.enum"), exports);
|
|
213
|
+
__exportStar(require("./flow-configs/vendor-invoice-flow.config"), exports);
|
|
214
|
+
__exportStar(require("./flow-configs/flow-config.type"), exports);
|
|
215
|
+
__exportStar(require("./enums/client_quote_currency_enum"), exports);
|
|
216
|
+
__exportStar(require("./enums/client_quote_rate_type_enum"), exports);
|
|
217
|
+
__exportStar(require("./enums/client_quote_status_enum"), exports);
|
|
218
|
+
__exportStar(require("./interface/client_quote.entity.interface"), exports);
|
|
219
|
+
__exportStar(require("./interface/client_quote_rate.entity.interface"), exports);
|
|
220
|
+
__exportStar(require("./model/client_quote.entity.model"), exports);
|
|
221
|
+
__exportStar(require("./model/client_quote_rate.entity.model"), exports);
|
|
198
222
|
__exportStar(require("./enums/billing_profile.enum"), exports);
|
|
199
223
|
__exportStar(require("./enums/billing_profile_code.enum"), exports);
|
|
200
224
|
__exportStar(require("./interface/billing_profile.entity.interface"), exports);
|
|
201
225
|
__exportStar(require("./model/billing-profile.entity.model"), exports);
|
|
226
|
+
__exportStar(require("./enums/project-revenue-split-mapping-status.enum"), exports);
|
|
227
|
+
__exportStar(require("./enums/project-revenue-split.enum"), exports);
|
|
228
|
+
__exportStar(require("./interface/project-revenue-split-mapping.entity"), exports);
|
|
229
|
+
__exportStar(require("./model/project-revenue-split-mapping.model"), exports);
|
|
@@ -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>;
|
|
@@ -43,9 +43,10 @@ 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";
|
|
46
47
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
47
48
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
48
|
-
import { RateEntityModel } from "../model/rate.
|
|
49
|
+
import { RateEntityModel } from "../model/rate.model";
|
|
49
50
|
import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
|
|
50
51
|
import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
|
|
51
52
|
import { ReimbursementHistoryEntityModel } from "../model/reimbursement_history.entity.model";
|
|
@@ -107,6 +108,7 @@ import { IOrganizationEntity } from "./organization.entity.interface";
|
|
|
107
108
|
import { IOrganizationTypeEntity } from "./organization_type.entity.interface";
|
|
108
109
|
import { IOrganizationTypeTdsRateMappingEntity } from "./organization_type_tds_rate_mapping.entity.interface";
|
|
109
110
|
import { IPermissionEntity } from "./permission.entity.interface";
|
|
111
|
+
import { IProjectRevenueSplitMappingEntity } from "./project-revenue-split-mapping.entity";
|
|
110
112
|
import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.interface";
|
|
111
113
|
import { IRateEntity } from "./rate.entity.interface";
|
|
112
114
|
import { IReimbursementEntity } from "./reimbursement.entity.interface";
|
|
@@ -230,13 +232,14 @@ export declare enum EntityEnum {
|
|
|
230
232
|
VENDOR_INVOICE = "vendor_invoice",
|
|
231
233
|
VENDOR_INVOICE_HISTORY = "vendor_invoice_history",
|
|
232
234
|
VENDOR_INVOICE_ITEM = "vendor_invoice_item",
|
|
235
|
+
BILLING_PROFILE = "billing_profile",
|
|
236
|
+
PROJECT_REVENUE_SPLIT_MAPPING = "project_revenue_split_mapping",
|
|
233
237
|
WEBSITE_LEAD = "website_lead",
|
|
234
238
|
WEBSITE_NEWSLETTER_SUBSCRIPTION = "website_newsletter_subscription",
|
|
235
239
|
VENDOR_INVOICE_ITEM_HISTORY = "vendor_invoice_item_history",
|
|
236
240
|
VENDOR_HISTORY = "vendor_history",
|
|
237
241
|
CLIENT_QUOTE = "client_quote",
|
|
238
|
-
CLIENT_QUOTE_RATE = "client_quote_rate"
|
|
239
|
-
BILLING_PROFILE = "billing_profile"
|
|
242
|
+
CLIENT_QUOTE_RATE = "client_quote_rate"
|
|
240
243
|
}
|
|
241
244
|
export type EntityRelations = {
|
|
242
245
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -255,7 +258,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
255
258
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
256
259
|
};
|
|
257
260
|
};
|
|
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) & {
|
|
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_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 : never) & {
|
|
259
262
|
id: number;
|
|
260
263
|
};
|
|
261
264
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -379,7 +382,7 @@ export declare enum VirtualEntityEnum {
|
|
|
379
382
|
}
|
|
380
383
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
381
384
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
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;
|
|
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 : 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 : UserEntityModel;
|
|
383
386
|
export type EntityMap = {
|
|
384
387
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
385
388
|
};
|
|
@@ -91,13 +91,14 @@ var EntityEnum;
|
|
|
91
91
|
EntityEnum["VENDOR_INVOICE"] = "vendor_invoice";
|
|
92
92
|
EntityEnum["VENDOR_INVOICE_HISTORY"] = "vendor_invoice_history";
|
|
93
93
|
EntityEnum["VENDOR_INVOICE_ITEM"] = "vendor_invoice_item";
|
|
94
|
+
EntityEnum["BILLING_PROFILE"] = "billing_profile";
|
|
95
|
+
EntityEnum["PROJECT_REVENUE_SPLIT_MAPPING"] = "project_revenue_split_mapping";
|
|
94
96
|
EntityEnum["WEBSITE_LEAD"] = "website_lead";
|
|
95
97
|
EntityEnum["WEBSITE_NEWSLETTER_SUBSCRIPTION"] = "website_newsletter_subscription";
|
|
96
98
|
EntityEnum["VENDOR_INVOICE_ITEM_HISTORY"] = "vendor_invoice_item_history";
|
|
97
99
|
EntityEnum["VENDOR_HISTORY"] = "vendor_history";
|
|
98
100
|
EntityEnum["CLIENT_QUOTE"] = "client_quote";
|
|
99
101
|
EntityEnum["CLIENT_QUOTE_RATE"] = "client_quote_rate";
|
|
100
|
-
EntityEnum["BILLING_PROFILE"] = "billing_profile";
|
|
101
102
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
102
103
|
var VirtualEntityEnum;
|
|
103
104
|
(function (VirtualEntityEnum) {
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ProjectRevenueSplitMappingStatus } from "../enums/project-revenue-split-mapping-status.enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
export interface IProjectRevenueSplitMappingEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
projectId: number;
|
|
6
|
+
userId: number;
|
|
7
|
+
splitPercentage: number;
|
|
8
|
+
status: ProjectRevenueSplitMappingStatus;
|
|
9
|
+
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { IProjectRevenueSplitData } from "../../api";
|
|
1
2
|
import { CurrencyEnum, TimeUnitEnum } from "../../enums";
|
|
3
|
+
import { ProjectRevenueSplit } from "../enums/project-revenue-split.enum";
|
|
2
4
|
import { ProjectBillingTypeEnum, ProjectStatusEnum } from "../enums/project.entity.enum";
|
|
3
5
|
import { ProjectUserStatusEnum } from "../enums/project_user_status.enum";
|
|
4
6
|
import { UserRoleEnum } from "../enums/user.entity.enum";
|
|
5
7
|
import { IClientEntity } from "./client.entity.interface";
|
|
6
8
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
7
9
|
import { IEntityCreateDto, IEntityFilterData, IEntityUpdateDto } from "./entity.utils.interface";
|
|
10
|
+
import { IProjectRevenueSplitMappingEntity } from "./project-revenue-split-mapping.entity";
|
|
8
11
|
import { IUserEntity } from "./user.entity.interface";
|
|
9
12
|
export interface IProjectEntity extends IEntityAuditColumn {
|
|
10
13
|
id: number;
|
|
@@ -21,6 +24,7 @@ export interface IProjectEntity extends IEntityAuditColumn {
|
|
|
21
24
|
actualEndDate?: string;
|
|
22
25
|
billingOverdueDays?: number;
|
|
23
26
|
billToClientAffiliateId?: number | null;
|
|
27
|
+
revenueSplit: ProjectRevenueSplit;
|
|
24
28
|
}
|
|
25
29
|
export interface IProjectUserDto {
|
|
26
30
|
id: number;
|
|
@@ -29,6 +33,7 @@ export interface IProjectUserDto {
|
|
|
29
33
|
}
|
|
30
34
|
export interface IProjectEntityDependent {
|
|
31
35
|
users: IProjectUserDto[];
|
|
36
|
+
revenueSplitData: IProjectRevenueSplitData[];
|
|
32
37
|
}
|
|
33
38
|
export type IProjectExclude = "organizationId" | "billingRate";
|
|
34
39
|
export interface IProjectExcludeT extends Pick<IProjectEntity, IProjectExclude> {
|
|
@@ -73,6 +78,7 @@ export interface IProjectUserEntityFilterDto extends IEntityFilterData<IProjectU
|
|
|
73
78
|
export interface IProjectEntityUpdateDtoValidationData extends IProjectEntityCreateDtoValidationData {
|
|
74
79
|
projectEntity: IProjectEntity;
|
|
75
80
|
projectUserMappingEntities: IProjectUserMappingEntity[];
|
|
81
|
+
projectRevenueSplitMappingEntities: IProjectRevenueSplitMappingEntity[];
|
|
76
82
|
}
|
|
77
83
|
export interface IProjectEntityCreateDtoValidationData {
|
|
78
84
|
clientEntity: IClientEntity;
|
|
@@ -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;
|
|
@@ -50,9 +50,10 @@ 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");
|
|
53
54
|
const project_user_mapping_entity_model_1 = require("./project-user-mapping.entity.model");
|
|
54
55
|
const project_entity_model_1 = require("./project.entity.model");
|
|
55
|
-
const
|
|
56
|
+
const rate_model_1 = require("./rate.model");
|
|
56
57
|
const reimbursement_expense_entity_model_1 = require("./reimbursement-expense.entity.model");
|
|
57
58
|
const reimbursement_entity_model_1 = require("./reimbursement.entity.model");
|
|
58
59
|
const reimbursement_history_entity_model_1 = require("./reimbursement_history.entity.model");
|
|
@@ -161,16 +162,17 @@ exports.entityEnumToEntityModel = {
|
|
|
161
162
|
[entity_utils_interface_1.EntityEnum.VENDOR_INVOICE_ITEM]: vendor_invoice_item_entity_model_1.VendorInvoiceItemEntityModel.fromEntity,
|
|
162
163
|
[entity_utils_interface_1.EntityEnum.VENDOR_INVOICE_ITEM_HISTORY]: vendor_invoice_item_history_entity_model_1.VendorInvoiceItemHistoryEntityModel.fromEntity,
|
|
163
164
|
[entity_utils_interface_1.EntityEnum.OFFICE_LOCATION]: office_location_entity_model_1.OfficeLocationEntityModel.fromEntity,
|
|
164
|
-
[entity_utils_interface_1.EntityEnum.CLIENT_USER_MAPPING]: client_user_mapping_entity_model_1.ClientUserMappingEntityModel.fromEntity,
|
|
165
|
-
[entity_utils_interface_1.EntityEnum.CLIENT_INTRODUCING_MAPPING]: client_introducing_mapping_entity_model_1.ClientIntroducingMappingEntityModel.fromEntity,
|
|
166
|
-
[entity_utils_interface_1.EntityEnum.CRON_JOBS]: cron_jobs_entity_model_1.CronJobsEntityModel.fromEntity,
|
|
167
|
-
[entity_utils_interface_1.EntityEnum.TO_DO_LIST]: to_do_list_entity_model_1.ToDoListEntityModel.fromEntity,
|
|
168
|
-
[entity_utils_interface_1.EntityEnum.DESIGNATION]: designation_entity_model_1.DesignationEntityModel.fromEntity,
|
|
169
|
-
[entity_utils_interface_1.EntityEnum.RATE]: rate_entity_model_1.RateEntityModel.fromEntity,
|
|
170
165
|
[entity_utils_interface_1.EntityEnum.WEBSITE_LEAD]: website_lead_entity_model_1.WebsiteLeadEntityModel.fromEntity,
|
|
171
166
|
[entity_utils_interface_1.EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION]: website_newsletter_subscription_entity_model_1.WebsiteNewsletterSubscriptionEntityModel.fromEntity,
|
|
172
167
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE]: client_quote_entity_model_1.ClientQuoteEntityModel.fromEntity,
|
|
173
168
|
[entity_utils_interface_1.EntityEnum.CLIENT_QUOTE_RATE]: client_quote_rate_entity_model_1.ClientQuoteRateEntityModel.fromEntity,
|
|
169
|
+
[entity_utils_interface_1.EntityEnum.DESIGNATION]: designation_entity_model_1.DesignationEntityModel.fromEntity,
|
|
170
|
+
[entity_utils_interface_1.EntityEnum.RATE]: rate_model_1.RateEntityModel.fromEntity,
|
|
171
|
+
[entity_utils_interface_1.EntityEnum.CLIENT_USER_MAPPING]: client_user_mapping_entity_model_1.ClientUserMappingEntityModel.fromEntity,
|
|
172
|
+
[entity_utils_interface_1.EntityEnum.CLIENT_INTRODUCING_MAPPING]: client_introducing_mapping_entity_model_1.ClientIntroducingMappingEntityModel.fromEntity,
|
|
173
|
+
[entity_utils_interface_1.EntityEnum.CRON_JOBS]: cron_jobs_entity_model_1.CronJobsEntityModel.fromEntity,
|
|
174
|
+
[entity_utils_interface_1.EntityEnum.TO_DO_LIST]: to_do_list_entity_model_1.ToDoListEntityModel.fromEntity,
|
|
175
|
+
[entity_utils_interface_1.EntityEnum.PROJECT_REVENUE_SPLIT_MAPPING]: project_revenue_split_mapping_model_1.ProjectRevenueSplitMappingEntityModel.fromEntity,
|
|
174
176
|
[entity_utils_interface_1.EntityEnum.BILLING_PROFILE]: billing_profile_entity_model_1.BillingProfileEntityModel.fromEntity,
|
|
175
177
|
};
|
|
176
178
|
function entityMapToModels(entityMap) {
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
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
|
+
];
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { CurrencyEnum } from "../../enums";
|
|
2
|
+
import { ProjectRevenueSplit } from "../enums/project-revenue-split.enum";
|
|
2
3
|
import { ProjectBillingTypeEnum, ProjectStatusEnum } from "../enums/project.entity.enum";
|
|
3
4
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
4
5
|
import { IProjectEntity, IProjectUserDto } from "../interface/project.entity.interface";
|
|
@@ -25,6 +26,7 @@ export declare class ProjectEntityModel extends BaseEntityModel<EntityEnum.PROJE
|
|
|
25
26
|
createdOn: number;
|
|
26
27
|
updatedOn: number;
|
|
27
28
|
billToClientAffiliateId?: number | null;
|
|
29
|
+
revenueSplit: ProjectRevenueSplit;
|
|
28
30
|
users?: IProjectUserDto[];
|
|
29
31
|
billingOverdueDays?: number;
|
|
30
32
|
userMappings?: (UserEntityModel & ProjectUserMappingEntityModel)[];
|
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ProjectEntityModel = void 0;
|
|
4
4
|
const enums_1 = require("../../enums");
|
|
5
|
+
const project_revenue_split_enum_1 = require("../enums/project-revenue-split.enum");
|
|
5
6
|
const project_entity_enum_1 = require("../enums/project.entity.enum");
|
|
6
7
|
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
7
8
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
@@ -23,6 +24,7 @@ class ProjectEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
23
24
|
this.createdOn = 0;
|
|
24
25
|
this.updatedOn = 0;
|
|
25
26
|
this.billToClientAffiliateId = null;
|
|
27
|
+
this.revenueSplit = project_revenue_split_enum_1.ProjectRevenueSplit.NO;
|
|
26
28
|
this.users = [];
|
|
27
29
|
this.client = {};
|
|
28
30
|
}
|
|
@@ -12,8 +12,8 @@ import { IUserEntity } from "../interface/user.entity.interface";
|
|
|
12
12
|
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
|
-
import { UserEntityModel } from "./user.entity.model";
|
|
16
15
|
import { StateEntityModel } from "./state.entity.model";
|
|
16
|
+
import { UserEntityModel } from "./user.entity.model";
|
|
17
17
|
export declare class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR> implements IVendorEntity {
|
|
18
18
|
id: number;
|
|
19
19
|
name: string;
|
|
@@ -44,7 +44,6 @@ export declare class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR
|
|
|
44
44
|
remark: Nullable<string>;
|
|
45
45
|
organizationTypeId?: Nullable<number>;
|
|
46
46
|
organizationType?: OrganizationTypeEntityModel;
|
|
47
|
-
stateModel?: StateEntityModel;
|
|
48
47
|
static readonly VENDOR_ENTITY_DOCUMENT_TYPES: readonly ["pan", "gst"];
|
|
49
48
|
/**
|
|
50
49
|
* Default number of days added to the Invoice Date to calculate the Due Date,
|
|
@@ -60,6 +59,7 @@ export declare class VendorEntityModel extends BaseEntityModel<EntityEnum.VENDOR
|
|
|
60
59
|
* @see VendorEntityModel.paymentDueDays
|
|
61
60
|
*/
|
|
62
61
|
static readonly DEFAULT_DUE_DAYS = 7;
|
|
62
|
+
stateModel?: StateEntityModel;
|
|
63
63
|
populateOrganizationTypeModel(organizationTypeEntityModels: OrganizationTypeEntityModel[]): null;
|
|
64
64
|
getPanNoFourthCharacter(): string;
|
|
65
65
|
static relationConfigs: RelationConfigs<[EntityEnum.STATE], EntityEnum.VENDOR>;
|
|
@@ -7,12 +7,12 @@ const error_key_enum_1 = require("../../enums/error.key.enum");
|
|
|
7
7
|
const exceptions_1 = require("../../exceptions");
|
|
8
8
|
const utils_1 = require("../../utils");
|
|
9
9
|
const vendor_status_enum_1 = require("../enums/vendor-status.enum");
|
|
10
|
+
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
10
11
|
const vendor_contract_applicability_enum_1 = require("../enums/vendor_contract_applicability_enum");
|
|
11
12
|
const vendor_gst_type_enum_1 = require("../enums/vendor_gst_type_enum");
|
|
12
13
|
const vendor_location_type_enum_1 = require("../enums/vendor_location_type_enum");
|
|
13
14
|
const vendor_pan_type_enum_1 = require("../enums/vendor_pan_type_enum");
|
|
14
15
|
const vendor_flow_config_1 = require("../flow-configs/vendor-flow.config");
|
|
15
|
-
const relation_type_enum_1 = require("../enums/relation-type.enum");
|
|
16
16
|
class VendorEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
17
17
|
constructor() {
|
|
18
18
|
super(...arguments);
|