law-common 10.18.1-beta.6 → 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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "law-common",
3
- "version": "10.18.1-beta.6",
3
+ "version": "10.18.1-beta.7",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "files": [