law-common 1.2.57 → 1.2.58-beta.1

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.
Files changed (30) hide show
  1. package/dist/src/api/index.d.ts +6 -0
  2. package/dist/src/api/index.js +6 -0
  3. package/dist/src/api/interface/billing.create.dto.interface.d.ts +30 -0
  4. package/dist/src/api/interface/billing.create.dto.interface.js +2 -0
  5. package/dist/src/api/interface/billing.entity.api.d.ts +3 -0
  6. package/dist/src/api/interface/billing.entity.api.js +2 -0
  7. package/dist/src/api/interface/billing.entity.response.d.ts +4 -0
  8. package/dist/src/api/interface/billing.entity.response.js +2 -0
  9. package/dist/src/api/interface/office.Location.update.dto.interface.d.ts +3 -0
  10. package/dist/src/api/interface/office.Location.update.dto.interface.js +2 -0
  11. package/dist/src/api/interface/office.location.create.dto.interface.d.ts +3 -0
  12. package/dist/src/api/interface/office.location.create.dto.interface.js +2 -0
  13. package/dist/src/api/interface/office.location.entity.api.d.ts +3 -0
  14. package/dist/src/api/interface/office.location.entity.api.js +2 -0
  15. package/dist/src/api/interface/office.location.entity.response.d.ts +4 -0
  16. package/dist/src/api/interface/office.location.entity.response.js +2 -0
  17. package/dist/src/entities/enums/billing.impact.enum.d.ts +5 -0
  18. package/dist/src/entities/enums/billing.impact.enum.js +9 -0
  19. package/dist/src/entities/enums/billing.timesheet.change.status.enum.d.ts +5 -0
  20. package/dist/src/entities/enums/billing.timesheet.change.status.enum.js +9 -0
  21. package/dist/src/entities/enums/payment_status.enum.d.ts +4 -0
  22. package/dist/src/entities/enums/payment_status.enum.js +8 -0
  23. package/dist/src/entities/index.d.ts +5 -0
  24. package/dist/src/entities/index.js +5 -0
  25. package/dist/src/entities/interface/billing.entity.interface.d.ts +48 -0
  26. package/dist/src/entities/interface/billing.entity.interface.js +2 -0
  27. package/dist/src/entities/interface/expense_type.entity.interface.d.ts +3 -0
  28. package/dist/src/entities/interface/office.location.entity.d.ts +11 -0
  29. package/dist/src/entities/interface/office.location.entity.js +2 -0
  30. package/package.json +1 -1
@@ -24,3 +24,9 @@ export * from "./interface/task.create.dto.interface";
24
24
  export * from "./interface/expense_type.entity.api";
25
25
  export * from "./interface/expense_type.update.dto";
26
26
  export * from "./interface/expense_type.entity.response";
27
+ export * from "./interface/billing.create.dto.interface";
28
+ export * from "./interface/billing.entity.response";
29
+ export * from "./interface/office.location.create.dto.interface";
30
+ export * from "./interface/office.location.entity.api";
31
+ export * from "./interface/office.Location.update.dto.interface";
32
+ export * from "./interface/office.location.entity.response";
@@ -40,3 +40,9 @@ __exportStar(require("./interface/task.create.dto.interface"), exports);
40
40
  __exportStar(require("./interface/expense_type.entity.api"), exports);
41
41
  __exportStar(require("./interface/expense_type.update.dto"), exports);
42
42
  __exportStar(require("./interface/expense_type.entity.response"), exports);
43
+ __exportStar(require("./interface/billing.create.dto.interface"), exports);
44
+ __exportStar(require("./interface/billing.entity.response"), exports);
45
+ __exportStar(require("./interface/office.location.create.dto.interface"), exports);
46
+ __exportStar(require("./interface/office.location.entity.api"), exports);
47
+ __exportStar(require("./interface/office.Location.update.dto.interface"), exports);
48
+ __exportStar(require("./interface/office.location.entity.response"), exports);
@@ -0,0 +1,30 @@
1
+ import { BillingImpactEnum } from "../../entities";
2
+ export interface IBillingCreateDto {
3
+ startDate: string;
4
+ endDate: string;
5
+ projectId: number;
6
+ totalAmount: number;
7
+ totalMinutes: number;
8
+ invoiceNumber?: number;
9
+ timesheets: IBillingTimesheetsDto;
10
+ }
11
+ export interface IBillingTimesheetUnchagedDto {
12
+ id: number;
13
+ amount: number;
14
+ }
15
+ export interface IBillingTimesheetUpdateDeleteDetailDto {
16
+ id: number;
17
+ task: string;
18
+ description: string;
19
+ date: string;
20
+ duration: number;
21
+ amount: number;
22
+ impact: BillingImpactEnum;
23
+ amendmentPurpose: string;
24
+ }
25
+ export interface IBillingTimesheetsDto {
26
+ all: number[];
27
+ unchanged: IBillingTimesheetUnchagedDto[];
28
+ updateDetails: IBillingTimesheetUpdateDeleteDetailDto[];
29
+ deleteDetails: IBillingTimesheetUpdateDeleteDetailDto[];
30
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IApiEntity, IBillingEntity } from "../../entities";
2
+ export type IBillingApiEntity = IApiEntity<IBillingEntity>;
3
+ export type IBillingApiEntityArray = IBillingApiEntity[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { IBaseResponse } from "./base.response.interface";
2
+ import { IBillingApiEntity } from "./billing.entity.api";
3
+ export type IBillingApiEntityResponse = IBaseResponse<IBillingApiEntity>;
4
+ export type IBillingApiEntityResponseArray = IBaseResponse<IBillingApiEntity[]>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IEntityUpdateDto, IOfficeLocationEntity } from "../../entities";
2
+ export interface IOfficeLocationUpdateDto extends IEntityUpdateDto<IOfficeLocationEntity> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IEntityCreateDto, IOfficeLocationEntity } from "../../entities";
2
+ export interface IOfficeLocationCreateDto extends IEntityCreateDto<IOfficeLocationEntity> {
3
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,3 @@
1
+ import { IApiEntity, IOfficeLocationEntity } from "../../entities";
2
+ export type IOfficeLocationApiEntity = IApiEntity<IOfficeLocationEntity>;
3
+ export type IOfficeLocationApiEntityArray = IOfficeLocationApiEntity[];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,4 @@
1
+ import { IBaseResponse } from "./base.response.interface";
2
+ import { IOfficeLocationApiEntity } from "./office.location.entity.api";
3
+ export type IOfficeLocationApiEntityResponse = IBaseResponse<IOfficeLocationApiEntity>;
4
+ export type IOfficeLocationApiEntityResponseArray = IBaseResponse<IOfficeLocationApiEntity[]>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,5 @@
1
+ export declare enum BillingImpactEnum {
2
+ POSITIVE = "positive",
3
+ NEUTRAL = "neutral",
4
+ NEGATIVE = "negative"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingImpactEnum = void 0;
4
+ var BillingImpactEnum;
5
+ (function (BillingImpactEnum) {
6
+ BillingImpactEnum["POSITIVE"] = "positive";
7
+ BillingImpactEnum["NEUTRAL"] = "neutral";
8
+ BillingImpactEnum["NEGATIVE"] = "negative";
9
+ })(BillingImpactEnum || (exports.BillingImpactEnum = BillingImpactEnum = {}));
@@ -0,0 +1,5 @@
1
+ export declare enum BillingTimesheetStatusEnum {
2
+ UNCHANGED = "unchanged",
3
+ UPDATED = "updated",
4
+ DELETED = "deleted"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.BillingTimesheetStatusEnum = void 0;
4
+ var BillingTimesheetStatusEnum;
5
+ (function (BillingTimesheetStatusEnum) {
6
+ BillingTimesheetStatusEnum["UNCHANGED"] = "unchanged";
7
+ BillingTimesheetStatusEnum["UPDATED"] = "updated";
8
+ BillingTimesheetStatusEnum["DELETED"] = "deleted";
9
+ })(BillingTimesheetStatusEnum || (exports.BillingTimesheetStatusEnum = BillingTimesheetStatusEnum = {}));
@@ -0,0 +1,4 @@
1
+ export declare enum PaymentStatusEnum {
2
+ PENDING = "pending",
3
+ COMPLETED = "completed"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PaymentStatusEnum = void 0;
4
+ var PaymentStatusEnum;
5
+ (function (PaymentStatusEnum) {
6
+ PaymentStatusEnum["PENDING"] = "pending";
7
+ PaymentStatusEnum["COMPLETED"] = "completed";
8
+ })(PaymentStatusEnum || (exports.PaymentStatusEnum = PaymentStatusEnum = {}));
@@ -19,3 +19,8 @@ export * from "./interface/reimbursement.entity.interface";
19
19
  export * from "./enums/reimbursement.entity.enum";
20
20
  export * from "./interface/expense_type.entity.interface";
21
21
  export * from "./enums/expense_type.entity.enum";
22
+ export * from "./enums/billing.impact.enum";
23
+ export * from "./interface/billing.entity.interface";
24
+ export * from "./enums/payment_status.enum";
25
+ export * from "./enums/billing.timesheet.change.status.enum";
26
+ export * from "./interface/office.location.entity";
@@ -35,3 +35,8 @@ __exportStar(require("./interface/reimbursement.entity.interface"), exports);
35
35
  __exportStar(require("./enums/reimbursement.entity.enum"), exports);
36
36
  __exportStar(require("./interface/expense_type.entity.interface"), exports);
37
37
  __exportStar(require("./enums/expense_type.entity.enum"), exports);
38
+ __exportStar(require("./enums/billing.impact.enum"), exports);
39
+ __exportStar(require("./interface/billing.entity.interface"), exports);
40
+ __exportStar(require("./enums/payment_status.enum"), exports);
41
+ __exportStar(require("./enums/billing.timesheet.change.status.enum"), exports);
42
+ __exportStar(require("./interface/office.location.entity"), exports);
@@ -0,0 +1,48 @@
1
+ import { BillingImpactEnum } from "../enums/billing.impact.enum";
2
+ import { BillingTimesheetStatusEnum } from "../enums/billing.timesheet.change.status.enum";
3
+ import { PaymentStatusEnum } from "../enums/payment_status.enum";
4
+ import { IAuditColumnEntity } from "./audit-column.entity.interface";
5
+ import { IEntityCreateDto, IEntityFilterData } from "./entity.utils.interface";
6
+ export interface IBillingEntity extends IAuditColumnEntity {
7
+ id: number;
8
+ startDate: string;
9
+ endDate: string;
10
+ projectId: number;
11
+ totalAmount: number;
12
+ totalMinutes: number;
13
+ invoiceNumber?: number;
14
+ paymentStatus: PaymentStatusEnum;
15
+ }
16
+ export interface IBillingTimesheetEntity extends IAuditColumnEntity {
17
+ id: number;
18
+ billingId: number;
19
+ dateCode: string;
20
+ timesheetId: number;
21
+ userId: number;
22
+ projectId: number;
23
+ task: string;
24
+ description?: string;
25
+ totalDuration: number;
26
+ totalAmount: number;
27
+ impact: BillingImpactEnum;
28
+ amendmentPurpose?: string;
29
+ changedStatus: BillingTimesheetStatusEnum;
30
+ }
31
+ export interface IBillingTimesheetEntityCreateDto extends IEntityCreateDto<IBillingTimesheetEntity> {
32
+ }
33
+ export interface IBillingTimesheetDetail {
34
+ timesheetId: number;
35
+ totalAmount: number;
36
+ changedStatus: BillingTimesheetStatusEnum;
37
+ impact: BillingImpactEnum;
38
+ amendmentPurpose?: string;
39
+ userId: number;
40
+ projectId: number;
41
+ task: string;
42
+ description?: string;
43
+ totalDuration: number;
44
+ dateCode: string;
45
+ }
46
+ export interface IBillingTimesheetDetailsArray extends Array<IBillingTimesheetDetail> {
47
+ }
48
+ export type IBillingEntityFilterData = IEntityFilterData<IBillingEntity>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,8 +1,11 @@
1
1
  import { ExpenseTypeEnum } from "../enums/expense_type.entity.enum";
2
2
  import { IAuditColumnEntity } from "./audit-column.entity.interface";
3
+ import { IEntityFilterData } from "./entity.utils.interface";
3
4
  export interface IExpenseTypeEntity extends IAuditColumnEntity {
4
5
  id: number;
5
6
  name: string;
6
7
  description?: string;
7
8
  type: ExpenseTypeEnum;
8
9
  }
10
+ export interface IExpenseTypeEntityFilterDto extends IEntityFilterData<IExpenseTypeEntity> {
11
+ }
@@ -0,0 +1,11 @@
1
+ import { CountryEnum } from "../enums/country.entity.enum";
2
+ import { IAuditColumnEntity } from "../interface/audit-column.entity.interface";
3
+ import { IEntityFilterData } from "./entity.utils.interface";
4
+ export interface IOfficeLocationEntity extends IAuditColumnEntity {
5
+ id: number;
6
+ name: string;
7
+ address: string;
8
+ zipCode: number;
9
+ country: CountryEnum;
10
+ }
11
+ export type IOfficeLocationEntityFilterData = IEntityFilterData<IOfficeLocationEntity>;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "1.2.57",
3
+ "version": "1.2.58-beta.1",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [