law-common 10.46.0 → 10.46.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.
Files changed (36) hide show
  1. package/dist/src/api/index.d.ts +2 -0
  2. package/dist/src/api/index.js +2 -0
  3. package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.d.ts +0 -0
  4. package/dist/src/api/interface/tds_rate.create.dto.interface.autocode.js +6 -0
  5. package/dist/src/api/interface/tds_rate.create.dto.interface.d.ts +6 -0
  6. package/dist/src/api/interface/tds_rate.create.dto.interface.js +2 -0
  7. package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.d.ts +0 -0
  8. package/dist/src/api/interface/tds_rate.update.dto.interface.autocode.js +3 -0
  9. package/dist/src/api/interface/tds_rate.update.dto.interface.d.ts +3 -0
  10. package/dist/src/api/interface/tds_rate.update.dto.interface.js +2 -0
  11. package/dist/src/entities/enums/tds_rate_status_enum.autocode.d.ts +0 -0
  12. package/dist/src/entities/enums/tds_rate_status_enum.autocode.js +6 -0
  13. package/dist/src/entities/enums/tds_rate_status_enum.d.ts +5 -0
  14. package/dist/src/entities/enums/tds_rate_status_enum.js +9 -0
  15. package/dist/src/entities/index.d.ts +5 -0
  16. package/dist/src/entities/index.js +5 -0
  17. package/dist/src/entities/interface/entity.utils.interface.d.ts +9 -3
  18. package/dist/src/entities/interface/entity.utils.interface.js +2 -0
  19. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.d.ts +0 -0
  20. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.autocode.js +7 -0
  21. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.d.ts +6 -0
  22. package/dist/src/entities/interface/organization_type_tds_rate_mapping.entity.interface.js +2 -0
  23. package/dist/src/entities/interface/tds_rate.entity.interface.autocode.d.ts +0 -0
  24. package/dist/src/entities/interface/tds_rate.entity.interface.autocode.js +12 -0
  25. package/dist/src/entities/interface/tds_rate.entity.interface.d.ts +12 -0
  26. package/dist/src/entities/interface/tds_rate.entity.interface.js +2 -0
  27. package/dist/src/entities/model/entity.model.interface.js +4 -0
  28. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.d.ts +0 -0
  29. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.autocode.js +24 -0
  30. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.d.ts +20 -0
  31. package/dist/src/entities/model/organization_type_tds_rate_mapping.entity.model.js +47 -0
  32. package/dist/src/entities/model/tds_rate.entity.model.autocode.d.ts +0 -0
  33. package/dist/src/entities/model/tds_rate.entity.model.autocode.js +37 -0
  34. package/dist/src/entities/model/tds_rate.entity.model.d.ts +24 -0
  35. package/dist/src/entities/model/tds_rate.entity.model.js +43 -0
  36. package/package.json +37 -37
@@ -58,3 +58,5 @@ export * from "./interface/gst_rate.create.dto.interface";
58
58
  export * from "./interface/gst_rate.update.dto.interface";
59
59
  export * from "./interface/organization_type.create.dto.interface";
60
60
  export * from "./interface/organization_type.update.dto.interface";
61
+ export * from "./interface/tds_rate.create.dto.interface";
62
+ export * from "./interface/tds_rate.update.dto.interface";
@@ -78,3 +78,5 @@ __exportStar(require("./interface/gst_rate.create.dto.interface"), exports);
78
78
  __exportStar(require("./interface/gst_rate.update.dto.interface"), exports);
79
79
  __exportStar(require("./interface/organization_type.create.dto.interface"), exports);
80
80
  __exportStar(require("./interface/organization_type.update.dto.interface"), exports);
81
+ __exportStar(require("./interface/tds_rate.create.dto.interface"), exports);
82
+ __exportStar(require("./interface/tds_rate.update.dto.interface"), exports);
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // import { IEntityCreateDto } from "../../entities";
3
+ // export type ITdsRateCreateExclude = "status";
4
+ // export interface ITdsRateCreateDto extends Omit<IEntityCreateDto<ITdsRateEntity>, ITdsRateCreateExclude> {
5
+ // organizationTypeIds: number[];
6
+ // }
@@ -0,0 +1,6 @@
1
+ import { IEntityCreateDto } from "../../entities";
2
+ import { ITdsRateEntity } from "../../entities/interface/tds_rate.entity.interface";
3
+ export type ITdsRateCreateExclude = "status";
4
+ export interface ITdsRateCreateDto extends Omit<IEntityCreateDto<ITdsRateEntity>, ITdsRateCreateExclude> {
5
+ organizationTypeIds: number[];
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ // import { DeepPartialButRequired } from "./api.utils.interface";
3
+ // export type ITdsRateUpdateDto = DeepPartialButRequired<ITdsRateCreateDto, never>;
@@ -0,0 +1,3 @@
1
+ import { DeepPartialButRequired } from "./api.utils.interface";
2
+ import { ITdsRateCreateDto } from "./tds_rate.create.dto.interface";
3
+ export type ITdsRateUpdateDto = DeepPartialButRequired<ITdsRateCreateDto, never>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ // export enum TdsRateStatusEnum {
3
+ // ACTIVE = "ACTIVE",
4
+ // INACTIVE = "INACTIVE",
5
+ // DEACTIVE = "DEACTIVE",
6
+ // }
@@ -0,0 +1,5 @@
1
+ export declare enum TdsRateStatusEnum {
2
+ ACTIVE = "ACTIVE",
3
+ INACTIVE = "INACTIVE",
4
+ DEACTIVE = "DEACTIVE"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TdsRateStatusEnum = void 0;
4
+ var TdsRateStatusEnum;
5
+ (function (TdsRateStatusEnum) {
6
+ TdsRateStatusEnum["ACTIVE"] = "ACTIVE";
7
+ TdsRateStatusEnum["INACTIVE"] = "INACTIVE";
8
+ TdsRateStatusEnum["DEACTIVE"] = "DEACTIVE";
9
+ })(TdsRateStatusEnum || (exports.TdsRateStatusEnum = TdsRateStatusEnum = {}));
@@ -113,4 +113,9 @@ export * from "./model/gst_rate.entity.model";
113
113
  export * from "./enums/organization_type_status_enum";
114
114
  export * from "./interface/organization_type.entity.interface";
115
115
  export * from "./model/organization_type.entity.model";
116
+ export * from "./interface/organization_type_tds_rate_mapping.entity.interface";
117
+ export * from "./model/organization_type_tds_rate_mapping.entity.model";
118
+ export * from "./enums/tds_rate_status_enum";
119
+ export * from "./interface/tds_rate.entity.interface";
120
+ export * from "./model/tds_rate.entity.model";
116
121
  export * from "./model/interface/billing.model.interface";
@@ -129,4 +129,9 @@ __exportStar(require("./model/gst_rate.entity.model"), exports);
129
129
  __exportStar(require("./enums/organization_type_status_enum"), exports);
130
130
  __exportStar(require("./interface/organization_type.entity.interface"), exports);
131
131
  __exportStar(require("./model/organization_type.entity.model"), exports);
132
+ __exportStar(require("./interface/organization_type_tds_rate_mapping.entity.interface"), exports);
133
+ __exportStar(require("./model/organization_type_tds_rate_mapping.entity.model"), exports);
134
+ __exportStar(require("./enums/tds_rate_status_enum"), exports);
135
+ __exportStar(require("./interface/tds_rate.entity.interface"), exports);
136
+ __exportStar(require("./model/tds_rate.entity.model"), exports);
132
137
  __exportStar(require("./model/interface/billing.model.interface"), exports);
@@ -18,12 +18,14 @@ import { HolidayEntityModel } from "../model/holiday.entity.model";
18
18
  import { LeaveEntityModel } from "../model/leave.entity.model";
19
19
  import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
20
20
  import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
21
+ import { OrganizationTypeTdsRateMappingEntityModel } from "../model/organization_type_tds_rate_mapping.entity.model";
21
22
  import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
22
23
  import { ProjectEntityModel } from "../model/project.entity.model";
23
24
  import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
24
25
  import { ReimbursementEntityModel } from "../model/reimbursement.entity.model";
25
26
  import { StateEntityModel } from "../model/state.entity.model";
26
27
  import { TaskEntityModel } from "../model/task.entity.model";
28
+ import { TdsRateEntityModel } from "../model/tds_rate.entity.model";
27
29
  import { TimesheetEntityModel } from "../model/timesheet.entity.model";
28
30
  import { UserEntityModel } from "../model/user.entity.model";
29
31
  import { IAddressBookEntity } from "./address-book.entity.interface";
@@ -53,6 +55,7 @@ import { ILeaveHistoryEntity } from "./leave_history.entity.interface";
53
55
  import { IOfficeLocationEntity } from "./office.location.entity";
54
56
  import { IOrganizationEntity } from "./organization.entity.interface";
55
57
  import { IOrganizationTypeEntity } from "./organization_type.entity.interface";
58
+ import { IOrganizationTypeTdsRateMappingEntity } from "./organization_type_tds_rate_mapping.entity.interface";
56
59
  import { IPermissionEntity } from "./permission.entity.interface";
57
60
  import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.interface";
58
61
  import { IRateEntity } from "./rate.entity.interface";
@@ -62,6 +65,7 @@ import { IRoleEntity } from "./role.entity.interface";
62
65
  import { IRolePermissionMappingEntity } from "./role.permission.mapping.entity.interface";
63
66
  import { IStateEntity } from "./state.entity.interface";
64
67
  import { ITaskEntity } from "./task.entity.interface";
68
+ import { ITdsRateEntity } from "./tds_rate.entity.interface";
65
69
  import { ITimesheetEntity } from "./timesheet.entity.interface";
66
70
  import { ITimesheetHistoryEntity } from "./timesheet_history.entity.interface";
67
71
  import { IToDoListEntity } from "./to-do.entity.interface";
@@ -152,7 +156,9 @@ export declare enum EntityEnum {
152
156
  ADDRESS_BOOK = "address_book",
153
157
  STATE = "state",
154
158
  GST_RATE = "gst_rate",
155
- ORGANIZATION_TYPE = "organization_type"
159
+ ORGANIZATION_TYPE = "organization_type",
160
+ TDS_RATE = "tds_rate",
161
+ ORGANIZATION_TYPE_TDS_RATE_MAPPING = "organization_type_tds_rate_mapping"
156
162
  }
157
163
  export type EntityRelations = {
158
164
  [K in EntityEnum | VirtualEntityEnum]: K;
@@ -171,7 +177,7 @@ export type IBaseEntityApiResponse<T> = {
171
177
  [K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
172
178
  };
173
179
  };
174
- 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 : never) & {
180
+ 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 : never) & {
175
181
  id: number;
176
182
  };
177
183
  export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
@@ -294,7 +300,7 @@ export declare enum VirtualEntityEnum {
294
300
  }
295
301
  export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
296
302
  export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
297
- export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : 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.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 : UserEntityModel;
303
+ export type EnumToModel<T extends EntityEnum | VirtualEntityEnum> = T extends EntityEnum.BILLING ? BillingEntityModel : T extends EntityEnum.CLIENT ? ClientEntityModel : 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.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.ORGANIZATION_TYPE_TDS_RATE_MAPPING ? OrganizationTypeTdsRateMappingEntityModel : T extends EntityEnum.TDS_RATE ? TdsRateEntityModel : UserEntityModel;
298
304
  export type EntityMap = {
299
305
  [key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
300
306
  };
@@ -81,6 +81,8 @@ var EntityEnum;
81
81
  EntityEnum["STATE"] = "state";
82
82
  EntityEnum["GST_RATE"] = "gst_rate";
83
83
  EntityEnum["ORGANIZATION_TYPE"] = "organization_type";
84
+ EntityEnum["TDS_RATE"] = "tds_rate";
85
+ EntityEnum["ORGANIZATION_TYPE_TDS_RATE_MAPPING"] = "organization_type_tds_rate_mapping";
84
86
  })(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
85
87
  var VirtualEntityEnum;
86
88
  (function (VirtualEntityEnum) {
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ // import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ // export interface IOrganizationTypeTdsRateMappingEntity extends IEntityAuditColumn {
4
+ // id: number;
5
+ // organizationTypeId: number;
6
+ // tdsRateId: number;
7
+ // }
@@ -0,0 +1,6 @@
1
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
2
+ export interface IOrganizationTypeTdsRateMappingEntity extends IEntityAuditColumn {
3
+ id: number;
4
+ organizationTypeId: number;
5
+ tdsRateId: number;
6
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ // export interface ITdsRateEntity extends IEntityAuditColumn {
4
+ // id: number;
5
+ // section: string;
6
+ // code: string;
7
+ // description?: string;
8
+ // panAvailableRate: number;
9
+ // panNotAvailableRate: number;
10
+ // effectiveFrom: number;
11
+ // status: TdsRateStatusEnum;
12
+ // }
@@ -0,0 +1,12 @@
1
+ import { TdsRateStatusEnum } from "../enums/tds_rate_status_enum";
2
+ import { IEntityAuditColumn } from "./entity-audit-columns.interface";
3
+ export interface ITdsRateEntity extends IEntityAuditColumn {
4
+ id: number;
5
+ section: string;
6
+ code: string;
7
+ description?: string;
8
+ panAvailableRate: number;
9
+ panNotAvailableRate: number;
10
+ effectiveFrom: number;
11
+ status: TdsRateStatusEnum;
12
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,12 +26,14 @@ const holiday_entity_model_1 = require("./holiday.entity.model");
26
26
  const leave_entity_model_1 = require("./leave.entity.model");
27
27
  const leave_count_entity_model_1 = require("./leave_count.entity.model");
28
28
  const organization_type_entity_model_1 = require("./organization_type.entity.model");
29
+ const organization_type_tds_rate_mapping_entity_model_1 = require("./organization_type_tds_rate_mapping.entity.model");
29
30
  const project_user_mapping_entity_model_1 = require("./project-user-mapping.entity.model");
30
31
  const project_entity_model_1 = require("./project.entity.model");
31
32
  const reimbursement_expense_entity_model_1 = require("./reimbursement-expense.entity.model");
32
33
  const reimbursement_entity_model_1 = require("./reimbursement.entity.model");
33
34
  const state_entity_model_1 = require("./state.entity.model");
34
35
  const task_entity_model_1 = require("./task.entity.model");
36
+ const tds_rate_entity_model_1 = require("./tds_rate.entity.model");
35
37
  const timesheet_entity_model_1 = require("./timesheet.entity.model");
36
38
  const user_entity_model_1 = require("./user.entity.model");
37
39
  function mapToIndex(entityMap) {
@@ -86,6 +88,8 @@ exports.entityEnumToEntityModel = {
86
88
  [entity_utils_interface_1.EntityEnum.STATE]: state_entity_model_1.StateEntityModel.fromEntity,
87
89
  [entity_utils_interface_1.EntityEnum.GST_RATE]: gst_rate_entity_model_1.GstRateEntityModel.fromEntity,
88
90
  [entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE]: organization_type_entity_model_1.OrganizationTypeEntityModel.fromEntity,
91
+ [entity_utils_interface_1.EntityEnum.TDS_RATE]: tds_rate_entity_model_1.TdsRateEntityModel.fromEntity,
92
+ [entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING]: organization_type_tds_rate_mapping_entity_model_1.OrganizationTypeTdsRateMappingEntityModel.fromEntity,
89
93
  };
90
94
  function entityMapToModels(entityMap) {
91
95
  for (const entityName in entityMap) {
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ // import { EntityEnum } from "../interface/entity.utils.interface";
3
+ // import { BaseEntityModel } from "./base.entity.model";
4
+ // export class OrganizationTypeTdsRateMappingEntityModel
5
+ // extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING>
6
+ // implements IOrganizationTypeTdsRateMappingEntity
7
+ // {
8
+ // id: number = 0;
9
+ // organizationTypeId: number = 0;
10
+ // tdsRateId: number = 0;
11
+ // createdOn: number = 0;
12
+ // updatedOn: number = 0;
13
+ // createdBy: number = 0;
14
+ // updatedBy: number = 0;
15
+ // static relationConfigs = [];
16
+ // static fromEntity(entity: IOrganizationTypeTdsRateMappingEntity): OrganizationTypeTdsRateMappingEntityModel {
17
+ // const result = new OrganizationTypeTdsRateMappingEntityModel(EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING);
18
+ // Object.assign(result, entity);
19
+ // return result;
20
+ // }
21
+ // getRelationConfigs(): any[] {
22
+ // return this.constructor.prototype.constructor.relationConfigs || [];
23
+ // }
24
+ // }
@@ -0,0 +1,20 @@
1
+ import { EntityEnum, EnumEntityType } from "../interface/entity.utils.interface";
2
+ import { IOrganizationTypeTdsRateMappingEntity } from "../interface/organization_type_tds_rate_mapping.entity.interface";
3
+ import { RelationConfigs } from "../interface/relation-config.interface";
4
+ import { BaseEntityModel } from "./base.entity.model";
5
+ import { OrganizationTypeEntityModel } from "./organization_type.entity.model";
6
+ import { TdsRateEntityModel } from "./tds_rate.entity.model";
7
+ export declare class OrganizationTypeTdsRateMappingEntityModel extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING> implements IOrganizationTypeTdsRateMappingEntity {
8
+ id: number;
9
+ organizationTypeId: number;
10
+ tdsRateId: number;
11
+ createdOn: number;
12
+ updatedOn: number;
13
+ createdBy: number;
14
+ updatedBy: number;
15
+ tdsRate?: TdsRateEntityModel;
16
+ organizationType?: OrganizationTypeEntityModel;
17
+ static relationConfigs: RelationConfigs<[EntityEnum.TDS_RATE, EntityEnum.ORGANIZATION_TYPE], EnumEntityType<EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING>>;
18
+ static fromEntity(entity: IOrganizationTypeTdsRateMappingEntity): OrganizationTypeTdsRateMappingEntityModel;
19
+ getRelationConfigs(): any[];
20
+ }
@@ -0,0 +1,47 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OrganizationTypeTdsRateMappingEntityModel = void 0;
4
+ const relation_type_enum_1 = require("../enums/relation-type.enum");
5
+ const entity_utils_interface_1 = require("../interface/entity.utils.interface");
6
+ const base_entity_model_1 = require("./base.entity.model");
7
+ class OrganizationTypeTdsRateMappingEntityModel extends base_entity_model_1.BaseEntityModel {
8
+ constructor() {
9
+ super(...arguments);
10
+ this.id = 0;
11
+ this.organizationTypeId = 0;
12
+ this.tdsRateId = 0;
13
+ this.createdOn = 0;
14
+ this.updatedOn = 0;
15
+ this.createdBy = 0;
16
+ this.updatedBy = 0;
17
+ }
18
+ static fromEntity(entity) {
19
+ const result = new OrganizationTypeTdsRateMappingEntityModel(entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING);
20
+ Object.assign(result, entity);
21
+ return result;
22
+ }
23
+ getRelationConfigs() {
24
+ return this.constructor.prototype.constructor.relationConfigs || [];
25
+ }
26
+ }
27
+ exports.OrganizationTypeTdsRateMappingEntityModel = OrganizationTypeTdsRateMappingEntityModel;
28
+ OrganizationTypeTdsRateMappingEntityModel.relationConfigs = [
29
+ {
30
+ name: entity_utils_interface_1.EntityEnum.TDS_RATE,
31
+ relation: relation_type_enum_1.RelationType.ONE,
32
+ key: "tdsRate",
33
+ mapKeyConfig: {
34
+ relationKey: "id",
35
+ key: "tdsRateId",
36
+ },
37
+ },
38
+ {
39
+ name: entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE,
40
+ relation: relation_type_enum_1.RelationType.ONE,
41
+ key: "organizationType",
42
+ mapKeyConfig: {
43
+ relationKey: "id",
44
+ key: "organizationTypeId",
45
+ },
46
+ },
47
+ ];
@@ -0,0 +1,37 @@
1
+ "use strict";
2
+ // import { EntityEnum } from "../interface/entity.utils.interface";
3
+ // import { BaseEntityModel } from "./base.entity.model";
4
+ // export class TdsRateEntityModel extends BaseEntityModel<EntityEnum.TDS_RATE> implements ITdsRateEntity {
5
+ // id: number = 0;
6
+ // section: string = "";
7
+ // code: string = "";
8
+ // description?: string;
9
+ // panAvailableRate: number = 0;
10
+ // panNotAvailableRate: number = 0;
11
+ // effectiveFrom: number = 0;
12
+ // status: TdsRateStatusEnum = TdsRateStatusEnum.ACTIVE;
13
+ // createdOn: number = 0;
14
+ // updatedOn: number = 0;
15
+ // createdBy: number = 0;
16
+ // updatedBy: number = 0;
17
+ // organizationTypeTdsRateMappings?: OrganizationTypeTdsRateMappingEntityModel[];
18
+ // static relationConfigs: RelationConfigs<[EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING], EnumEntityType<EntityEnum.TDS_RATE>> = [
19
+ // {
20
+ // name: EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING,
21
+ // relation: RelationType.MANY,
22
+ // key: "organizationTypeTdsRateMappings",
23
+ // mapKeyConfig: {
24
+ // relationKey: "tdsRateId",
25
+ // key: "id",
26
+ // },
27
+ // },
28
+ // ];
29
+ // static fromEntity(entity: ITdsRateEntity): TdsRateEntityModel {
30
+ // const result = new TdsRateEntityModel(EntityEnum.TDS_RATE);
31
+ // Object.assign(result, entity);
32
+ // return result;
33
+ // }
34
+ // getRelationConfigs(): any[] {
35
+ // return this.constructor.prototype.constructor.relationConfigs || [];
36
+ // }
37
+ // }
@@ -0,0 +1,24 @@
1
+ import { TdsRateStatusEnum } from "../enums/tds_rate_status_enum";
2
+ import { EntityEnum, EnumEntityType } from "../interface/entity.utils.interface";
3
+ import { RelationConfigs } from "../interface/relation-config.interface";
4
+ import { ITdsRateEntity } from "../interface/tds_rate.entity.interface";
5
+ import { BaseEntityModel } from "./base.entity.model";
6
+ import { OrganizationTypeTdsRateMappingEntityModel } from "./organization_type_tds_rate_mapping.entity.model";
7
+ export declare class TdsRateEntityModel extends BaseEntityModel<EntityEnum.TDS_RATE> implements ITdsRateEntity {
8
+ id: number;
9
+ section: string;
10
+ code: string;
11
+ description?: string;
12
+ panAvailableRate: number;
13
+ panNotAvailableRate: number;
14
+ effectiveFrom: number;
15
+ status: TdsRateStatusEnum;
16
+ createdOn: number;
17
+ updatedOn: number;
18
+ createdBy: number;
19
+ updatedBy: number;
20
+ organizationTypeTdsRateMappings?: OrganizationTypeTdsRateMappingEntityModel[];
21
+ static relationConfigs: RelationConfigs<[EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING], EnumEntityType<EntityEnum.TDS_RATE>>;
22
+ static fromEntity(entity: ITdsRateEntity): TdsRateEntityModel;
23
+ getRelationConfigs(): any[];
24
+ }
@@ -0,0 +1,43 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.TdsRateEntityModel = void 0;
4
+ const relation_type_enum_1 = require("../enums/relation-type.enum");
5
+ const tds_rate_status_enum_1 = require("../enums/tds_rate_status_enum");
6
+ const entity_utils_interface_1 = require("../interface/entity.utils.interface");
7
+ const base_entity_model_1 = require("./base.entity.model");
8
+ class TdsRateEntityModel extends base_entity_model_1.BaseEntityModel {
9
+ constructor() {
10
+ super(...arguments);
11
+ this.id = 0;
12
+ this.section = "";
13
+ this.code = "";
14
+ this.panAvailableRate = 0;
15
+ this.panNotAvailableRate = 0;
16
+ this.effectiveFrom = 0;
17
+ this.status = tds_rate_status_enum_1.TdsRateStatusEnum.ACTIVE;
18
+ this.createdOn = 0;
19
+ this.updatedOn = 0;
20
+ this.createdBy = 0;
21
+ this.updatedBy = 0;
22
+ }
23
+ static fromEntity(entity) {
24
+ const result = new TdsRateEntityModel(entity_utils_interface_1.EntityEnum.TDS_RATE);
25
+ Object.assign(result, entity);
26
+ return result;
27
+ }
28
+ getRelationConfigs() {
29
+ return this.constructor.prototype.constructor.relationConfigs || [];
30
+ }
31
+ }
32
+ exports.TdsRateEntityModel = TdsRateEntityModel;
33
+ TdsRateEntityModel.relationConfigs = [
34
+ {
35
+ name: entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE_TDS_RATE_MAPPING,
36
+ relation: relation_type_enum_1.RelationType.MANY,
37
+ key: "organizationTypeTdsRateMappings",
38
+ mapKeyConfig: {
39
+ relationKey: "tdsRateId",
40
+ key: "id",
41
+ },
42
+ },
43
+ ];
package/package.json CHANGED
@@ -1,37 +1,37 @@
1
- {
2
- "name": "law-common",
3
- "version": "10.46.0",
4
- "description": "",
5
- "main": "dist/index.js",
6
- "files": [
7
- "dist/**/*"
8
- ],
9
- "scripts": {
10
- "clean": "rm -rf dist",
11
- "build": "npm run clean && tsc",
12
- "publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
13
- "publish:patch": "npm version patch && git push && npm run build && npm publish",
14
- "publish:minor": "npm version minor && git push && npm run build && npm publish",
15
- "publish:major": "npm version major && git push && npm run build && npm publish",
16
- "link": "npm run build && npm link",
17
- "test": "jest"
18
- },
19
- "keywords": [],
20
- "author": "",
21
- "license": "ISC",
22
- "devDependencies": {
23
- "@types/jest": "^29.5.13",
24
- "@types/lodash": "^4.17.21",
25
- "@types/node": "^22.6.1",
26
- "jest": "^29.7.0",
27
- "ts-jest": "^29.2.5",
28
- "ts-node": "^10.9.2",
29
- "typescript": "^5.6.2"
30
- },
31
- "dependencies": {
32
- "@types/express": "^5.0.0",
33
- "@types/multer": "^1.4.12",
34
- "date-fns": "^4.1.0",
35
- "lodash": "4.17.21"
36
- }
37
- }
1
+ {
2
+ "name": "law-common",
3
+ "version": "10.46.1-beta.0",
4
+ "description": "",
5
+ "main": "dist/index.js",
6
+ "files": [
7
+ "dist/**/*"
8
+ ],
9
+ "scripts": {
10
+ "clean": "rm -rf dist",
11
+ "build": "npm run clean && tsc",
12
+ "publish:beta": "npm version prerelease --preid beta && git push && npm run build && npm publish --tag beta",
13
+ "publish:patch": "npm version patch && git push && npm run build && npm publish",
14
+ "publish:minor": "npm version minor && git push && npm run build && npm publish",
15
+ "publish:major": "npm version major && git push && npm run build && npm publish",
16
+ "link": "npm run build && npm link",
17
+ "test": "jest"
18
+ },
19
+ "keywords": [],
20
+ "author": "",
21
+ "license": "ISC",
22
+ "devDependencies": {
23
+ "@types/jest": "^29.5.13",
24
+ "@types/lodash": "^4.17.21",
25
+ "@types/node": "^22.6.1",
26
+ "jest": "^29.7.0",
27
+ "ts-jest": "^29.2.5",
28
+ "ts-node": "^10.9.2",
29
+ "typescript": "^5.6.2"
30
+ },
31
+ "dependencies": {
32
+ "@types/express": "^5.0.0",
33
+ "@types/multer": "^1.4.12",
34
+ "date-fns": "^4.1.0",
35
+ "lodash": "4.17.21"
36
+ }
37
+ }