law-common 10.64.2-beta.3 → 10.64.2-beta.5

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.
@@ -17,6 +17,9 @@ export interface IBillingParticulars {
17
17
  includePONumber: 0 | 1;
18
18
  includeGSTNumber: 0 | 1;
19
19
  poNumber: Nullable<string>;
20
+ panNumber: string;
21
+ name: string;
22
+ bankId: number;
20
23
  }
21
24
  export interface IBillingCreateDtoExtra {
22
25
  particulars: IBillingParticulars[];
@@ -0,0 +1,4 @@
1
+ export declare enum BillingProfileName {
2
+ AGRAM_LEGAL_CONSULTANTS = "AGRAM LEGAL CONSULTANTS",
3
+ AGRAM_LEGAL_PARTNERS = "AGRAM LEGAL PARTNERS"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingProfileName = void 0;
4
+ var BillingProfileName;
5
+ (function (BillingProfileName) {
6
+ BillingProfileName["AGRAM_LEGAL_CONSULTANTS"] = "AGRAM LEGAL CONSULTANTS";
7
+ BillingProfileName["AGRAM_LEGAL_PARTNERS"] = "AGRAM LEGAL PARTNERS";
8
+ })(BillingProfileName || (exports.BillingProfileName = BillingProfileName = {}));
@@ -179,3 +179,6 @@ export * from "./interface/client_quote.entity.interface";
179
179
  export * from "./interface/client_quote_rate.entity.interface";
180
180
  export * from "./model/client_quote.entity.model";
181
181
  export * from "./model/client_quote_rate.entity.model";
182
+ export * from "./enums/billing_profile.enum";
183
+ export * from "./interface/billing_profile.entity.interface";
184
+ export * from "./model/billing-profile.entity.model";
@@ -195,3 +195,6 @@ __exportStar(require("./interface/client_quote.entity.interface"), exports);
195
195
  __exportStar(require("./interface/client_quote_rate.entity.interface"), exports);
196
196
  __exportStar(require("./model/client_quote.entity.model"), exports);
197
197
  __exportStar(require("./model/client_quote_rate.entity.model"), exports);
198
+ __exportStar(require("./enums/billing_profile.enum"), exports);
199
+ __exportStar(require("./interface/billing_profile.entity.interface"), exports);
200
+ __exportStar(require("./model/billing-profile.entity.model"), exports);
@@ -0,0 +1,8 @@
1
+ import { BillingProfileName } from "../enums/billing_profile.enum";
2
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ export interface IBillingProfileEntity extends IEntityAuditColumn {
4
+ id: number;
5
+ name: BillingProfileName;
6
+ logoFilePath: string;
7
+ pan: string;
8
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -6,9 +6,6 @@ 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;
12
9
  zipCode: string;
13
10
  country: string;
14
11
  details?: Nullable<string>;
@@ -6,6 +6,7 @@ import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constrain
6
6
  import { HistoryOperationEnum } from "../enums/history_operation.enum";
7
7
  import { AddressBookEntityModel } from "../model/address_book.model";
8
8
  import { BankEntityModel } from "../model/bank.entity.model";
9
+ import { BillingProfileEntityModel } from "../model/billing-profile.entity.model";
9
10
  import { BillingReimbursementExpneseEntityModel } from "../model/billing-reimbursement-expense.entity.model";
10
11
  import { BillingTimesheetEntityModel } from "../model/billing-timesheet.entity.model";
11
12
  import { BillingTransactionEntityModel } from "../model/billing-transaction.model";
@@ -55,6 +56,7 @@ import { IBillingReimbursementExpenseEntity } from "./billing-reimbursement-expe
55
56
  import { IBillingTransactionHistoryEntity } from "./billing-transaction-history.entity";
56
57
  import { IBillingEntity } from "./billing.entity.interface";
57
58
  import { IBillingPaymentEntity } from "./billing_payment.entity.interface";
59
+ import { IBillingProfileEntity } from "./billing_profile.entity.interface";
58
60
  import { IBillingTimesheetEntity } from "./billing_timesheet.entity.interface";
59
61
  import { IBillingTransactionEntity } from "./billing_transaction.entity.interface";
60
62
  import { IClientEntity, IClientIntroducingMappingEntity, IClientUserMappingEntity } from "./client.entity.interface";
@@ -208,7 +210,8 @@ export declare enum EntityEnum {
208
210
  VENDOR_INVOICE_ITEM_HISTORY = "vendor_invoice_item_history",
209
211
  VENDOR_HISTORY = "vendor_history",
210
212
  CLIENT_QUOTE = "client_quote",
211
- CLIENT_QUOTE_RATE = "client_quote_rate"
213
+ CLIENT_QUOTE_RATE = "client_quote_rate",
214
+ BILLING_PROFILE = "billing_profile"
212
215
  }
213
216
  export type EntityRelations = {
214
217
  [K in EntityEnum | VirtualEntityEnum]: K;
@@ -227,7 +230,7 @@ export type IBaseEntityApiResponse<T> = {
227
230
  [K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
228
231
  };
229
232
  };
230
- export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : never) & {
233
+ export type EnumEntityType<T extends EntityEnum | VirtualEntityEnum> = (T extends EntityEnum.BILLING ? IBillingEntity : T extends EntityEnum.BILLING_TIMESHEET ? IBillingTimesheetEntity : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? IBillingReimbursementExpenseEntity : T extends EntityEnum.TIMESHEET ? ITimesheetEntity : T extends EntityEnum.USER ? IUserEntity : T extends EntityEnum.PROJECT ? IProjectEntity : T extends EntityEnum.CLIENT ? IClientEntity : T extends EntityEnum.LEAVE ? ILeaveEntity : T extends EntityEnum.BANK ? IBankEntity : T extends EntityEnum.BILLING_PAYMENT ? IBillingPaymentEntity : T extends EntityEnum.BILLING_TRANSACTION ? IBillingTransactionEntity : T extends EntityEnum.BILLING_TRANSACTION_HISTORY ? IBillingTransactionHistoryEntity : T extends EntityEnum.CLIENT_AFFILIATE ? IClientAffiliateEntity : T extends EntityEnum.CONFIGURATION ? IConfigurationEntity : T extends EntityEnum.HOLIDAY ? IHolidayEntity : T extends EntityEnum.HOLIDAY_LIST ? IHolidayListEntity : T extends EntityEnum.COUNTRY ? ICountryEntity : T extends EntityEnum.EXPENSE_TYPE ? IExpenseTypeEntity : T extends EntityEnum.INDUSTRY ? IIndustryEntity : T extends EntityEnum.INTERMEDIARY_BANK ? IIntermediaryBankEntity : T extends EntityEnum.OFFICE_LOCATION ? IOfficeLocationEntity : T extends EntityEnum.PERMISSION ? IPermissionEntity : T extends EntityEnum.ROLE ? IRoleEntity : T extends EntityEnum.TASK ? ITaskEntity : T extends EntityEnum.DESIGNATION ? IDesignationEntity : T extends EntityEnum.RATE ? IRateEntity : T extends EntityEnum.REIMBURSEMENT ? IReimbursementEntity : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? IReimbursementExpenseEntity : T extends EntityEnum.WORK_FROM_HOME ? IWorkFromHomeEntity : T extends EntityEnum.ORGANIZATION ? IOrganizationEntity : T extends EntityEnum.PROJECT_USER_MAPPING ? IProjectUserMappingEntity : T extends EntityEnum.CLIENT_USER_MAPPING ? IClientUserMappingEntity : T extends EntityEnum.CLIENT_INTRODUCING_MAPPING ? IClientIntroducingMappingEntity : T extends EntityEnum.TO_DO_LIST ? IToDoListEntity : T extends EntityEnum.CRON_JOBS ? ICronJobsEntity : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? IRolePermissionMappingEntity : T extends EntityEnum.BANK_HISTORY ? IBankHistoryEntity : T extends VirtualEntityEnum.LEAVE_COUNT ? ILeaveCountVirtualEntity : T extends EntityEnum.LEAVE_HISTORY ? ILeaveHistoryEntity : T extends EntityEnum.WORK_FROM_HOME_HISTORY ? IWorkFromHomeHistoryEntity : T extends EntityEnum.TIMESHEET_HISTORY ? ITimesheetHistoryEntity : T extends EntityEnum.ADDRESS_BOOK ? IAddressBookEntity : T extends EntityEnum.STATE ? IStateEntity : T extends EntityEnum.GST_RATE ? IGstRateEntity : T extends EntityEnum.ORGANIZATION_TYPE ? IOrganizationTypeEntity : T extends EntityEnum.TDS_RATE ? ITdsRateEntity : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? IOrganizationTypeTdsRateMappingEntity : T extends EntityEnum.VOUCHER_TYPE ? IVoucherTypeEntity : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? ITdsRateVoucherTypeMappingEntity : T extends EntityEnum.EXPENSE_HEAD ? IExpenseHeadEntity : T extends EntityEnum.DOCUMENT_UPLOAD ? IDocumentUploadEntity : T extends EntityEnum.VENDOR ? IVendorEntity : T extends EntityEnum.VENDOR_INVOICE ? IVendorInvoiceEntity : T extends EntityEnum.VENDOR_INVOICE_HISTORY ? IVendorInvoiceHistoryEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM ? IVendorInvoiceItemEntity : T extends EntityEnum.VENDOR_INVOICE_ITEM_HISTORY ? IVendorInvoiceItemHistoryEntity : T extends EntityEnum.VENDOR_HISTORY ? IVendorHistoryEntity : T extends EntityEnum.WEBSITE_LEAD ? IWebsiteLeadEntity : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? IWebsiteNewsletterSubscriptionEntity : T extends EntityEnum.CLIENT_QUOTE ? IClientQuoteEntity : T extends EntityEnum.CLIENT_QUOTE_RATE ? IClientQuoteRateEntity : T extends EntityEnum.BILLING_PROFILE ? IBillingProfileEntity : never) & {
231
234
  id: number;
232
235
  };
233
236
  export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
@@ -351,7 +354,7 @@ export declare enum VirtualEntityEnum {
351
354
  }
352
355
  export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
353
356
  export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
354
- export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : UserEntityModel;
357
+ export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : T extends EntityEnum.INTERMEDIARY_BANK ? IntermediaryBankEntityModel : T extends EntityEnum.PROJECT ? ProjectEntityModel : T extends EntityEnum.PROJECT_USER_MAPPING ? ProjectUserMappingEntityModel : T extends EntityEnum.REIMBURSEMENT ? ReimbursementEntityModel : T extends EntityEnum.REIMBURSEMENT_EXPENSE ? ReimbursementExpenseEntityModel : T extends EntityEnum.BILLING_REIMBURSEMENT_EXPENSE ? BillingReimbursementExpneseEntityModel : T extends EntityEnum.LEAVE ? LeaveEntityModel : T extends EntityEnum.WORK_FROM_HOME ? WorkFromHomeEntityModel : T extends EntityEnum.HOLIDAY ? HolidayEntityModel : T extends VirtualEntityEnum.LEAVE_COUNT ? LeaveCountVirtualEntityModel : T extends EntityEnum.CLIENT_AFFILIATE ? ClientAffiliateEntityModel : T extends EntityEnum.BANK ? BankEntityModel : T extends EntityEnum.CONFIGURATION ? ConfigurationEntityModel : T extends EntityEnum.TASK ? TaskEntityModel : T extends EntityEnum.BILLING_TIMESHEET ? BillingTimesheetEntityModel : T extends EntityEnum.TIMESHEET ? TimesheetEntityModel : T extends EntityEnum.COUNTRY ? CountryEntityModel : T extends EntityEnum.BILLING_TRANSACTION ? BillingTransactionEntityModel : T extends EntityEnum.ADDRESS_BOOK ? AddressBookEntityModel : T extends EntityEnum.STATE ? StateEntityModel : T extends EntityEnum.GST_RATE ? GstRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE ? OrganizationTypeEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : T extends EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.VOUCHER_TYPE ? VoucherTypeEntityModel : T extends EntityEnum.TDS_RATE_VOUCHER_TYPE_MAPPING ? TdsRateVoucherTypeMappingEntityModel : T extends EntityEnum.ROLE ? RoleEntityModel : T extends EntityEnum.ROLE_PERMISSION_MAPPING ? RolePermissionMappingEntityModel : T extends EntityEnum.PERMISSION ? PermissionEntityModel : T extends EntityEnum.EXPENSE_HEAD ? ExpenseHeadEntityModel : T extends EntityEnum.DOCUMENT_UPLOAD ? DocumentUploadEntityModel : T extends EntityEnum.VENDOR ? VendorEntityModel : T extends EntityEnum.VENDOR_INVOICE ? VendorInvoiceEntityModel : T extends EntityEnum.OFFICE_LOCATION ? OfficeLocationEntityModel : T extends EntityEnum.VENDOR_INVOICE_ITEM ? VendorInvoiceItemEntityModel : T extends EntityEnum.WEBSITE_LEAD ? WebsiteLeadEntityModel : T extends EntityEnum.WEBSITE_NEWSLETTER_SUBSCRIPTION ? WebsiteNewsletterSubscriptionEntityModel : T extends EntityEnum.CLIENT_QUOTE ? ClientQuoteEntityModel : T extends EntityEnum.CLIENT_QUOTE_RATE ? ClientQuoteRateEntityModel : T extends EntityEnum.DESIGNATION ? DesignationEntityModel : T extends EntityEnum.RATE ? RateEntityModel : T extends EntityEnum.BILLING_PROFILE ? BillingProfileEntityModel : UserEntityModel;
355
358
  export type EntityMap = {
356
359
  [key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
357
360
  };
@@ -97,6 +97,7 @@ var EntityEnum;
97
97
  EntityEnum["VENDOR_HISTORY"] = "vendor_history";
98
98
  EntityEnum["CLIENT_QUOTE"] = "client_quote";
99
99
  EntityEnum["CLIENT_QUOTE_RATE"] = "client_quote_rate";
100
+ EntityEnum["BILLING_PROFILE"] = "billing_profile";
100
101
  })(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
101
102
  var VirtualEntityEnum;
102
103
  (function (VirtualEntityEnum) {
@@ -0,0 +1,17 @@
1
+ import { BillingProfileName } from "../enums/billing_profile.enum";
2
+ import { IBillingProfileEntity } from "../interface/billing_profile.entity.interface";
3
+ import { EntityEnum } from "../interface/entity.utils.interface";
4
+ import { BaseEntityModel } from "./base.entity.model";
5
+ export declare class BillingProfileEntityModel extends BaseEntityModel<EntityEnum.BILLING_PROFILE> implements IBillingProfileEntity {
6
+ id: number;
7
+ name: BillingProfileName;
8
+ logoFilePath: string;
9
+ pan: string;
10
+ createdOn: number;
11
+ updatedOn: number;
12
+ createdBy: number;
13
+ updatedBy: number;
14
+ constructor();
15
+ static fromEntity(entity: IBillingProfileEntity): BillingProfileEntityModel;
16
+ getRelationConfigs(): any[];
17
+ }
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingProfileEntityModel = void 0;
4
+ const entity_utils_interface_1 = require("../interface/entity.utils.interface");
5
+ const base_entity_model_1 = require("./base.entity.model");
6
+ class BillingProfileEntityModel extends base_entity_model_1.BaseEntityModel {
7
+ constructor() {
8
+ super(entity_utils_interface_1.EntityEnum.BILLING_PROFILE);
9
+ this.id = 0;
10
+ this.name = "";
11
+ this.logoFilePath = "";
12
+ this.pan = "";
13
+ this.createdOn = 0;
14
+ this.updatedOn = 0;
15
+ this.createdBy = 0;
16
+ this.updatedBy = 0;
17
+ }
18
+ static fromEntity(entity) {
19
+ const model = new BillingProfileEntityModel();
20
+ Object.assign(model, entity);
21
+ return model;
22
+ }
23
+ getRelationConfigs() {
24
+ return this.constructor.prototype.constructor.relationConfigs || [];
25
+ }
26
+ }
27
+ exports.BillingProfileEntityModel = BillingProfileEntityModel;
@@ -10,9 +10,6 @@ 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;
16
13
  zipCode: string;
17
14
  country: string;
18
15
  gstNumber?: Nullable<string>;
@@ -13,9 +13,6 @@ 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 = "";
19
16
  this.zipCode = "";
20
17
  this.country = "";
21
18
  this.gstNumber = null;
@@ -13,6 +13,7 @@ const entity_utils_interface_1 = require("../interface/entity.utils.interface");
13
13
  const address_book_model_1 = require("./address_book.model");
14
14
  const bank_entity_model_1 = require("./bank.entity.model");
15
15
  const base_entity_model_1 = require("./base.entity.model");
16
+ const billing_profile_entity_model_1 = require("./billing-profile.entity.model");
16
17
  const billing_reimbursement_expense_entity_model_1 = require("./billing-reimbursement-expense.entity.model");
17
18
  const billing_timesheet_entity_model_1 = require("./billing-timesheet.entity.model");
18
19
  const billing_transaction_model_1 = require("./billing-transaction.model");
@@ -128,6 +129,7 @@ exports.entityEnumToEntityModel = {
128
129
  [entity_utils_interface_1.EntityEnum.CLIENT_QUOTE_RATE]: client_quote_rate_entity_model_1.ClientQuoteRateEntityModel.fromEntity,
129
130
  [entity_utils_interface_1.EntityEnum.DESIGNATION]: designation_entity_model_1.DesignationEntityModel.fromEntity,
130
131
  [entity_utils_interface_1.EntityEnum.RATE]: rate_model_1.RateEntityModel.fromEntity,
132
+ [entity_utils_interface_1.EntityEnum.BILLING_PROFILE]: billing_profile_entity_model_1.BillingProfileEntityModel.fromEntity,
131
133
  };
132
134
  function entityMapToModels(entityMap) {
133
135
  for (const entityName in entityMap) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.64.2-beta.3",
3
+ "version": "10.64.2-beta.5",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [