law-common 2.2.0 → 2.3.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.
@@ -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";
@@ -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,3 @@
1
+ import { IApiEntity, IBillingHistoryEntity } from "../../entities";
2
+ export type IBillingHistoryApiEntity = IApiEntity<IBillingHistoryEntity>;
3
+ export type IBillingHistoryApiEntityArray = IBillingHistoryApiEntity[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IApiEntity, IBillingTimesheetHistoryEntity } from "../../entities";
2
+ export type IBillingTimesheetHistoryApiEntity = IApiEntity<IBillingTimesheetHistoryEntity>;
3
+ export type IBillingTimesheetHistoryApiEntityArray = IBillingTimesheetHistoryApiEntity[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,9 @@
1
+ export declare enum BillingOperationEnum {
2
+ CREATE = "create",
3
+ UPDATE = "update",
4
+ DELETE = "delete"
5
+ }
6
+ export declare namespace BillingOperationEnum {
7
+ function getNames(): string[];
8
+ function parse(value: string): BillingOperationEnum;
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingOperationEnum = void 0;
4
+ var BillingOperationEnum;
5
+ (function (BillingOperationEnum) {
6
+ BillingOperationEnum["CREATE"] = "create";
7
+ BillingOperationEnum["UPDATE"] = "update";
8
+ BillingOperationEnum["DELETE"] = "delete";
9
+ })(BillingOperationEnum || (exports.BillingOperationEnum = BillingOperationEnum = {}));
10
+ (function (BillingOperationEnum) {
11
+ function getNames() {
12
+ return Object.values(BillingOperationEnum).filter((value) => typeof value === "string");
13
+ }
14
+ BillingOperationEnum.getNames = getNames;
15
+ function parse(value) {
16
+ if (Object.values(BillingOperationEnum).includes(value)) {
17
+ return value;
18
+ }
19
+ throw new Error("Invalid Billing History operation");
20
+ }
21
+ BillingOperationEnum.parse = parse;
22
+ })(BillingOperationEnum || (exports.BillingOperationEnum = BillingOperationEnum = {}));
@@ -0,0 +1,9 @@
1
+ export declare enum BillingTimesheetOperationEnum {
2
+ CREATE = "create",
3
+ UPDATE = "update",
4
+ DELETE = "delete"
5
+ }
6
+ export declare namespace BillingTimesheetOperationEnum {
7
+ function getNames(): string[];
8
+ function parse(value: string): BillingTimesheetOperationEnum;
9
+ }
@@ -0,0 +1,22 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingTimesheetOperationEnum = void 0;
4
+ var BillingTimesheetOperationEnum;
5
+ (function (BillingTimesheetOperationEnum) {
6
+ BillingTimesheetOperationEnum["CREATE"] = "create";
7
+ BillingTimesheetOperationEnum["UPDATE"] = "update";
8
+ BillingTimesheetOperationEnum["DELETE"] = "delete";
9
+ })(BillingTimesheetOperationEnum || (exports.BillingTimesheetOperationEnum = BillingTimesheetOperationEnum = {}));
10
+ (function (BillingTimesheetOperationEnum) {
11
+ function getNames() {
12
+ return Object.values(BillingTimesheetOperationEnum).filter((value) => typeof value === "string");
13
+ }
14
+ BillingTimesheetOperationEnum.getNames = getNames;
15
+ function parse(value) {
16
+ if (Object.values(BillingTimesheetOperationEnum).includes(value)) {
17
+ return value;
18
+ }
19
+ throw new Error("Invalid Billing Timesheet History operation");
20
+ }
21
+ BillingTimesheetOperationEnum.parse = parse;
22
+ })(BillingTimesheetOperationEnum || (exports.BillingTimesheetOperationEnum = BillingTimesheetOperationEnum = {}));
@@ -36,3 +36,7 @@ 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
38
  export * from "./enums/timesheet.operation.enum";
39
+ export * from "./enums/billing_history_operation.enum";
40
+ export * from "./enums/billing_timesheet_history_operation.enum";
41
+ export * from "./interface/billing_history.entity.interface";
42
+ export * from "./interface/billing_timesheet_history.entity.interface";
@@ -52,3 +52,7 @@ __exportStar(require("./interface/billing_transaction.entity.interface"), export
52
52
  __exportStar(require("./enums/billing.transaction.enum"), exports);
53
53
  __exportStar(require("./interface/timesheet_history.entity.interface"), exports);
54
54
  __exportStar(require("./enums/timesheet.operation.enum"), exports);
55
+ __exportStar(require("./enums/billing_history_operation.enum"), exports);
56
+ __exportStar(require("./enums/billing_timesheet_history_operation.enum"), exports);
57
+ __exportStar(require("./interface/billing_history.entity.interface"), exports);
58
+ __exportStar(require("./interface/billing_timesheet_history.entity.interface"), exports);
@@ -0,0 +1,14 @@
1
+ import { BillingOperationEnum } from "../enums/billing_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
+ billingId: number;
7
+ operation: BillingOperationEnum;
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,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.billingHistoryExcludeKeys = void 0;
4
+ const constants_1 = require("../../constants");
5
+ exports.billingHistoryExcludeKeys = [...constants_1.historyKeysToExclude];
@@ -0,0 +1,14 @@
1
+ import { BillingTimesheetOperationEnum } from "../enums/billing_timesheet_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
+ timesheetId: number;
7
+ operation: BillingTimesheetOperationEnum;
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[];
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.billingTimesheetHistoryExcludeKeys = void 0;
4
+ const constants_1 = require("../../constants");
5
+ exports.billingTimesheetHistoryExcludeKeys = [...constants_1.historyKeysToExclude];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "2.2.0",
3
+ "version": "2.3.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [