law-common 10.42.1-beta.2 → 10.43.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 +0 -2
- package/dist/src/api/index.js +0 -2
- package/dist/src/entities/index.d.ts +0 -2
- package/dist/src/entities/index.js +0 -2
- package/dist/src/entities/interface/entity.utils.interface.d.ts +3 -6
- package/dist/src/entities/interface/entity.utils.interface.js +0 -1
- package/dist/src/entities/model/entity.model.interface.js +0 -2
- package/package.json +37 -37
- 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 +0 -4
- package/dist/src/api/interface/gst_rate.create.dto.interface.d.ts +0 -5
- package/dist/src/api/interface/gst_rate.create.dto.interface.js +0 -2
- package/dist/src/api/interface/gst_rate.update.dto.interface.d.ts +0 -3
- package/dist/src/api/interface/gst_rate.update.dto.interface.js +0 -2
- 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 +0 -6
- package/dist/src/entities/enums/gst_rate_status_enum.d.ts +0 -5
- package/dist/src/entities/enums/gst_rate_status_enum.js +0 -9
- 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 +0 -8
- package/dist/src/entities/interface/gst_rate.entity.interface.d.ts +0 -8
- package/dist/src/entities/interface/gst_rate.entity.interface.js +0 -2
- package/dist/src/entities/model/gst_rate.entity.model.d.ts +0 -17
- package/dist/src/entities/model/gst_rate.entity.model.js +0 -29
package/dist/src/api/index.d.ts
CHANGED
|
@@ -54,5 +54,3 @@ 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";
|
package/dist/src/api/index.js
CHANGED
|
@@ -74,5 +74,3 @@ __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);
|
|
@@ -107,5 +107,3 @@ 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 "./interface/gst_rate.entity.interface";
|
|
111
|
-
export * from "./enums/gst_rate_status_enum";
|
|
@@ -123,5 +123,3 @@ __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("./interface/gst_rate.entity.interface"), exports);
|
|
127
|
-
__exportStar(require("./enums/gst_rate_status_enum"), exports);
|
|
@@ -13,7 +13,6 @@ 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";
|
|
17
16
|
import { HolidayEntityModel } from "../model/holiday.entity.model";
|
|
18
17
|
import { LeaveEntityModel } from "../model/leave.entity.model";
|
|
19
18
|
import { LeaveCountVirtualEntityModel } from "../model/leave_count.entity.model";
|
|
@@ -42,7 +41,6 @@ import { ICronJobsEntity } from "./cron-job.entity.interface";
|
|
|
42
41
|
import { IDesignationEntity } from "./designation.entity.interface";
|
|
43
42
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
44
43
|
import { IExpenseTypeEntity } from "./expense_type.entity.interface";
|
|
45
|
-
import { IGstRateEntity } from "./gst_rate.entity.interface";
|
|
46
44
|
import { IHolidayListEntity } from "./holiday-list.entity.interface";
|
|
47
45
|
import { IHolidayEntity } from "./holiday.entity.interface";
|
|
48
46
|
import { IIndustryEntity } from "./industry.entity.interface";
|
|
@@ -148,8 +146,7 @@ export declare enum EntityEnum {
|
|
|
148
146
|
CRON_JOBS = "cron_jobs",
|
|
149
147
|
TO_DO_LIST = "to_do_list",
|
|
150
148
|
ADDRESS_BOOK = "address_book",
|
|
151
|
-
STATE = "state"
|
|
152
|
-
GST_RATE = "gst_rate"
|
|
149
|
+
STATE = "state"
|
|
153
150
|
}
|
|
154
151
|
export type EntityRelations = {
|
|
155
152
|
[K in EntityEnum | VirtualEntityEnum]: K;
|
|
@@ -168,7 +165,7 @@ export type IBaseEntityApiResponse<T> = {
|
|
|
168
165
|
[K in EntityEnum | VirtualEntityEnum]?: IBaseEntityApiResponse<EnumEntityType<K>>;
|
|
169
166
|
};
|
|
170
167
|
};
|
|
171
|
-
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.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 :
|
|
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.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) & {
|
|
172
169
|
id: number;
|
|
173
170
|
};
|
|
174
171
|
export type EntityRelationConfig<T extends EntityEnum | VirtualEntityEnum> = {
|
|
@@ -291,7 +288,7 @@ export declare enum VirtualEntityEnum {
|
|
|
291
288
|
}
|
|
292
289
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
293
290
|
export type IHistoryConstraintSearchServiceResponse<T> = IHistoryEntitySearchByConstraintResponse<T>[];
|
|
294
|
-
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 :
|
|
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;
|
|
295
292
|
export type EntityMap = {
|
|
296
293
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
297
294
|
};
|
|
@@ -79,7 +79,6 @@ 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
82
|
})(EntityEnum || (exports.EntityEnum = EntityEnum = {}));
|
|
84
83
|
var VirtualEntityEnum;
|
|
85
84
|
(function (VirtualEntityEnum) {
|
|
@@ -32,7 +32,6 @@ 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
35
|
function mapToIndex(entityMap) {
|
|
37
36
|
return Object.keys(entityMap).reduce((acc, key) => {
|
|
38
37
|
// @ts-ignore
|
|
@@ -83,7 +82,6 @@ exports.entityEnumToEntityModel = {
|
|
|
83
82
|
[entity_utils_interface_1.EntityEnum.ADDRESS_BOOK]: address_book_model_1.AddressBookEntityModel.fromEntity,
|
|
84
83
|
[entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION]: billing_transaction_model_1.BillingTransactionEntityModel.fromEntity,
|
|
85
84
|
[entity_utils_interface_1.EntityEnum.STATE]: state_entity_model_1.StateEntityModel.fromEntity,
|
|
86
|
-
[entity_utils_interface_1.EntityEnum.GST_RATE]: gst_rate_entity_model_1.GSTRateEntityModel.fromEntity,
|
|
87
85
|
};
|
|
88
86
|
function entityMapToModels(entityMap) {
|
|
89
87
|
for (const entityName in entityMap) {
|
package/package.json
CHANGED
|
@@ -1,37 +1,37 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "law-common",
|
|
3
|
-
"version": "10.
|
|
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.43.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
|
+
}
|
|
File without changes
|
|
@@ -1,5 +0,0 @@
|
|
|
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
|
|
@@ -1,9 +0,0 @@
|
|
|
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
|
|
@@ -1,8 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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 fromEntity(entity: IGstRateEntity): GSTRateEntityModel;
|
|
15
|
-
static relationConfigs: never[];
|
|
16
|
-
getRelationConfigs(): any[];
|
|
17
|
-
}
|
|
@@ -1,29 +0,0 @@
|
|
|
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 = [];
|