law-common 10.18.1-beta.5 → 10.18.1-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.
@@ -1,22 +1,19 @@
1
- import { ConfigurationKeyEnum, ConfigurationTypeEnum, IConfigurationEntity } from "..";
1
+ import { ConfigurationKeyEnum, ConfigurationTypeEnum } from "..";
2
2
  import { IConfigurationApiEntity } from "../../api";
3
- export interface IConfigurationsModel extends IConfigurationEntity {
4
- isCronJobKey(): boolean;
5
- }
6
- export declare class ConfigurationsModel implements IConfigurationsModel {
3
+ export declare class ConfigurationEntityModel implements IConfigurationApiEntity {
7
4
  id: number;
8
5
  key: ConfigurationKeyEnum;
9
6
  value: string;
10
7
  description: string;
11
8
  label: string;
12
9
  type: ConfigurationTypeEnum;
13
- createdOn: Date;
14
- updatedOn: Date;
10
+ createdOn: string;
11
+ updatedOn: string;
15
12
  createdBy: number;
16
13
  updatedBy: number;
17
14
  organizationId: number;
18
- constructor(data: IConfigurationEntity);
15
+ constructor(data: IConfigurationApiEntity);
19
16
  isCronJobKey(): boolean;
20
- static findByKey(configurationEntities: IConfigurationEntity[], key: ConfigurationKeyEnum): IConfigurationEntity | undefined;
21
- static fromApiEntity(apiEntity: IConfigurationApiEntity): ConfigurationsModel;
17
+ static findByKey(configurationEntities: IConfigurationApiEntity[], key: ConfigurationKeyEnum): IConfigurationApiEntity | undefined;
18
+ static fromApiEntity(apiEntity: IConfigurationApiEntity): ConfigurationEntityModel;
22
19
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ConfigurationsModel = void 0;
3
+ exports.ConfigurationEntityModel = void 0;
4
4
  const __1 = require("..");
5
- class ConfigurationsModel {
5
+ class ConfigurationEntityModel {
6
6
  constructor(data) {
7
7
  this.id = 0;
8
8
  this.key = __1.ConfigurationKeyEnum.PENDING_APPROVAL_TIMESHEET_REMINDER;
@@ -10,8 +10,8 @@ class ConfigurationsModel {
10
10
  this.description = "";
11
11
  this.label = "";
12
12
  this.type = __1.ConfigurationTypeEnum.CRONJOB_EXPRESSION;
13
- this.createdOn = new Date();
14
- this.updatedOn = new Date();
13
+ this.createdOn = "";
14
+ this.updatedOn = "";
15
15
  this.createdBy = 0;
16
16
  this.updatedBy = 0;
17
17
  this.organizationId = 0;
@@ -24,9 +24,9 @@ class ConfigurationsModel {
24
24
  return configurationEntities.find((configurationEntity) => configurationEntity.key === key);
25
25
  }
26
26
  static fromApiEntity(apiEntity) {
27
- const entity = new ConfigurationsModel((0, __1.ConvertApiToEntity)(apiEntity));
27
+ const entity = new ConfigurationEntityModel(apiEntity);
28
28
  Object.assign(entity, apiEntity);
29
29
  return entity;
30
30
  }
31
31
  }
32
- exports.ConfigurationsModel = ConfigurationsModel;
32
+ exports.ConfigurationEntityModel = ConfigurationEntityModel;
@@ -1,6 +1,6 @@
1
1
  import { ITaskApiEntity } from "../../api";
2
2
  import { TaskStatusEnum, TaskTypeEnum } from "../enums/task.entity.enum";
3
- export declare class TaskEntity implements ITaskApiEntity {
3
+ export declare class TaskEntityModel implements ITaskApiEntity {
4
4
  id: number;
5
5
  name: string;
6
6
  description: string;
@@ -10,5 +10,5 @@ export declare class TaskEntity implements ITaskApiEntity {
10
10
  updatedBy: number;
11
11
  createdOn: string;
12
12
  updatedOn: string;
13
- static fromApiEntity(apiEntity: ITaskApiEntity): TaskEntity;
13
+ static fromApiEntity(apiEntity: ITaskApiEntity): TaskEntityModel;
14
14
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TaskEntity = void 0;
3
+ exports.TaskEntityModel = void 0;
4
4
  const task_entity_enum_1 = require("../enums/task.entity.enum");
5
- class TaskEntity {
5
+ class TaskEntityModel {
6
6
  constructor() {
7
7
  this.id = 0;
8
8
  this.name = "";
@@ -15,9 +15,9 @@ class TaskEntity {
15
15
  this.updatedOn = "";
16
16
  }
17
17
  static fromApiEntity(apiEntity) {
18
- const entity = new TaskEntity();
18
+ const entity = new TaskEntityModel();
19
19
  Object.assign(entity, apiEntity);
20
20
  return entity;
21
21
  }
22
22
  }
23
- exports.TaskEntity = TaskEntity;
23
+ exports.TaskEntityModel = TaskEntityModel;
@@ -1,6 +1,6 @@
1
1
  import { ITimesheetApiEntity } from "../../api";
2
2
  import { TimesheetStatusEnum } from "../enums/timesheet.status.enum";
3
- export declare class TimesheetEntity implements ITimesheetApiEntity {
3
+ export declare class TimesheetEntityModel implements ITimesheetApiEntity {
4
4
  id: number;
5
5
  userId: number;
6
6
  projectId: number;
@@ -14,5 +14,5 @@ export declare class TimesheetEntity implements ITimesheetApiEntity {
14
14
  updatedBy: number;
15
15
  createdOn: string;
16
16
  updatedOn: string;
17
- static fromApiEntity(apiEntity: ITimesheetApiEntity): TimesheetEntity;
17
+ static fromApiEntity(apiEntity: ITimesheetApiEntity): TimesheetEntityModel;
18
18
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.TimesheetEntity = void 0;
3
+ exports.TimesheetEntityModel = void 0;
4
4
  const timesheet_status_enum_1 = require("../enums/timesheet.status.enum");
5
- class TimesheetEntity {
5
+ class TimesheetEntityModel {
6
6
  constructor() {
7
7
  this.id = 0;
8
8
  this.userId = 0;
@@ -17,9 +17,9 @@ class TimesheetEntity {
17
17
  this.updatedOn = "";
18
18
  }
19
19
  static fromApiEntity(apiEntity) {
20
- const entity = new TimesheetEntity();
20
+ const entity = new TimesheetEntityModel();
21
21
  Object.assign(entity, apiEntity);
22
22
  return entity;
23
23
  }
24
24
  }
25
- exports.TimesheetEntity = TimesheetEntity;
25
+ exports.TimesheetEntityModel = TimesheetEntityModel;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.18.1-beta.5",
3
+ "version": "10.18.1-beta.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [