law-common 2.9.2-beta.5 → 2.9.2-beta.7
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/api/interface/user.create.dto.interace.d.ts +1 -1
- package/dist/src/entities/enums/bank_status.enum.js +1 -1
- package/dist/src/entities/enums/user.entity.enum.d.ts +7 -1
- package/dist/src/entities/enums/user.entity.enum.js +8 -1
- package/dist/src/entities/interface/bank_history.entity.interface.d.ts +0 -23
- package/dist/src/entities/interface/entity.utils.interface.d.ts +38 -2
- package/dist/src/entities/interface/timesheet_history.entity.interface.d.ts +0 -23
- package/package.json +1 -1
- package/dist/src/api/interface/bank_history_entity.response.d.ts +0 -12
- package/dist/src/api/interface/bank_history_entity.response.js +0 -2
- package/dist/src/api/interface/timesheet_history_entity.response.d.ts +0 -12
- package/dist/src/api/interface/timesheet_history_entity.response.js +0 -2
package/dist/src/api/index.d.ts
CHANGED
|
@@ -63,6 +63,4 @@ export * from "./interface/billing.history.api";
|
|
|
63
63
|
export * from "./interface/billing_timesheet_history.api";
|
|
64
64
|
export * from "./interface/reimbursement_history.api";
|
|
65
65
|
export * from "./interface/reimbursement_expense.api";
|
|
66
|
-
export * from "./interface/timesheet_history_entity.response";
|
|
67
66
|
export * from "./interface/bank_history.api";
|
|
68
|
-
export * from "./interface/bank_history_entity.response";
|
package/dist/src/api/index.js
CHANGED
|
@@ -79,6 +79,4 @@ __exportStar(require("./interface/billing.history.api"), exports);
|
|
|
79
79
|
__exportStar(require("./interface/billing_timesheet_history.api"), exports);
|
|
80
80
|
__exportStar(require("./interface/reimbursement_history.api"), exports);
|
|
81
81
|
__exportStar(require("./interface/reimbursement_expense.api"), exports);
|
|
82
|
-
__exportStar(require("./interface/timesheet_history_entity.response"), exports);
|
|
83
82
|
__exportStar(require("./interface/bank_history.api"), exports);
|
|
84
|
-
__exportStar(require("./interface/bank_history_entity.response"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { IUserApiEntity } from "./user.entity.api";
|
|
2
|
-
export interface IUserCreateDto extends Omit<IUserApiEntity, "id" | "updatedOn" | "updatedBy" | "createdBy" | "createdOn"> {
|
|
2
|
+
export interface IUserCreateDto extends Omit<IUserApiEntity, "id" | "updatedOn" | "updatedBy" | "createdBy" | "createdOn" | "password"> {
|
|
3
3
|
panDocument?: File;
|
|
4
4
|
aadharDocument?: File;
|
|
5
5
|
passportDocument?: File;
|
|
@@ -20,7 +20,7 @@ var BankStatusEnum;
|
|
|
20
20
|
if (Object.values(BankStatusEnum).includes(value)) {
|
|
21
21
|
return value;
|
|
22
22
|
}
|
|
23
|
-
throw new Error("Invalid bank
|
|
23
|
+
throw new Error("Invalid bank status");
|
|
24
24
|
}
|
|
25
25
|
BankStatusEnum.parse = parse;
|
|
26
26
|
})(BankStatusEnum || (exports.BankStatusEnum = BankStatusEnum = {}));
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
export declare enum UserStatusEnum {
|
|
2
2
|
active = "active",
|
|
3
3
|
deactive = "deactive",
|
|
4
|
-
suspended = "suspended"
|
|
4
|
+
suspended = "suspended",
|
|
5
|
+
pending = "pending"
|
|
5
6
|
}
|
|
6
7
|
export declare enum UserRoleEnum {
|
|
7
8
|
admin = "admin",
|
|
@@ -12,6 +13,11 @@ export declare enum UserRoleEnum {
|
|
|
12
13
|
secretary = "secretary",
|
|
13
14
|
hr = "hr"
|
|
14
15
|
}
|
|
16
|
+
export declare enum UserGenderEnum {
|
|
17
|
+
male = "male",
|
|
18
|
+
female = "female",
|
|
19
|
+
prefer_not_to_say = "prefer_not_to_say"
|
|
20
|
+
}
|
|
15
21
|
export declare namespace UserRoleEnum {
|
|
16
22
|
function getNames(): string[];
|
|
17
23
|
function parse(value: string): UserRoleEnum;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.UserRoleEnum = exports.UserStatusEnum = void 0;
|
|
3
|
+
exports.UserGenderEnum = exports.UserRoleEnum = exports.UserStatusEnum = void 0;
|
|
4
4
|
var UserStatusEnum;
|
|
5
5
|
(function (UserStatusEnum) {
|
|
6
6
|
UserStatusEnum["active"] = "active";
|
|
7
7
|
UserStatusEnum["deactive"] = "deactive";
|
|
8
8
|
UserStatusEnum["suspended"] = "suspended";
|
|
9
|
+
UserStatusEnum["pending"] = "pending";
|
|
9
10
|
})(UserStatusEnum || (exports.UserStatusEnum = UserStatusEnum = {}));
|
|
10
11
|
var UserRoleEnum;
|
|
11
12
|
(function (UserRoleEnum) {
|
|
@@ -17,6 +18,12 @@ var UserRoleEnum;
|
|
|
17
18
|
UserRoleEnum["secretary"] = "secretary";
|
|
18
19
|
UserRoleEnum["hr"] = "hr";
|
|
19
20
|
})(UserRoleEnum || (exports.UserRoleEnum = UserRoleEnum = {}));
|
|
21
|
+
var UserGenderEnum;
|
|
22
|
+
(function (UserGenderEnum) {
|
|
23
|
+
UserGenderEnum["male"] = "male";
|
|
24
|
+
UserGenderEnum["female"] = "female";
|
|
25
|
+
UserGenderEnum["prefer_not_to_say"] = "prefer_not_to_say";
|
|
26
|
+
})(UserGenderEnum || (exports.UserGenderEnum = UserGenderEnum = {}));
|
|
20
27
|
(function (UserRoleEnum) {
|
|
21
28
|
function getNames() {
|
|
22
29
|
return Object.values(UserRoleEnum).filter((value) => typeof value === "string");
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constraint_type.enum";
|
|
2
1
|
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
3
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
4
3
|
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
@@ -13,25 +12,3 @@ export interface IBankHistoryCreateDto extends IEntityCreateDto<IBankHistoryEnti
|
|
|
13
12
|
export interface IBankHistorySearchDto extends IEntityFilterData<IBankHistoryEntity> {
|
|
14
13
|
}
|
|
15
14
|
export declare const bankHistoryExcludeKeys: string[];
|
|
16
|
-
export type IBankEntitySearchConstraint = {
|
|
17
|
-
entityId: number[];
|
|
18
|
-
constraint: {
|
|
19
|
-
since: IBankEntitySearchSinceConstraint;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export type IBankEntitySearchSinceConstraint = {
|
|
23
|
-
type: EntitySearchConstraintTypeEnum;
|
|
24
|
-
columnKey: string;
|
|
25
|
-
value: number;
|
|
26
|
-
};
|
|
27
|
-
export type IBankHistoryParsed = {
|
|
28
|
-
parsedData: any;
|
|
29
|
-
id: number;
|
|
30
|
-
entityId: number;
|
|
31
|
-
operation: HistoryOperationEnum;
|
|
32
|
-
data: string;
|
|
33
|
-
createdOn: Date;
|
|
34
|
-
updatedOn: Date;
|
|
35
|
-
createdBy: number;
|
|
36
|
-
updatedBy: number;
|
|
37
|
-
};
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { ConvertToArray } from "../../misc";
|
|
2
2
|
import { Modify } from "../../misc/interface/modify.interface";
|
|
3
|
+
import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constraint_type.enum";
|
|
4
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
3
5
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
4
6
|
export type IApiEntity<T extends {
|
|
5
7
|
createdOn: Date;
|
|
@@ -8,8 +10,8 @@ export type IApiEntity<T extends {
|
|
|
8
10
|
createdOn: string;
|
|
9
11
|
updatedOn: string;
|
|
10
12
|
}>;
|
|
11
|
-
export type IEntityCreateDto<T> = Omit<T,
|
|
12
|
-
export type IEntityUpdateDto<T> = Omit<Partial<T>,
|
|
13
|
+
export type IEntityCreateDto<T> = Omit<T, "id" | keyof IAuditColumnEntity>;
|
|
14
|
+
export type IEntityUpdateDto<T> = Omit<Partial<T>, "id" | keyof IAuditColumnEntity>;
|
|
13
15
|
export type IEntityApiResponse<T extends {
|
|
14
16
|
createdOn: Date;
|
|
15
17
|
updatedOn: Date;
|
|
@@ -29,3 +31,37 @@ export type IEntityFilterData<T> = ConvertToArray<IEntityUpdateDto<T>> & {
|
|
|
29
31
|
[key in keyof T]?: T[key];
|
|
30
32
|
};
|
|
31
33
|
};
|
|
34
|
+
export type IEntitySearchConstraint = {
|
|
35
|
+
entityId: number[];
|
|
36
|
+
constraint: {
|
|
37
|
+
since: IEntitySearchSinceConstraint;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
export type IEntitySearchSinceConstraint = {
|
|
41
|
+
type: EntitySearchConstraintTypeEnum;
|
|
42
|
+
columnKey: string;
|
|
43
|
+
value: number;
|
|
44
|
+
};
|
|
45
|
+
export type IEntityHistoryParsed = {
|
|
46
|
+
parsedData: any;
|
|
47
|
+
id: number;
|
|
48
|
+
entityId: number;
|
|
49
|
+
operation: HistoryOperationEnum;
|
|
50
|
+
data: string;
|
|
51
|
+
createdOn: Date;
|
|
52
|
+
updatedOn: Date;
|
|
53
|
+
createdBy: number;
|
|
54
|
+
updatedBy: number;
|
|
55
|
+
};
|
|
56
|
+
export type IHistoryEntitySearchByConstraintResponse = {
|
|
57
|
+
id: number;
|
|
58
|
+
createdBy: number;
|
|
59
|
+
changedLogs: IHistoryEntityChangedLogs[];
|
|
60
|
+
};
|
|
61
|
+
export type IHistoryEntityChangedLogs = {
|
|
62
|
+
key: string;
|
|
63
|
+
label: string;
|
|
64
|
+
newValue: string | number;
|
|
65
|
+
oldValue: string | number;
|
|
66
|
+
timeStamp: string;
|
|
67
|
+
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { EntitySearchConstraintTypeEnum } from "../enums/entity_search_constraint_type.enum";
|
|
2
1
|
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
3
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
4
3
|
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
@@ -15,25 +14,3 @@ export interface ITimesheetHistoryUpdateDto extends IEntityCreateDto<ITimesheetH
|
|
|
15
14
|
export interface ITimesheetHistorySearchDto extends IEntityFilterData<ITimesheetHistoryEntity> {
|
|
16
15
|
}
|
|
17
16
|
export declare const timesheetHistoryExcludeKeys: string[];
|
|
18
|
-
export type IEntitySearchConstraint = {
|
|
19
|
-
entityId: number[];
|
|
20
|
-
constraint: {
|
|
21
|
-
since: IEntitySearchSinceConstraint;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
export type IEntitySearchSinceConstraint = {
|
|
25
|
-
type: EntitySearchConstraintTypeEnum;
|
|
26
|
-
columnKey: string;
|
|
27
|
-
value: number;
|
|
28
|
-
};
|
|
29
|
-
export type ITimesheetHistoryParsed = {
|
|
30
|
-
parsedData: any;
|
|
31
|
-
id: number;
|
|
32
|
-
entityId: number;
|
|
33
|
-
operation: HistoryOperationEnum;
|
|
34
|
-
data: string;
|
|
35
|
-
createdOn: Date;
|
|
36
|
-
updatedOn: Date;
|
|
37
|
-
createdBy: number;
|
|
38
|
-
updatedBy: number;
|
|
39
|
-
};
|
package/package.json
CHANGED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type IBankHistoryEntitySearchByConstraintResponse = {
|
|
2
|
-
id: number;
|
|
3
|
-
createdBy: number;
|
|
4
|
-
changedLogs: IBankHistoryEntityChangedLogs[];
|
|
5
|
-
};
|
|
6
|
-
export type IBankHistoryEntityChangedLogs = {
|
|
7
|
-
key: string;
|
|
8
|
-
label: string;
|
|
9
|
-
newValue: string | number;
|
|
10
|
-
oldValue: string | number;
|
|
11
|
-
timeStamp: string;
|
|
12
|
-
};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export type ITimesheetHistoryEntitySearchByConstraintResponse = {
|
|
2
|
-
id: number;
|
|
3
|
-
createdBy: number;
|
|
4
|
-
changedLogs: ITimesheetHistoryEntityChangedLogs[];
|
|
5
|
-
};
|
|
6
|
-
export type ITimesheetHistoryEntityChangedLogs = {
|
|
7
|
-
key: string;
|
|
8
|
-
label: string;
|
|
9
|
-
newValue: string | number;
|
|
10
|
-
oldValue: string | number;
|
|
11
|
-
timeStamp: string;
|
|
12
|
-
};
|