law-common 10.42.1-beta.2 → 10.42.1-beta.4
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/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/entities/enums/gst_rate_status_enum.autocode.js +1 -1
- package/dist/src/entities/enums/gst_rate_status_enum.d.ts +1 -1
- package/dist/src/entities/enums/gst_rate_status_enum.js +7 -7
- package/dist/src/entities/interface/entity.utils.interface.d.ts +2 -2
- package/dist/src/entities/interface/gst_rate.entity.interface.autocode.js +1 -1
- package/dist/src/entities/interface/gst_rate.entity.interface.d.ts +2 -2
- package/dist/src/entities/model/entity.model.interface.js +1 -1
- 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 +4 -4
- package/dist/src/entities/model/gst_rate.entity.model.js +6 -6
- package/package.json +1 -1
|
File without changes
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
var
|
|
5
|
-
(function (
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
})(
|
|
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 = {}));
|
|
@@ -13,7 +13,7 @@ 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 {
|
|
16
|
+
import { GstRateEntityModel } from "../model/gst_rate.entity.model";
|
|
17
17
|
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";
|
|
@@ -291,7 +291,7 @@ export declare enum VirtualEntityEnum {
|
|
|
291
291
|
}
|
|
292
292
|
export type IHistoryConstraintSearchResponse<T> = IBaseResponse<IHistoryEntitySearchByConstraintResponse<T>[]>;
|
|
293
293
|
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 : T extends EntityEnum.GST_RATE ?
|
|
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 : T extends EntityEnum.GST_RATE ? GstRateEntityModel : UserEntityModel;
|
|
295
295
|
export type EntityMap = {
|
|
296
296
|
[key in EntityEnum | VirtualEntityEnum]: EnumToModel<key>[];
|
|
297
297
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GstRateStatusEnum } from "../enums/gst_rate_status_enum";
|
|
2
2
|
import { IEntityAuditColumn } from "./entity-audit-columns.interface";
|
|
3
3
|
export interface IGstRateEntity extends IEntityAuditColumn {
|
|
4
4
|
id: number;
|
|
5
5
|
code: string;
|
|
6
6
|
rate: number;
|
|
7
|
-
status:
|
|
7
|
+
status: GstRateStatusEnum;
|
|
8
8
|
}
|
|
@@ -83,7 +83,7 @@ exports.entityEnumToEntityModel = {
|
|
|
83
83
|
[entity_utils_interface_1.EntityEnum.ADDRESS_BOOK]: address_book_model_1.AddressBookEntityModel.fromEntity,
|
|
84
84
|
[entity_utils_interface_1.EntityEnum.BILLING_TRANSACTION]: billing_transaction_model_1.BillingTransactionEntityModel.fromEntity,
|
|
85
85
|
[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.
|
|
86
|
+
[entity_utils_interface_1.EntityEnum.GST_RATE]: gst_rate_entity_model_1.GstRateEntityModel.fromEntity,
|
|
87
87
|
};
|
|
88
88
|
function entityMapToModels(entityMap) {
|
|
89
89
|
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
|
+
// }
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GstRateStatusEnum } from "../enums/gst_rate_status_enum";
|
|
2
2
|
import { EntityEnum } from "../interface/entity.utils.interface";
|
|
3
3
|
import { IGstRateEntity } from "../interface/gst_rate.entity.interface";
|
|
4
4
|
import { BaseEntityModel } from "./base.entity.model";
|
|
5
|
-
export declare class
|
|
5
|
+
export declare class GstRateEntityModel extends BaseEntityModel<EntityEnum.GST_RATE> implements IGstRateEntity {
|
|
6
6
|
id: number;
|
|
7
7
|
code: string;
|
|
8
8
|
rate: number;
|
|
9
|
-
status:
|
|
9
|
+
status: GstRateStatusEnum;
|
|
10
10
|
createdOn: number;
|
|
11
11
|
updatedOn: number;
|
|
12
12
|
createdBy: number;
|
|
13
13
|
updatedBy: number;
|
|
14
|
-
static fromEntity(entity: IGstRateEntity): GSTRateEntityModel;
|
|
15
14
|
static relationConfigs: never[];
|
|
15
|
+
static fromEntity(entity: IGstRateEntity): GstRateEntityModel;
|
|
16
16
|
getRelationConfigs(): any[];
|
|
17
17
|
}
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.GstRateEntityModel = void 0;
|
|
4
4
|
const gst_rate_status_enum_1 = require("../enums/gst_rate_status_enum");
|
|
5
5
|
const entity_utils_interface_1 = require("../interface/entity.utils.interface");
|
|
6
6
|
const base_entity_model_1 = require("./base.entity.model");
|
|
7
|
-
class
|
|
7
|
+
class GstRateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
8
8
|
constructor() {
|
|
9
9
|
super(...arguments);
|
|
10
10
|
this.id = 0;
|
|
11
11
|
this.code = "";
|
|
12
12
|
this.rate = 0;
|
|
13
|
-
this.status = gst_rate_status_enum_1.
|
|
13
|
+
this.status = gst_rate_status_enum_1.GstRateStatusEnum.ACTIVE;
|
|
14
14
|
this.createdOn = 0;
|
|
15
15
|
this.updatedOn = 0;
|
|
16
16
|
this.createdBy = 0;
|
|
17
17
|
this.updatedBy = 0;
|
|
18
18
|
}
|
|
19
19
|
static fromEntity(entity) {
|
|
20
|
-
const result = new
|
|
20
|
+
const result = new GstRateEntityModel(entity_utils_interface_1.EntityEnum.GST_RATE);
|
|
21
21
|
Object.assign(result, entity);
|
|
22
22
|
return result;
|
|
23
23
|
}
|
|
@@ -25,5 +25,5 @@ class GSTRateEntityModel extends base_entity_model_1.BaseEntityModel {
|
|
|
25
25
|
return this.constructor.prototype.constructor.relationConfigs || [];
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
-
exports.
|
|
29
|
-
|
|
28
|
+
exports.GstRateEntityModel = GstRateEntityModel;
|
|
29
|
+
GstRateEntityModel.relationConfigs = [];
|