law-common 2.2.0 → 2.4.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 +2 -0
- package/dist/src/api/index.js +2 -0
- package/dist/src/api/interface/billing.history.api.d.ts +3 -0
- package/dist/src/api/interface/billing.history.api.js +2 -0
- package/dist/src/api/interface/billing_timesheet_history.api.d.ts +3 -0
- package/dist/src/api/interface/billing_timesheet_history.api.js +2 -0
- package/dist/src/entities/enums/history_operation.enum.d.ts +9 -0
- package/dist/src/entities/enums/history_operation.enum.js +22 -0
- package/dist/src/entities/index.d.ts +4 -1
- package/dist/src/entities/index.js +4 -1
- package/dist/src/entities/interface/billing_history.entity.interface.d.ts +14 -0
- package/dist/src/entities/interface/billing_history.entity.interface.js +5 -0
- package/dist/src/entities/interface/billing_timesheet_history.entity.interface.d.ts +14 -0
- package/dist/src/entities/interface/billing_timesheet_history.entity.interface.js +5 -0
- package/dist/src/entities/interface/timesheet_history.entity.interface.d.ts +3 -3
- package/package.json +1 -1
- package/dist/src/entities/enums/timesheet.operation.enum.d.ts +0 -9
- package/dist/src/entities/enums/timesheet.operation.enum.js +0 -22
package/dist/src/api/index.d.ts
CHANGED
|
@@ -59,3 +59,5 @@ export * from "./interface/billing.transaction.update.dto.interface";
|
|
|
59
59
|
export * from "./interface/billing.transaction.entity.response";
|
|
60
60
|
export * from "./interface/billing.flow.update.dto";
|
|
61
61
|
export * from "./interface/timesheet.history.api";
|
|
62
|
+
export * from "./interface/billing.history.api";
|
|
63
|
+
export * from "./interface/billing_timesheet_history.api";
|
package/dist/src/api/index.js
CHANGED
|
@@ -75,3 +75,5 @@ __exportStar(require("./interface/billing.transaction.update.dto.interface"), ex
|
|
|
75
75
|
__exportStar(require("./interface/billing.transaction.entity.response"), exports);
|
|
76
76
|
__exportStar(require("./interface/billing.flow.update.dto"), exports);
|
|
77
77
|
__exportStar(require("./interface/timesheet.history.api"), exports);
|
|
78
|
+
__exportStar(require("./interface/billing.history.api"), exports);
|
|
79
|
+
__exportStar(require("./interface/billing_timesheet_history.api"), exports);
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HistoryOperationEnum = void 0;
|
|
4
|
+
var HistoryOperationEnum;
|
|
5
|
+
(function (HistoryOperationEnum) {
|
|
6
|
+
HistoryOperationEnum["CREATE"] = "create";
|
|
7
|
+
HistoryOperationEnum["UPDATE"] = "update";
|
|
8
|
+
HistoryOperationEnum["DELETE"] = "delete";
|
|
9
|
+
})(HistoryOperationEnum || (exports.HistoryOperationEnum = HistoryOperationEnum = {}));
|
|
10
|
+
(function (HistoryOperationEnum) {
|
|
11
|
+
function getNames() {
|
|
12
|
+
return Object.values(HistoryOperationEnum).filter((value) => typeof value === "string");
|
|
13
|
+
}
|
|
14
|
+
HistoryOperationEnum.getNames = getNames;
|
|
15
|
+
function parse(value) {
|
|
16
|
+
if (Object.values(HistoryOperationEnum).includes(value)) {
|
|
17
|
+
return value;
|
|
18
|
+
}
|
|
19
|
+
throw new Error("Invalid History operation");
|
|
20
|
+
}
|
|
21
|
+
HistoryOperationEnum.parse = parse;
|
|
22
|
+
})(HistoryOperationEnum || (exports.HistoryOperationEnum = HistoryOperationEnum = {}));
|
|
@@ -35,4 +35,7 @@ export * from "./interface/role.permission.mapping.entity.interface";
|
|
|
35
35
|
export * from "./interface/billing_transaction.entity.interface";
|
|
36
36
|
export * from "./enums/billing.transaction.enum";
|
|
37
37
|
export * from "./interface/timesheet_history.entity.interface";
|
|
38
|
-
export * from "./enums/
|
|
38
|
+
export * from "./enums/history_operation.enum";
|
|
39
|
+
export * from "./interface/billing_history.entity.interface";
|
|
40
|
+
export * from "./interface/billing_timesheet_history.entity.interface";
|
|
41
|
+
export * from "./enums/history_operation.enum";
|
|
@@ -51,4 +51,7 @@ __exportStar(require("./interface/role.permission.mapping.entity.interface"), ex
|
|
|
51
51
|
__exportStar(require("./interface/billing_transaction.entity.interface"), exports);
|
|
52
52
|
__exportStar(require("./enums/billing.transaction.enum"), exports);
|
|
53
53
|
__exportStar(require("./interface/timesheet_history.entity.interface"), exports);
|
|
54
|
-
__exportStar(require("./enums/
|
|
54
|
+
__exportStar(require("./enums/history_operation.enum"), exports);
|
|
55
|
+
__exportStar(require("./interface/billing_history.entity.interface"), exports);
|
|
56
|
+
__exportStar(require("./interface/billing_timesheet_history.entity.interface"), exports);
|
|
57
|
+
__exportStar(require("./enums/history_operation.enum"), exports);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
|
+
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
+
export interface IBillingHistoryEntity extends IAuditColumnEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
entityId: number;
|
|
7
|
+
operation: HistoryOperationEnum;
|
|
8
|
+
data: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IBillingHistoryCreateDto extends IEntityCreateDto<IBillingHistoryEntity> {
|
|
11
|
+
}
|
|
12
|
+
export interface IBillingHistorySearchDto extends IEntityFilterData<IBillingHistoryEntity> {
|
|
13
|
+
}
|
|
14
|
+
export declare const billingHistoryExcludeKeys: string[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
|
+
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
|
+
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
4
|
+
export interface IBillingTimesheetHistoryEntity extends IAuditColumnEntity {
|
|
5
|
+
id: number;
|
|
6
|
+
entityId: number;
|
|
7
|
+
operation: HistoryOperationEnum;
|
|
8
|
+
data: string;
|
|
9
|
+
}
|
|
10
|
+
export interface IBillingTimesheetHistoryCreateDto extends IEntityCreateDto<IBillingTimesheetHistoryEntity> {
|
|
11
|
+
}
|
|
12
|
+
export interface IBillingTimesheetHistorySearchDto extends IEntityFilterData<IBillingTimesheetHistoryEntity> {
|
|
13
|
+
}
|
|
14
|
+
export declare const billingTimesheetHistoryExcludeKeys: string[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { HistoryOperationEnum } from "../enums/history_operation.enum";
|
|
2
2
|
import { IAuditColumnEntity } from "./audit-column.entity.interface";
|
|
3
3
|
import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
|
|
4
4
|
export interface ITimesheetHistoryEntity extends IAuditColumnEntity {
|
|
5
5
|
id: number;
|
|
6
|
-
|
|
7
|
-
operation:
|
|
6
|
+
entityId: number;
|
|
7
|
+
operation: HistoryOperationEnum;
|
|
8
8
|
data: string;
|
|
9
9
|
}
|
|
10
10
|
export interface ITimesheetHistoryCreateDto extends IEntityCreateDto<ITimesheetHistoryEntity> {
|
package/package.json
CHANGED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.TimesheetOperationEnum = void 0;
|
|
4
|
-
var TimesheetOperationEnum;
|
|
5
|
-
(function (TimesheetOperationEnum) {
|
|
6
|
-
TimesheetOperationEnum["CREATE"] = "create";
|
|
7
|
-
TimesheetOperationEnum["UPDATE"] = "update";
|
|
8
|
-
TimesheetOperationEnum["DELETE"] = "delete";
|
|
9
|
-
})(TimesheetOperationEnum || (exports.TimesheetOperationEnum = TimesheetOperationEnum = {}));
|
|
10
|
-
(function (TimesheetOperationEnum) {
|
|
11
|
-
function getNames() {
|
|
12
|
-
return Object.values(TimesheetOperationEnum).filter((value) => typeof value === "string");
|
|
13
|
-
}
|
|
14
|
-
TimesheetOperationEnum.getNames = getNames;
|
|
15
|
-
function parse(value) {
|
|
16
|
-
if (Object.values(TimesheetOperationEnum).includes(value)) {
|
|
17
|
-
return value;
|
|
18
|
-
}
|
|
19
|
-
throw new Error("Invalid timesheet history operation");
|
|
20
|
-
}
|
|
21
|
-
TimesheetOperationEnum.parse = parse;
|
|
22
|
-
})(TimesheetOperationEnum || (exports.TimesheetOperationEnum = TimesheetOperationEnum = {}));
|