cecon-interfaces 1.0.96 → 1.0.98

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.
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -1,13 +1,13 @@
1
+ import { EPlanFeatureType } from "../enums";
1
2
  import { IPlanFeature } from "../interfaces";
2
3
  export declare class PlanFeatureEntity implements IPlanFeature {
3
4
  appId: string;
4
5
  createdAt: Date;
6
+ featureType: EPlanFeatureType;
5
7
  id: string;
6
- identifier: string;
7
- isFeature: boolean;
8
+ index: number;
8
9
  name: string;
9
10
  planId: string;
10
- index: number;
11
11
  price: number;
12
12
  quantity: number;
13
13
  updatedAt: Date;
@@ -1,19 +1,19 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.PlanFeatureEntity = void 0;
4
+ var enums_1 = require("../enums");
4
5
  var PlanFeatureEntity = /** @class */ (function () {
5
- // #endregion Properties (12)
6
+ // #endregion Properties (10)
6
7
  // #region Constructors (1)
7
8
  function PlanFeatureEntity(data) {
8
- // #region Properties (12)
9
+ // #region Properties (10)
9
10
  this.appId = "";
10
11
  this.createdAt = new Date();
12
+ this.featureType = enums_1.EPlanFeatureType.FEATURE;
11
13
  this.id = "";
12
- this.identifier = "";
13
- this.isFeature = false;
14
+ this.index = 0;
14
15
  this.name = "";
15
16
  this.planId = "";
16
- this.index = 0;
17
17
  this.price = 0;
18
18
  this.quantity = 0;
19
19
  this.updatedAt = new Date();
@@ -1,5 +1,5 @@
1
1
  import { IntervalTypeEnum } from '../../general/enums';
2
- import { PlanIdentifierEnum } from '../enums/plans-identifier.enum';
2
+ import { EPlanIdentifierType } from '../enums/plans-identifier.enum';
3
3
  import { IPlan } from '../interfaces';
4
4
  import { PlanFeatureEntity } from './feature.entity';
5
5
  export declare class PlanEntity implements IPlan {
@@ -8,7 +8,7 @@ export declare class PlanEntity implements IPlan {
8
8
  id: string;
9
9
  tags: string[];
10
10
  index: number;
11
- identifier: PlanIdentifierEnum;
11
+ identifier: EPlanIdentifierType;
12
12
  interval: number;
13
13
  intervalType: IntervalTypeEnum;
14
14
  name: string;
@@ -13,7 +13,7 @@ var PlanEntity = /** @class */ (function () {
13
13
  this.id = '';
14
14
  this.tags = [];
15
15
  this.index = 0;
16
- this.identifier = plans_identifier_enum_1.PlanIdentifierEnum.NATIGO;
16
+ this.identifier = plans_identifier_enum_1.EPlanIdentifierType.NATIGO;
17
17
  this.interval = 12;
18
18
  this.intervalType = enums_1.IntervalTypeEnum.MONTHS;
19
19
  this.name = '';
@@ -1 +1,2 @@
1
- export { PlanIdentifierEnum } from './plans-identifier.enum';
1
+ export { EPlanFeatureType } from './plans-feature-type.enum';
2
+ export { EPlanIdentifierType } from './plans-identifier.enum';
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlanIdentifierEnum = void 0;
3
+ exports.EPlanIdentifierType = exports.EPlanFeatureType = void 0;
4
+ var plans_feature_type_enum_1 = require("./plans-feature-type.enum");
5
+ Object.defineProperty(exports, "EPlanFeatureType", { enumerable: true, get: function () { return plans_feature_type_enum_1.EPlanFeatureType; } });
4
6
  var plans_identifier_enum_1 = require("./plans-identifier.enum");
5
- Object.defineProperty(exports, "PlanIdentifierEnum", { enumerable: true, get: function () { return plans_identifier_enum_1.PlanIdentifierEnum; } });
7
+ Object.defineProperty(exports, "EPlanIdentifierType", { enumerable: true, get: function () { return plans_identifier_enum_1.EPlanIdentifierType; } });
@@ -0,0 +1,4 @@
1
+ export declare enum EPlanFeatureType {
2
+ FEATURE = "FEATURE",
3
+ DESCRIPTION = "DESCRIPTION"
4
+ }
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.EPlanFeatureType = void 0;
4
+ var EPlanFeatureType;
5
+ (function (EPlanFeatureType) {
6
+ EPlanFeatureType["FEATURE"] = "FEATURE";
7
+ EPlanFeatureType["DESCRIPTION"] = "DESCRIPTION";
8
+ })(EPlanFeatureType || (exports.EPlanFeatureType = EPlanFeatureType = {}));
@@ -1,4 +1,4 @@
1
- export declare enum PlanIdentifierEnum {
1
+ export declare enum EPlanIdentifierType {
2
2
  NATIGO = "NATIGO-UNO",
3
3
  SAT_MANAGER_NAPOLEON = "SAT-MANAGER-NAPOLEON"
4
4
  }
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PlanIdentifierEnum = void 0;
4
- var PlanIdentifierEnum;
5
- (function (PlanIdentifierEnum) {
6
- PlanIdentifierEnum["NATIGO"] = "NATIGO-UNO";
7
- PlanIdentifierEnum["SAT_MANAGER_NAPOLEON"] = "SAT-MANAGER-NAPOLEON";
8
- })(PlanIdentifierEnum || (exports.PlanIdentifierEnum = PlanIdentifierEnum = {}));
3
+ exports.EPlanIdentifierType = void 0;
4
+ var EPlanIdentifierType;
5
+ (function (EPlanIdentifierType) {
6
+ EPlanIdentifierType["NATIGO"] = "NATIGO-UNO";
7
+ EPlanIdentifierType["SAT_MANAGER_NAPOLEON"] = "SAT-MANAGER-NAPOLEON";
8
+ })(EPlanIdentifierType || (exports.EPlanIdentifierType = EPlanIdentifierType = {}));
@@ -1,12 +1,12 @@
1
+ import { EPlanFeatureType } from "../enums";
1
2
  export interface IPlanFeature {
2
3
  appId: string;
3
4
  createdAt: Date;
5
+ featureType: EPlanFeatureType;
4
6
  id: string;
5
- identifier: string;
6
- isFeature: boolean;
7
+ index: number;
7
8
  name: string;
8
9
  planId: string;
9
- index: number;
10
10
  price: number;
11
11
  quantity: number;
12
12
  updatedAt: Date;
@@ -1,11 +1,11 @@
1
1
  import { IntervalTypeEnum } from '../../general/enums';
2
- import { PlanIdentifierEnum } from '../enums/plans-identifier.enum';
2
+ import { EPlanIdentifierType } from '../enums/plans-identifier.enum';
3
3
  import { IPlanFeature } from './i-feature';
4
4
  export interface IPlan {
5
5
  createdAt: Date;
6
6
  features: IPlanFeature[];
7
7
  id: string;
8
- identifier: PlanIdentifierEnum;
8
+ identifier: EPlanIdentifierType;
9
9
  index: number;
10
10
  interval: number;
11
11
  intervalType: IntervalTypeEnum;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cecon-interfaces",
3
- "version": "1.0.96",
3
+ "version": "1.0.98",
4
4
  "description": "Interfaces de Projetos Cecon",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",