law-common 10.9.0 → 10.10.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.
@@ -1,6 +1,4 @@
1
- import { TaskTypeEnum } from "../../entities";
2
- export interface ITaskCreateDto {
3
- name: string;
4
- description?: string;
5
- type: TaskTypeEnum;
1
+ import { IEntityCreateDto, ITaskEntity } from "../../entities";
2
+ export type ITaskCreateDtoExculde = "status";
3
+ export interface ITaskCreateDto extends Omit<IEntityCreateDto<ITaskEntity>, ITaskCreateDtoExculde> {
6
4
  }
@@ -1,6 +1,3 @@
1
- import { TaskStatusEnum } from "../../entities/enums/task.entity.enum";
2
- export interface ITaskUpdateDto {
3
- name?: string;
4
- description?: string;
5
- status?: TaskStatusEnum;
1
+ import { IEntityUpdateDto, ITaskEntity } from "../../entities";
2
+ export interface ITaskUpdateDto extends IEntityUpdateDto<ITaskEntity> {
6
3
  }
@@ -1,3 +1,4 @@
1
+ import { BillingStatusEnum } from "../entities";
1
2
  export declare const timesheetViewThreshold = "timesheetViewThreshold";
2
3
  export declare const timesheetThreshold = "timesheetThreshold";
3
4
  export declare const timesheetEnterThreshold = "timesheetEnterThreshold";
@@ -5,4 +6,6 @@ export declare const timesheetMinimumTotalDuration = 15;
5
6
  export declare const toDoListMinimumEstimatedDuration = 15;
6
7
  export declare const reimbursementPaymentProcessorPermissionName = "REIMBURSEMENT_PAYMENT_PROCESSOR";
7
8
  export declare const leaveImplicitDays: string[];
9
+ export declare const freezeTimesheetAfterBillingStatus: BillingStatusEnum;
8
10
  export declare const usersToExcludeFromSearchResponse: string[];
11
+ export declare const systemUsers: string[];
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.usersToExcludeFromSearchResponse = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.toDoListMinimumEstimatedDuration = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
3
+ exports.systemUsers = exports.usersToExcludeFromSearchResponse = exports.freezeTimesheetAfterBillingStatus = exports.leaveImplicitDays = exports.reimbursementPaymentProcessorPermissionName = exports.toDoListMinimumEstimatedDuration = exports.timesheetMinimumTotalDuration = exports.timesheetEnterThreshold = exports.timesheetThreshold = exports.timesheetViewThreshold = void 0;
4
+ const entities_1 = require("../entities");
4
5
  exports.timesheetViewThreshold = "timesheetViewThreshold";
5
6
  exports.timesheetThreshold = "timesheetThreshold";
6
7
  exports.timesheetEnterThreshold = "timesheetEnterThreshold";
@@ -8,4 +9,6 @@ exports.timesheetMinimumTotalDuration = 15;
8
9
  exports.toDoListMinimumEstimatedDuration = 15;
9
10
  exports.reimbursementPaymentProcessorPermissionName = "REIMBURSEMENT_PAYMENT_PROCESSOR";
10
11
  exports.leaveImplicitDays = ["Saturday", "Sunday"];
12
+ exports.freezeTimesheetAfterBillingStatus = entities_1.BillingStatusEnum.PENDING_CLIENT_REVIEW;
11
13
  exports.usersToExcludeFromSearchResponse = ["DB migration"];
14
+ exports.systemUsers = ["DB migration"];
@@ -5,7 +5,8 @@ export declare enum TimesheetActionEnum {
5
5
  CREATE = "create",
6
6
  APPROVE = "approve",
7
7
  REJECT = "reject",
8
- RECALL = "recall"
8
+ RECALL = "recall",
9
+ BILLING_UPDATE = "billing_update"
9
10
  }
10
11
  export declare namespace TimesheetActionEnum {
11
12
  function getLabel(action: TimesheetActionEnum): string;
@@ -12,6 +12,7 @@ var TimesheetActionEnum;
12
12
  TimesheetActionEnum["APPROVE"] = "approve";
13
13
  TimesheetActionEnum["REJECT"] = "reject";
14
14
  TimesheetActionEnum["RECALL"] = "recall";
15
+ TimesheetActionEnum["BILLING_UPDATE"] = "billing_update";
15
16
  })(TimesheetActionEnum || (exports.TimesheetActionEnum = TimesheetActionEnum = {}));
16
17
  (function (TimesheetActionEnum) {
17
18
  const actionLabelMap = {
@@ -22,6 +23,7 @@ var TimesheetActionEnum;
22
23
  [TimesheetActionEnum.CREATE]: "Create",
23
24
  [TimesheetActionEnum.REJECT]: "Reject",
24
25
  [TimesheetActionEnum.RECALL]: "Recall",
26
+ [TimesheetActionEnum.BILLING_UPDATE]: "Billing Update",
25
27
  };
26
28
  function getLabel(action) {
27
29
  if (!Object.values(TimesheetActionEnum).includes(action)) {
@@ -14,6 +14,7 @@ export interface ITimesheetEntity extends IAuditColumnEntity {
14
14
  totalDuration: number;
15
15
  status: TimesheetStatusEnum;
16
16
  remark?: string;
17
+ billingId?: number;
17
18
  }
18
19
  export type ITimesheetEntityExclude = "status";
19
20
  export interface ITimesheetEntityCreateDto extends Omit<IEntityCreateDto<ITimesheetEntity>, ITimesheetEntityExclude> {
@@ -13,6 +13,7 @@ export declare class TimesheetEntityModel implements ITimesheetEntityModel {
13
13
  updatedBy: number;
14
14
  updatedOn: Date;
15
15
  status: TimesheetStatusEnum;
16
+ billingId?: number;
16
17
  /**
17
18
  * @param timesheets - Array of TimesheetModel instances
18
19
  * @return - Array of Timesheet Model
@@ -16,6 +16,7 @@ class TimesheetEntityModel {
16
16
  this.updatedBy = 1;
17
17
  this.updatedOn = new Date();
18
18
  this.status = entities_1.TimesheetStatusEnum.CREATE_APPROVAL;
19
+ this.billingId = 0;
19
20
  }
20
21
  /**
21
22
  * @param timesheets - Array of TimesheetModel instances
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.9.0",
3
+ "version": "10.10.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [