law-common 10.45.0 → 10.45.2
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 +4 -0
- package/dist/src/api/index.js +4 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.autocode.js +4 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.d.ts +5 -0
- package/dist/src/api/interface/gst_rate.create.dto.interface.js +2 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/gst_rate.update.dto.interface.js +2 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.autocode.js +4 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.d.ts +5 -0
- package/dist/src/api/interface/organization_type.create.dto.interface.js +2 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.autocode.d.ts +0 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.autocode.js +3 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.d.ts +3 -0
- package/dist/src/api/interface/organization_type.update.dto.interface.js +2 -0
- package/dist/src/entities/enums/gst_rate_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/gst_rate_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/gst_rate_status_enum.d.ts +5 -0
- package/dist/src/entities/enums/gst_rate_status_enum.js +9 -0
- package/dist/src/entities/enums/organization_type_status_enum.autocode.d.ts +0 -0
- package/dist/src/entities/enums/organization_type_status_enum.autocode.js +6 -0
- package/dist/src/entities/enums/organization_type_status_enum.d.ts +5 -0
- package/dist/src/entities/enums/organization_type_status_enum.js +9 -0
- package/dist/src/entities/index.d.ts +7 -0
- package/dist/src/entities/index.js +7 -0
- package/dist/src/entities/interface/entity.utils.interface.d.ts +9 -3
- package/dist/src/entities/interface/entity.utils.interface.js +2 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.js +8 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.d.ts +8 -0
- package/dist/src/entities/interface/gst_rate.entity.interface.js +2 -0
- package/dist/src/entities/interface/organization_type.entity.interface.autocode.d.ts +0 -0
- package/dist/src/entities/interface/organization_type.entity.interface.autocode.js +8 -0
- package/dist/src/entities/interface/organization_type.entity.interface.d.ts +8 -0
- package/dist/src/entities/interface/organization_type.entity.interface.js +2 -0
- package/dist/src/entities/model/entity.model.interface.js +4 -0
- package/dist/src/entities/model/gst_rate.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/gst_rate.entity.model.autocode.js +22 -0
- package/dist/src/entities/model/gst_rate.entity.model.d.ts +17 -0
- package/dist/src/entities/model/gst_rate.entity.model.js +29 -0
- package/dist/src/entities/model/organization_type.entity.model.autocode.d.ts +0 -0
- package/dist/src/entities/model/organization_type.entity.model.autocode.js +22 -0
- package/dist/src/entities/model/organization_type.entity.model.d.ts +17 -0
- package/dist/src/entities/model/organization_type.entity.model.js +29 -0
- package/package.json +1 -1
package/dist/src/api/index.d.ts
CHANGED
|
@@ -54,3 +54,7 @@ export * from "./interface/api.utils.interface";
|
|
|
54
54
|
export * from "./interface/address-book.update.dto.interface";
|
|
55
55
|
export * from "./interface/state.create.dto.interface";
|
|
56
56
|
export * from "./interface/state.update.dto.interface";
|
|
57
|
+
export * from "./interface/gst_rate.create.dto.interface";
|
|
58
|
+
export * from "./interface/gst_rate.update.dto.interface";
|
|
59
|
+
export * from "./interface/organization_type.create.dto.interface";
|
|
60
|
+
export * from "./interface/organization_type.update.dto.interface";
|
package/dist/src/api/index.js
CHANGED
|
@@ -74,3 +74,7 @@ __exportStar(require("./interface/api.utils.interface"), exports);
|
|
|
74
74
|
__exportStar(require("./interface/address-book.update.dto.interface"), exports);
|
|
75
75
|
__exportStar(require("./interface/state.create.dto.interface"), exports);
|
|
76
76
|
__exportStar(require("./interface/state.update.dto.interface"), exports);
|
|
77
|
+
__exportStar(require("./interface/gst_rate.create.dto.interface"), exports);
|
|
78
|
+
__exportStar(require("./interface/gst_rate.update.dto.interface"), exports);
|
|
79
|
+
__exportStar(require("./interface/organization_type.create.dto.interface"), exports);
|
|
80
|
+
__exportStar(require("./interface/organization_type.update.dto.interface"), exports);
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IEntityCreateDto } from "../../entities";
|
|
2
|
+
import { IGstRateEntity } from "../../entities/interface/gst_rate.entity.interface";
|
|
3
|
+
export type IGstRateCreateExclude = "status";
|
|
4
|
+
export interface IGstRateCreateDto extends Omit<IEntityCreateDto<IGstRateEntity>, IGstRateCreateExclude> {
|
|
5
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { IEntityCreateDto } from "../../entities";
|
|
2
|
+
import { IOrganizationTypeEntity } from "../../entities/interface/organization_type.entity.interface";
|
|
3
|
+
export type IOrganizationTypeCreateExclude = "status";
|
|
4
|
+
export interface IOrganizationTypeCreateDto extends Omit<IEntityCreateDto<IOrganizationTypeEntity>, IOrganizationTypeCreateExclude> {
|
|
5
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GstRateStatusEnum = void 0;
|
|
4
|
+
var GstRateStatusEnum;
|
|
5
|
+
(function (GstRateStatusEnum) {
|
|
6
|
+
GstRateStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
GstRateStatusEnum["DEACTIVE"] = "DEACTIVE";
|
|
8
|
+
GstRateStatusEnum["INACTIVE"] = "INACTIVE";
|
|
9
|
+
})(GstRateStatusEnum || (exports.GstRateStatusEnum = GstRateStatusEnum = {}));
|
|
File without changes
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationTypeStatusEnum = void 0;
|
|
4
|
+
var OrganizationTypeStatusEnum;
|
|
5
|
+
(function (OrganizationTypeStatusEnum) {
|
|
6
|
+
OrganizationTypeStatusEnum["ACTIVE"] = "ACTIVE";
|
|
7
|
+
OrganizationTypeStatusEnum["DEACTIVE"] = "DEACTIVE";
|
|
8
|
+
OrganizationTypeStatusEnum["INACTIVE"] = "INACTIVE";
|
|
9
|
+
})(OrganizationTypeStatusEnum || (exports.OrganizationTypeStatusEnum = OrganizationTypeStatusEnum = {}));
|
|
@@ -107,3 +107,10 @@ export * from "./interface/address-book.entity.interface";
|
|
|
107
107
|
export * from "./enums/address_book_status_enum";
|
|
108
108
|
export * from "./interface/state.entity.interface";
|
|
109
109
|
export * from "./enums/state_status_enum";
|
|
110
|
+
export * from "./model/state.entity.model";
|
|
111
|
+
export * from "./interface/gst_rate.entity.interface";
|
|
112
|
+
export * from "./enums/gst_rate_status_enum";
|
|
113
|
+
export * from "./model/gst_rate.entity.model";
|
|
114
|
+
export * from "./interface/organization_type.entity.interface";
|
|
115
|
+
export * from "./enums/organization_type_status_enum";
|
|
116
|
+
export * from "./model/organization_type.entity.model";
|
|
@@ -123,3 +123,10 @@ __exportStar(require("./interface/address-book.entity.interface"), exports);
|
|
|
123
123
|
__exportStar(require("./enums/address_book_status_enum"), exports);
|
|
124
124
|
__exportStar(require("./interface/state.entity.interface"), exports);
|
|
125
125
|
__exportStar(require("./enums/state_status_enum"), exports);
|
|
126
|
+
__exportStar(require("./model/state.entity.model"), exports);
|
|
127
|
+
__exportStar(require("./interface/gst_rate.entity.interface"), exports);
|
|
128
|
+
__exportStar(require("./enums/gst_rate_status_enum"), exports);
|
|
129
|
+
__exportStar(require("./model/gst_rate.entity.model"), exports);
|
|
130
|
+
__exportStar(require("./interface/organization_type.entity.interface"), exports);
|
|
131
|
+
__exportStar(require("./enums/organization_type_status_enum"), exports);
|
|
132
|
+
__exportStar(require("./model/organization_type.entity.model"), exports);
|
|
@@ -13,9 +13,11 @@ import { ClientAffiliateEntityModel } from "../model/client-affiliate.entity.mod
|
|
|
13
13
|
import { ClientEntityModel } from "../model/client.entity.model";
|
|
14
14
|
import { ConfigurationEntityModel } from "../model/configuration.model";
|
|
15
15
|
import { CountryEntityModel } from "../model/country.entity.model";
|
|
16
|
+
import { GstRateEntityModel } from "../model/gst_rate.entity.model";
|
|
16
17
|
import { HolidayEntityModel } from "../model/holiday.entity.model";
|
|
17
18
|
import { LeaveEntityModel } from "../model/leave.entity.model";
|
|
18
19
|
import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
|
|
20
|
+
import { OrganizationTypeEntityModel } from "../model/organization_type.entity.model";
|
|
19
21
|
import { ProjectUserMappingEntityModel } from "../model/project-user-mapping.entity.model";
|
|
20
22
|
import { ProjectEntityModel } from "../model/project.entity.model";
|
|
21
23
|
import { ReimbursementExpenseEntityModel } from "../model/reimbursement-expense.entity.model";
|
|
@@ -41,6 +43,7 @@ import { ICronJobsEntity } from "./cron-job.entity.interface";
|
|
|
41
43
|
import { IDesignationEntity } from "./designation.entity.interface";
|
|
42
44
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
43
45
|
import { IExpenseTypeEntity } from "./expense_type.entity.interface";
|
|
46
|
+
import { IGstRateEntity } from "./gst_rate.entity.interface";
|
|
44
47
|
import { IHolidayListEntity } from "./holiday-list.entity.interface";
|
|
45
48
|
import { IHolidayEntity } from "./holiday.entity.interface";
|
|
46
49
|
import { IIndustryEntity } from "./industry.entity.interface";
|
|
@@ -49,6 +52,7 @@ import { ILeaveCountVirtualEntity, ILeaveEntity } from "./leave.entity.interface
|
|
|
49
52
|
import { ILeaveHistoryEntity } from "./leave_history.entity.interface";
|
|
50
53
|
import { IOfficeLocationEntity } from "./office.location.entity";
|
|
51
54
|
import { IOrganizationEntity } from "./organization.entity.interface";
|
|
55
|
+
import { IOrganizationTypeEntity } from "./organization_type.entity.interface";
|
|
52
56
|
import { IPermissionEntity } from "./permission.entity.interface";
|
|
53
57
|
import { IProjectEntity, IProjectUserMappingEntity } from "./project.entity.interface";
|
|
54
58
|
import { IRateEntity } from "./rate.entity.interface";
|
|
@@ -146,7 +150,9 @@ export declare enum EntityEnum {
|
|
|
146
150
|
CRON_JOBS = "cron_jobs",
|
|
147
151
|
TO_DO_LIST = "to_do_list",
|
|
148
152
|
ADDRESS_BOOK = "address_book",
|
|
149
|
-
STATE = "state"
|
|
153
|
+
STATE = "state",
|
|
154
|
+
GST_RATE = "gst_rate",
|
|
155
|
+
ORGANIZATION_TYPE = "organization_type"
|
|
150
156
|
}
|
|
151
157
|
export type EntityRelations = {
|
|
152
158
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -165,7 +171,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
165
171
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
166
172
|
};
|
|
167
173
|
};
|
|
168
|
-
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 : never) & {
|
|
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) & {
|
|
169
175
|
id: number;
|
|
170
176
|
};
|
|
171
177
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -288,7 +294,7 @@ export declare enum VirtualEntityEnum {
|
|
|
288
294
|
}
|
|
289
295
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
290
296
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
291
|
-
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 : UserEntityModel;
|
|
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;
|
|
292
298
|
export type EntityMap = {
|
|
293
299
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
294
300
|
};
|
|
@@ -79,6 +79,8 @@ var EntityEnum;
|
|
|
79
79
|
EntityEnum["TO_DO_LIST"] = "to_do_list";
|
|
80
80
|
EntityEnum["ADDRESS_BOOK"] = "address_book";
|
|
81
81
|
EntityEnum["STATE"] = "state";
|
|
82
|
+
EntityEnum["GST_RATE"] = "gst_rate";
|
|
83
|
+
EntityEnum["ORGANIZATION_TYPE"] = "organization_type";
|
|
82
84
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
83
85
|
var VirtualEntityEnum;
|
|
84
86
|
(function (VirtualEntityEnum) {
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { GstRateStatusEnum } from "../enums/gst_rate_status_enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
export interface IGstRateEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
code: string;
|
|
6
|
+
rate: number;
|
|
7
|
+
status: GstRateStatusEnum;
|
|
8
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
// export interface IOrganizationTypeEntity extends IEntityAuditColumn {
|
|
4
|
+
// id: number;
|
|
5
|
+
// code: string;
|
|
6
|
+
// name: string;
|
|
7
|
+
// status: OrganizationTypeStatusEnum;
|
|
8
|
+
// }
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { OrganizationTypeStatusEnum } from "../enums/organization_type_status_enum";
|
|
2
|
+
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
|
+
export interface IOrganizationTypeEntity extends IEntityAuditColumn {
|
|
4
|
+
id: number;
|
|
5
|
+
code: string;
|
|
6
|
+
name: string;
|
|
7
|
+
status: OrganizationTypeStatusEnum;
|
|
8
|
+
}
|
|
@@ -32,6 +32,8 @@ const country_entity_model_1 = require("./country.entity.model");
|
|
|
32
32
|
const address_book_model_1 = require("./address_book.model");
|
|
33
33
|
const billing_transaction_model_1 = require("./billing-transaction.model");
|
|
34
34
|
const state_entity_model_1 = require("./state.entity.model");
|
|
35
|
+
const gst_rate_entity_model_1 = require("./gst_rate.entity.model");
|
|
36
|
+
const organization_type_entity_model_1 = require("./organization_type.entity.model");
|
|
35
37
|
function mapToIndex(entityMap) {
|
|
36
38
|
return Object.keys(entityMap).reduce((acc, key) => {
|
|
37
39
|
// @ts-ignore
|
|
@@ -82,6 +84,8 @@ exports.entityEnumToEntityModel = {
|
|
|
82
84
|
[entity_utils_interface_1.EntityEnum.ADDRESS_BOOK]: address_book_model_1.AddressBookEntityModel.fromEntity,
|
|
83
85
|
[entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION]: billing_transaction_model_1.BillingTransactionEntityModel.fromEntity,
|
|
84
86
|
[entity_utils_interface_1.EntityEnum.STATE]: state_entity_model_1.StateEntityModel.fromEntity,
|
|
87
|
+
[entity_utils_interface_1.EntityEnum.GST_RATE]: gst_rate_entity_model_1.GstRateEntityModel.fromEntity,
|
|
88
|
+
[entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE]: organization_type_entity_model_1.OrganizationTypeEntityModel.fromEntity,
|
|
85
89
|
};
|
|
86
90
|
function entityMapToModels(entityMap) {
|
|
87
91
|
for (const entityName in entityMap) {
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// export class GstRateEntityModel extends BaseEntityModel<EntityEnum.GST_RATE> implements IGstRateEntity {
|
|
5
|
+
// id: number = 0;
|
|
6
|
+
// code: string = "";
|
|
7
|
+
// rate: number = 0;
|
|
8
|
+
// status: GstRateStatusEnum = GstRateStatusEnum.ACTIVE;
|
|
9
|
+
// createdOn: number = 0;
|
|
10
|
+
// updatedOn: number = 0;
|
|
11
|
+
// createdBy: number = 0;
|
|
12
|
+
// updatedBy: number = 0;
|
|
13
|
+
// static relationConfigs = [];
|
|
14
|
+
// static fromEntity(entity: IGstRateEntity): GstRateEntityModel {
|
|
15
|
+
// const result = new GstRateEntityModel(EntityEnum.GST_RATE);
|
|
16
|
+
// Object.assign(result, entity);
|
|
17
|
+
// return result;
|
|
18
|
+
// }
|
|
19
|
+
// getRelationConfigs(): any[] {
|
|
20
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { GstRateStatusEnum } from "../enums/gst_rate_status_enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IGstRateEntity } from "../interface/gst_rate.entity.interface";
|
|
4
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
+
export declare class GstRateEntityModel extends BaseEntityModel<EntityEnum.GST_RATE> implements IGstRateEntity {
|
|
6
|
+
id: number;
|
|
7
|
+
code: string;
|
|
8
|
+
rate: number;
|
|
9
|
+
status: GstRateStatusEnum;
|
|
10
|
+
createdOn: number;
|
|
11
|
+
updatedOn: number;
|
|
12
|
+
createdBy: number;
|
|
13
|
+
updatedBy: number;
|
|
14
|
+
static relationConfigs: never[];
|
|
15
|
+
static fromEntity(entity: IGstRateEntity): GstRateEntityModel;
|
|
16
|
+
getRelationConfigs(): any[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GstRateEntityModel = void 0;
|
|
4
|
+
const gst_rate_status_enum_1 = require("../enums/gst_rate_status_enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class GstRateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.code = "";
|
|
12
|
+
this.rate = 0;
|
|
13
|
+
this.status = gst_rate_status_enum_1.GstRateStatusEnum.ACTIVE;
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new GstRateEntityModel(entity_utils_interface_1.EntityEnum.GST_RATE);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.GstRateEntityModel = GstRateEntityModel;
|
|
29
|
+
GstRateEntityModel.relationConfigs = [];
|
|
File without changes
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
// import { BaseEntityModel } from "./base.entity.model";
|
|
4
|
+
// export class OrganizationTypeEntityModel extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE> implements IOrganizationTypeEntity {
|
|
5
|
+
// id: number = 0;
|
|
6
|
+
// code: string = "";
|
|
7
|
+
// name: string = "";
|
|
8
|
+
// status: OrganizationTypeStatusEnum = OrganizationTypeStatusEnum.ACTIVE;
|
|
9
|
+
// createdOn: number = 0;
|
|
10
|
+
// updatedOn: number = 0;
|
|
11
|
+
// createdBy: number = 0;
|
|
12
|
+
// updatedBy: number = 0;
|
|
13
|
+
// static relationConfigs = [];
|
|
14
|
+
// static fromEntity(entity: IOrganizationTypeEntity): OrganizationTypeEntityModel {
|
|
15
|
+
// const result = new OrganizationTypeEntityModel(EntityEnum.ORGANIZATION_TYPE);
|
|
16
|
+
// Object.assign(result, entity);
|
|
17
|
+
// return result;
|
|
18
|
+
// }
|
|
19
|
+
// getRelationConfigs(): any[] {
|
|
20
|
+
// return this.constructor.prototype.constructor.relationConfigs || [];
|
|
21
|
+
// }
|
|
22
|
+
// }
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { OrganizationTypeStatusEnum } from "../enums/organization_type_status_enum";
|
|
2
|
+
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
|
+
import { IOrganizationTypeEntity } from "../interface/organization_type.entity.interface";
|
|
4
|
+
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
+
export declare class OrganizationTypeEntityModel extends BaseEntityModel<EntityEnum.ORGANIZATION_TYPE> implements IOrganizationTypeEntity {
|
|
6
|
+
id: number;
|
|
7
|
+
code: string;
|
|
8
|
+
name: string;
|
|
9
|
+
status: OrganizationTypeStatusEnum;
|
|
10
|
+
createdOn: number;
|
|
11
|
+
updatedOn: number;
|
|
12
|
+
createdBy: number;
|
|
13
|
+
updatedBy: number;
|
|
14
|
+
static relationConfigs: never[];
|
|
15
|
+
static fromEntity(entity: IOrganizationTypeEntity): OrganizationTypeEntityModel;
|
|
16
|
+
getRelationConfigs(): any[];
|
|
17
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OrganizationTypeEntityModel = void 0;
|
|
4
|
+
const organization_type_status_enum_1 = require("../enums/organization_type_status_enum");
|
|
5
|
+
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
|
+
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
+
class OrganizationTypeEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
|
+
constructor() {
|
|
9
|
+
super(...arguments);
|
|
10
|
+
this.id = 0;
|
|
11
|
+
this.code = "";
|
|
12
|
+
this.name = "";
|
|
13
|
+
this.status = organization_type_status_enum_1.OrganizationTypeStatusEnum.ACTIVE;
|
|
14
|
+
this.createdOn = 0;
|
|
15
|
+
this.updatedOn = 0;
|
|
16
|
+
this.createdBy = 0;
|
|
17
|
+
this.updatedBy = 0;
|
|
18
|
+
}
|
|
19
|
+
static fromEntity(entity) {
|
|
20
|
+
const result = new OrganizationTypeEntityModel(entity_utils_interface_1.EntityEnum.ORGANIZATION_TYPE);
|
|
21
|
+
Object.assign(result, entity);
|
|
22
|
+
return result;
|
|
23
|
+
}
|
|
24
|
+
getRelationConfigs() {
|
|
25
|
+
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.OrganizationTypeEntityModel = OrganizationTypeEntityModel;
|
|
29
|
+
OrganizationTypeEntityModel.relationConfigs = [];
|